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

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

Issue 972313002: Make <webview> use out-of-process iframe architecture. (Closed) Base URL: ssh://saopaulo.wat/mnt/dev/shared/src@testoopif2z-better-chrome
Patch Set: Revert unused changes from previous attempt + more cleanup. Created 5 years, 9 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 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 // Creates a swapped out RenderView. This is used by the browser plugin to 117 // Creates a swapped out RenderView. This is used by the browser plugin to
118 // create a swapped out RenderView in the embedder render process for the 118 // create a swapped out RenderView in the embedder render process for the
119 // guest, to expose the guest's window object to the embedder. 119 // guest, to expose the guest's window object to the embedder.
120 // This returns the routing ID of the newly created swapped out RenderView. 120 // This returns the routing ID of the newly created swapped out RenderView.
121 int CreateSwappedOutRenderView(SiteInstance* instance); 121 int CreateSwappedOutRenderView(SiteInstance* instance);
122 122
123 // Complex initialization here. Specifically needed to avoid having 123 // Complex initialization here. Specifically needed to avoid having
124 // members call back into our virtual functions in the constructor. 124 // members call back into our virtual functions in the constructor.
125 virtual void Init(const WebContents::CreateParams& params); 125 virtual void Init(const WebContents::CreateParams& params);
126 126
127 int AttachLocalFrameToGuest(WebContents* owner_web_contents,
128 int embedder_local_render_frame_id,
129 int guest_instance_id) override;
130
127 // Returns the SavePackage which manages the page saving job. May be NULL. 131 // Returns the SavePackage which manages the page saving job. May be NULL.
128 SavePackage* save_package() const { return save_package_.get(); } 132 SavePackage* save_package() const { return save_package_.get(); }
129 133
130 #if defined(OS_ANDROID) 134 #if defined(OS_ANDROID)
131 // In Android WebView, the RenderView needs created even there is no 135 // In Android WebView, the RenderView needs created even there is no
132 // navigation entry, this allows Android WebViews to use 136 // navigation entry, this allows Android WebViews to use
133 // javascript: URLs that load into the DOMWindow before the first page 137 // javascript: URLs that load into the DOMWindow before the first page
134 // load. This is not safe to do in any context that a web page could get a 138 // load. This is not safe to do in any context that a web page could get a
135 // reference to the DOMWindow before the first page load. 139 // reference to the DOMWindow before the first page load.
136 bool CreateRenderViewForInitialEmptyDocument(); 140 bool CreateRenderViewForInitialEmptyDocument();
(...skipping 1130 matching lines...) Expand 10 before | Expand all | Expand 10 after
1267 // Adds/removes a callback called on creation of each new WebContents. 1271 // Adds/removes a callback called on creation of each new WebContents.
1268 static void AddCreatedCallbackForTesting(const CreatedCallback& callback); 1272 static void AddCreatedCallbackForTesting(const CreatedCallback& callback);
1269 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback); 1273 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback);
1270 1274
1271 DISALLOW_COPY_AND_ASSIGN(FriendZone); 1275 DISALLOW_COPY_AND_ASSIGN(FriendZone);
1272 }; 1276 };
1273 1277
1274 } // namespace content 1278 } // namespace content
1275 1279
1276 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ 1280 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698