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

Side by Side Diff: content/public/browser/web_contents.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: Make <webview> work without --site-per-process as well Created 5 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_PUBLIC_BROWSER_WEB_CONTENTS_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_
6 #define CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ 6 #define CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_
7 7
8 #include <set> 8 #include <set>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 149
150 // Returns a WebContents that wraps the RenderViewHost, or nullptr if the 150 // Returns a WebContents that wraps the RenderViewHost, or nullptr if the
151 // render view host's delegate isn't a WebContents. 151 // render view host's delegate isn't a WebContents.
152 CONTENT_EXPORT static WebContents* FromRenderViewHost( 152 CONTENT_EXPORT static WebContents* FromRenderViewHost(
153 const RenderViewHost* rvh); 153 const RenderViewHost* rvh);
154 154
155 CONTENT_EXPORT static WebContents* FromRenderFrameHost(RenderFrameHost* rfh); 155 CONTENT_EXPORT static WebContents* FromRenderFrameHost(RenderFrameHost* rfh);
156 156
157 ~WebContents() override {} 157 ~WebContents() override {}
158 158
159 // Attaches or associates this WebContents to a frame in
Charlie Reis 2015/04/30 23:06:47 this guest WebContents to its embedder frame in...
lazyboy 2015/05/05 07:28:15 Done.
160 // |embedder_web_contents|.
161 // The frame can identified by
162 // {embedder_frame_process_id, embedder_frame_routing_id} pair.
Charlie Reis 2015/04/30 23:06:47 Also say what this returns.
lazyboy 2015/05/05 07:28:15 Done.
163 virtual int AttachLocalFrameToGuest(WebContents* embedder_web_contents,
Charlie Reis 2015/04/30 23:06:47 This name doesn't make sense to me, if we're calli
lazyboy 2015/05/05 07:28:15 Ok.
164 int embedder_frame_process_id,
165 int embedder_frame_routing_id) = 0;
Charlie Reis 2015/04/30 23:06:47 I think it might be clearer to pass in the the Ren
lazyboy 2015/05/05 07:28:15 Done.
166
159 // Intrinsic tab state ------------------------------------------------------- 167 // Intrinsic tab state -------------------------------------------------------
160 168
161 // Gets/Sets the delegate. 169 // Gets/Sets the delegate.
162 virtual WebContentsDelegate* GetDelegate() = 0; 170 virtual WebContentsDelegate* GetDelegate() = 0;
163 virtual void SetDelegate(WebContentsDelegate* delegate) = 0; 171 virtual void SetDelegate(WebContentsDelegate* delegate) = 0;
164 172
165 // Gets the controller for this WebContents. 173 // Gets the controller for this WebContents.
166 virtual NavigationController& GetController() = 0; 174 virtual NavigationController& GetController() = 0;
167 virtual const NavigationController& GetController() const = 0; 175 virtual const NavigationController& GetController() const = 0;
168 176
(...skipping 474 matching lines...) Expand 10 before | Expand all | Expand 10 after
643 651
644 private: 652 private:
645 // This interface should only be implemented inside content. 653 // This interface should only be implemented inside content.
646 friend class WebContentsImpl; 654 friend class WebContentsImpl;
647 WebContents() {} 655 WebContents() {}
648 }; 656 };
649 657
650 } // namespace content 658 } // namespace content
651 659
652 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ 660 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698