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 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
78 public RenderWidgetHostDelegate, | 78 public RenderWidgetHostDelegate, |
79 public RenderViewHostManager::Delegate, | 79 public RenderViewHostManager::Delegate, |
80 public NotificationObserver { | 80 public NotificationObserver { |
81 public: | 81 public: |
82 virtual ~WebContentsImpl(); | 82 virtual ~WebContentsImpl(); |
83 | 83 |
84 static WebContentsImpl* CreateWithOpener( | 84 static WebContentsImpl* CreateWithOpener( |
85 const WebContents::CreateParams& params, | 85 const WebContents::CreateParams& params, |
86 WebContentsImpl* opener); | 86 WebContentsImpl* opener); |
87 | 87 |
88 // Returns the opener WebContentsImpl. | |
Charlie Reis
2013/01/04 18:53:19
If we're making this accessible, let's say a littl
Fady Samuel
2013/01/08 17:00:49
Done.
| |
89 WebContentsImpl* opener() const { return opener_; } | |
90 | |
88 // Creates a WebContents to be used as a browser plugin guest. | 91 // Creates a WebContents to be used as a browser plugin guest. |
89 static WebContentsImpl* CreateGuest( | 92 static WebContentsImpl* CreateGuest( |
90 BrowserContext* browser_context, | 93 BrowserContext* browser_context, |
91 content::SiteInstance* site_instance, | 94 content::SiteInstance* site_instance, |
95 int routing_id, | |
96 WebContentsImpl* base_web_contents, | |
Charlie Reis
2013/01/04 18:53:19
Please call this opener_web_contents.
Fady Samuel
2013/01/08 17:00:49
Done.
| |
92 int guest_instance_id, | 97 int guest_instance_id, |
93 const BrowserPluginHostMsg_CreateGuest_Params& params); | 98 const BrowserPluginHostMsg_CreateGuest_Params& params); |
94 | 99 |
95 // Returns the content specific prefs for the given RVH. | 100 // Returns the content specific prefs for the given RVH. |
96 static webkit_glue::WebPreferences GetWebkitPrefs( | 101 static webkit_glue::WebPreferences GetWebkitPrefs( |
97 RenderViewHost* rvh, const GURL& url); | 102 RenderViewHost* rvh, const GURL& url); |
98 | 103 |
99 // Creates a swapped out RenderView. This is used by the browser plugin to | 104 // Creates a swapped out RenderView. This is used by the browser plugin to |
100 // create a swapped out RenderView in the embedder render process for the | 105 // create a swapped out RenderView in the embedder render process for the |
101 // guest, to expose the guest's window object to the embedder. | 106 // guest, to expose the guest's window object to the embedder. |
(...skipping 757 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
859 // Maps the ids of pending favicon downloads to their callbacks | 864 // Maps the ids of pending favicon downloads to their callbacks |
860 typedef std::map<int, FaviconDownloadCallback> FaviconDownloadMap; | 865 typedef std::map<int, FaviconDownloadCallback> FaviconDownloadMap; |
861 FaviconDownloadMap favicon_download_map_; | 866 FaviconDownloadMap favicon_download_map_; |
862 | 867 |
863 DISALLOW_COPY_AND_ASSIGN(WebContentsImpl); | 868 DISALLOW_COPY_AND_ASSIGN(WebContentsImpl); |
864 }; | 869 }; |
865 | 870 |
866 } // namespace content | 871 } // namespace content |
867 | 872 |
868 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ | 873 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ |
OLD | NEW |