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 <map> | 8 #include <map> |
9 #include <set> | 9 #include <set> |
10 #include <string> | 10 #include <string> |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
96 | 96 |
97 // Creates a WebContents to be used as a browser plugin guest. | 97 // Creates a WebContents to be used as a browser plugin guest. |
98 static WebContentsImpl* CreateGuest(content::BrowserContext* browser_context, | 98 static WebContentsImpl* CreateGuest(content::BrowserContext* browser_context, |
99 const std::string& host, | 99 const std::string& host, |
100 int guest_instance_id); | 100 int guest_instance_id); |
101 | 101 |
102 // Returns the content specific prefs for the given RVH. | 102 // Returns the content specific prefs for the given RVH. |
103 static webkit_glue::WebPreferences GetWebkitPrefs( | 103 static webkit_glue::WebPreferences GetWebkitPrefs( |
104 content::RenderViewHost* rvh, const GURL& url); | 104 content::RenderViewHost* rvh, const GURL& url); |
105 | 105 |
106 // Creates a swapped out RenderView in the guest render process | |
nasko
2012/10/02 17:52:31
This is used to create both swapped out RVs in the
Fady Samuel
2012/10/02 22:04:08
Yes, done.
| |
107 // to allow the guest to postMessage back to its embedder. | |
108 int CreateSwappedOutRenderViewForGuest(content::SiteInstance* instance); | |
109 | |
106 // Complex initialization here. Specifically needed to avoid having | 110 // Complex initialization here. Specifically needed to avoid having |
107 // members call back into our virtual functions in the constructor. | 111 // members call back into our virtual functions in the constructor. |
108 virtual void Init(content::BrowserContext* browser_context, | 112 virtual void Init(content::BrowserContext* browser_context, |
109 content::SiteInstance* site_instance, | 113 content::SiteInstance* site_instance, |
110 int routing_id, | 114 int routing_id, |
111 const content::WebContents* base_web_contents); | 115 const content::WebContents* base_web_contents); |
112 | 116 |
113 // Returns the SavePackage which manages the page saving job. May be NULL. | 117 // Returns the SavePackage which manages the page saving job. May be NULL. |
114 SavePackage* save_package() const { return save_package_.get(); } | 118 SavePackage* save_package() const { return save_package_.get(); } |
115 | 119 |
(...skipping 755 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
871 content::RenderViewHost* message_source_; | 875 content::RenderViewHost* message_source_; |
872 | 876 |
873 // All live RenderWidgetHostImpls that are created by this object and may | 877 // All live RenderWidgetHostImpls that are created by this object and may |
874 // outlive it. | 878 // outlive it. |
875 std::set<content::RenderWidgetHostImpl*> created_widgets_; | 879 std::set<content::RenderWidgetHostImpl*> created_widgets_; |
876 | 880 |
877 DISALLOW_COPY_AND_ASSIGN(WebContentsImpl); | 881 DISALLOW_COPY_AND_ASSIGN(WebContentsImpl); |
878 }; | 882 }; |
879 | 883 |
880 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ | 884 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ |
OLD | NEW |