Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(237)

Side by Side Diff: content/browser/web_contents/web_contents_impl.h

Issue 261013005: BrowserPlugin: Move CreateGuest to chrome (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@guestview_manager_simplify_api
Patch Set: Fixed content_browsertests after a change Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 virtual ~WebContentsImpl(); 92 virtual ~WebContentsImpl();
93 93
94 static WebContentsImpl* CreateWithOpener( 94 static WebContentsImpl* CreateWithOpener(
95 const WebContents::CreateParams& params, 95 const WebContents::CreateParams& params,
96 WebContentsImpl* opener); 96 WebContentsImpl* opener);
97 97
98 // Returns the opener WebContentsImpl, if any. This can be set to null if the 98 // Returns the opener WebContentsImpl, if any. This can be set to null if the
99 // opener is closed or the page clears its window.opener. 99 // opener is closed or the page clears its window.opener.
100 WebContentsImpl* opener() const { return opener_; } 100 WebContentsImpl* opener() const { return opener_; }
101 101
102 // Creates a WebContents to be used as a browser plugin guest.
103 static BrowserPluginGuest* CreateGuest(
104 BrowserContext* browser_context,
105 content::SiteInstance* site_instance,
106 int guest_instance_id,
107 scoped_ptr<base::DictionaryValue> extra_params);
108
109 // Creates a swapped out RenderView. This is used by the browser plugin to 102 // Creates a swapped out RenderView. This is used by the browser plugin to
110 // create a swapped out RenderView in the embedder render process for the 103 // create a swapped out RenderView in the embedder render process for the
111 // guest, to expose the guest's window object to the embedder. 104 // guest, to expose the guest's window object to the embedder.
112 // This returns the routing ID of the newly created swapped out RenderView. 105 // This returns the routing ID of the newly created swapped out RenderView.
113 int CreateSwappedOutRenderView(SiteInstance* instance); 106 int CreateSwappedOutRenderView(SiteInstance* instance);
114 107
115 // Complex initialization here. Specifically needed to avoid having 108 // Complex initialization here. Specifically needed to avoid having
116 // members call back into our virtual functions in the constructor. 109 // members call back into our virtual functions in the constructor.
117 virtual void Init(const WebContents::CreateParams& params); 110 virtual void Init(const WebContents::CreateParams& params);
118 111
(...skipping 989 matching lines...) Expand 10 before | Expand all | Expand 10 after
1108 1101
1109 // Whether the last JavaScript dialog shown was suppressed. Used for testing. 1102 // Whether the last JavaScript dialog shown was suppressed. Used for testing.
1110 bool last_dialog_suppressed_; 1103 bool last_dialog_suppressed_;
1111 1104
1112 DISALLOW_COPY_AND_ASSIGN(WebContentsImpl); 1105 DISALLOW_COPY_AND_ASSIGN(WebContentsImpl);
1113 }; 1106 };
1114 1107
1115 } // namespace content 1108 } // namespace content
1116 1109
1117 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ 1110 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_
OLDNEW
« no previous file with comments | « content/browser/browser_plugin/test_guest_manager_delegate.cc ('k') | content/browser/web_contents/web_contents_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698