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 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 static WebContentsImpl* CreateWithOpener( | 88 static WebContentsImpl* CreateWithOpener( |
89 BrowserContext* browser_context, | 89 BrowserContext* browser_context, |
90 SiteInstance* site_instance, | 90 SiteInstance* site_instance, |
91 int routing_id, | 91 int routing_id, |
92 const WebContentsImpl* base_web_contents, | 92 const WebContentsImpl* base_web_contents, |
93 WebContentsImpl* opener); | 93 WebContentsImpl* opener); |
94 | 94 |
95 // Creates a WebContents to be used as a browser plugin guest. | 95 // Creates a WebContents to be used as a browser plugin guest. |
96 static WebContentsImpl* CreateGuest( | 96 static WebContentsImpl* CreateGuest( |
97 BrowserContext* browser_context, | 97 BrowserContext* browser_context, |
98 const std::string& host, | 98 content::SiteInstance* site_instance, |
99 int guest_instance_id, | 99 int guest_instance_id, |
100 const BrowserPluginHostMsg_CreateGuest_Params& params); | 100 const BrowserPluginHostMsg_CreateGuest_Params& params); |
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 RenderViewHost* rvh, const GURL& url); | 104 RenderViewHost* rvh, const GURL& url); |
105 | 105 |
106 // Creates a swapped out RenderView. This is used by the browser plugin to | 106 // Creates a swapped out RenderView. This is used by the browser plugin to |
107 // create a swapped out RenderView in the embedder render process for the | 107 // create a swapped out RenderView in the embedder render process for the |
108 // guest, to expose the guest's window object to the embedder. | 108 // guest, to expose the guest's window object to the embedder. |
(...skipping 744 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
853 // All live RenderWidgetHostImpls that are created by this object and may | 853 // All live RenderWidgetHostImpls that are created by this object and may |
854 // outlive it. | 854 // outlive it. |
855 std::set<RenderWidgetHostImpl*> created_widgets_; | 855 std::set<RenderWidgetHostImpl*> created_widgets_; |
856 | 856 |
857 DISALLOW_COPY_AND_ASSIGN(WebContentsImpl); | 857 DISALLOW_COPY_AND_ASSIGN(WebContentsImpl); |
858 }; | 858 }; |
859 | 859 |
860 } // namespace content | 860 } // namespace content |
861 | 861 |
862 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ | 862 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ |
OLD | NEW |