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

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: some review comments addressed Created 5 years, 8 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
160 // |embedder_web_contents|.
161 // The frame has routing id |embedder_frame_routing_id|.
162 virtual int AttachLocalFrameToGuest(WebContents* embedder_web_contents,
163 int embedder_frame_routing_id) = 0;
Charlie Reis 2015/04/08 23:42:12 Always pass routing IDs and process IDs together.
lazyboy 2015/04/14 01:38:04 Done.
164
159 // Intrinsic tab state ------------------------------------------------------- 165 // Intrinsic tab state -------------------------------------------------------
160 166
161 // Gets/Sets the delegate. 167 // Gets/Sets the delegate.
162 virtual WebContentsDelegate* GetDelegate() = 0; 168 virtual WebContentsDelegate* GetDelegate() = 0;
163 virtual void SetDelegate(WebContentsDelegate* delegate) = 0; 169 virtual void SetDelegate(WebContentsDelegate* delegate) = 0;
164 170
165 // Gets the controller for this WebContents. 171 // Gets the controller for this WebContents.
166 virtual NavigationController& GetController() = 0; 172 virtual NavigationController& GetController() = 0;
167 virtual const NavigationController& GetController() const = 0; 173 virtual const NavigationController& GetController() const = 0;
168 174
(...skipping 474 matching lines...) Expand 10 before | Expand all | Expand 10 after
643 649
644 private: 650 private:
645 // This interface should only be implemented inside content. 651 // This interface should only be implemented inside content.
646 friend class WebContentsImpl; 652 friend class WebContentsImpl;
647 WebContents() {} 653 WebContents() {}
648 }; 654 };
649 655
650 } // namespace content 656 } // namespace content
651 657
652 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ 658 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698