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

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: Removed AddGuest/RemoveGuest from content API! w00t! 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 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 virtual ~WebContentsImpl(); 93 virtual ~WebContentsImpl();
94 94
95 static WebContentsImpl* CreateWithOpener( 95 static WebContentsImpl* CreateWithOpener(
96 const WebContents::CreateParams& params, 96 const WebContents::CreateParams& params,
97 WebContentsImpl* opener); 97 WebContentsImpl* opener);
98 98
99 // Returns the opener WebContentsImpl, if any. This can be set to null if the 99 // Returns the opener WebContentsImpl, if any. This can be set to null if the
100 // opener is closed or the page clears its window.opener. 100 // opener is closed or the page clears its window.opener.
101 WebContentsImpl* opener() const { return opener_; } 101 WebContentsImpl* opener() const { return opener_; }
102 102
103 // Creates a WebContents to be used as a browser plugin guest.
104 static BrowserPluginGuest* CreateGuest(
105 BrowserContext* browser_context,
106 content::SiteInstance* site_instance,
107 int guest_instance_id,
108 scoped_ptr<base::DictionaryValue> extra_params);
109
110 // Creates a swapped out RenderView. This is used by the browser plugin to 103 // Creates a swapped out RenderView. This is used by the browser plugin to
111 // create a swapped out RenderView in the embedder render process for the 104 // create a swapped out RenderView in the embedder render process for the
112 // guest, to expose the guest's window object to the embedder. 105 // guest, to expose the guest's window object to the embedder.
113 // This returns the routing ID of the newly created swapped out RenderView. 106 // This returns the routing ID of the newly created swapped out RenderView.
114 int CreateSwappedOutRenderView(SiteInstance* instance); 107 int CreateSwappedOutRenderView(SiteInstance* instance);
115 108
116 // Complex initialization here. Specifically needed to avoid having 109 // Complex initialization here. Specifically needed to avoid having
117 // members call back into our virtual functions in the constructor. 110 // members call back into our virtual functions in the constructor.
118 virtual void Init(const WebContents::CreateParams& params); 111 virtual void Init(const WebContents::CreateParams& params);
119 112
(...skipping 981 matching lines...) Expand 10 before | Expand all | Expand 10 after
1101 1094
1102 // Whether the last JavaScript dialog shown was suppressed. Used for testing. 1095 // Whether the last JavaScript dialog shown was suppressed. Used for testing.
1103 bool last_dialog_suppressed_; 1096 bool last_dialog_suppressed_;
1104 1097
1105 DISALLOW_COPY_AND_ASSIGN(WebContentsImpl); 1098 DISALLOW_COPY_AND_ASSIGN(WebContentsImpl);
1106 }; 1099 };
1107 1100
1108 } // namespace content 1101 } // namespace content
1109 1102
1110 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ 1103 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698