OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ |
6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ | 6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <functional> | 10 #include <functional> |
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
123 | 123 |
124 static WebContentsImpl* CreateWithOpener( | 124 static WebContentsImpl* CreateWithOpener( |
125 const WebContents::CreateParams& params, | 125 const WebContents::CreateParams& params, |
126 FrameTreeNode* opener); | 126 FrameTreeNode* opener); |
127 | 127 |
128 static std::vector<WebContentsImpl*> GetAllWebContents(); | 128 static std::vector<WebContentsImpl*> GetAllWebContents(); |
129 | 129 |
130 static WebContentsImpl* FromFrameTreeNode(FrameTreeNode* frame_tree_node); | 130 static WebContentsImpl* FromFrameTreeNode(FrameTreeNode* frame_tree_node); |
131 static WebContents* FromRenderFrameHostID(int render_process_host_id, | 131 static WebContents* FromRenderFrameHostID(int render_process_host_id, |
132 int render_frame_host_id); | 132 int render_frame_host_id); |
| 133 static WebContents* FromFrameTreeNodeId(int frame_tree_node_id); |
133 | 134 |
134 // Complex initialization here. Specifically needed to avoid having | 135 // Complex initialization here. Specifically needed to avoid having |
135 // members call back into our virtual functions in the constructor. | 136 // members call back into our virtual functions in the constructor. |
136 virtual void Init(const WebContents::CreateParams& params); | 137 virtual void Init(const WebContents::CreateParams& params); |
137 | 138 |
138 // Returns the SavePackage which manages the page saving job. May be NULL. | 139 // Returns the SavePackage which manages the page saving job. May be NULL. |
139 SavePackage* save_package() const { return save_package_.get(); } | 140 SavePackage* save_package() const { return save_package_.get(); } |
140 | 141 |
141 #if defined(OS_ANDROID) | 142 #if defined(OS_ANDROID) |
142 // In Android WebView, the RenderView needs created even there is no | 143 // In Android WebView, the RenderView needs created even there is no |
(...skipping 1333 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1476 // Adds/removes a callback called on creation of each new WebContents. | 1477 // Adds/removes a callback called on creation of each new WebContents. |
1477 static void AddCreatedCallbackForTesting(const CreatedCallback& callback); | 1478 static void AddCreatedCallbackForTesting(const CreatedCallback& callback); |
1478 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback); | 1479 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback); |
1479 | 1480 |
1480 DISALLOW_COPY_AND_ASSIGN(FriendZone); | 1481 DISALLOW_COPY_AND_ASSIGN(FriendZone); |
1481 }; | 1482 }; |
1482 | 1483 |
1483 } // namespace content | 1484 } // namespace content |
1484 | 1485 |
1485 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ | 1486 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ |
OLD | NEW |