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

Unified Diff: content/public/browser/render_frame_host.h

Issue 182713005: Remove frame ID from DidCommitProvisionalLoad. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: content/public/browser/render_frame_host.h
diff --git a/content/public/browser/render_frame_host.h b/content/public/browser/render_frame_host.h
index 0a56349141aa023cdb2e775c12362875f0d3b7e6..8125f188a72cb986e0371f0cbf047986ba9ae2e2 100644
--- a/content/public/browser/render_frame_host.h
+++ b/content/public/browser/render_frame_host.h
@@ -27,27 +27,34 @@ class CONTENT_EXPORT RenderFrameHost : public IPC::Listener,
virtual ~RenderFrameHost() {}
- virtual SiteInstance* GetSiteInstance() = 0;
+ // Returns the route id for this frame.
+ virtual int GetRoutingID() const = 0;
jam 2014/03/01 01:21:08 nit: here and in the rest of the file, i have avoi
Charlie Reis 2014/03/01 01:39:05 Ah, fair point. I'll remove that.
Charlie Reis 2014/03/03 07:14:50 Done.
- // Returns the process for this frame.
- virtual RenderProcessHost* GetProcess() = 0;
+ // Returns the SiteInstance grouping all RenderFrameHosts that have script
+ // access to this RenderFrameHost, and must therefore live in the same
+ // process.
+ virtual SiteInstance* GetSiteInstance() const = 0;
- // Returns the route id for this frame.
- virtual int GetRoutingID() = 0;
+ // Returns a bitwise OR of bindings types that have been enabled for this
+ // RenderFrameHost's RenderView. See BindingsPolicy for details.
+ virtual int GetEnabledBindings() const = 0;
jam 2014/03/01 01:21:08 two questions: right now this is only called insid
Charlie Reis 2014/03/01 01:39:05 Sure, I can change it in the next patch.
Charlie Reis 2014/03/03 07:14:50 Done.
jam 2014/03/03 16:08:04 ah, makes senses! ignore that then :)
+
+ // Returns the process for this frame.
+ virtual RenderProcessHost* GetProcess() const = 0;
// Returns the current RenderFrameHost of the parent frame, or NULL if there
// is no parent. The result may be in a different process than the current
// RenderFrameHost.
- virtual RenderFrameHost* GetParent() = 0;
+ virtual RenderFrameHost* GetParent() const = 0;
// Returns true if the frame is out of process.
- virtual bool IsCrossProcessSubframe() = 0;
+ virtual bool IsCrossProcessSubframe() const = 0;
// Returns the last committed URL of the frame.
- virtual GURL GetLastCommittedURL() = 0;
+ virtual GURL GetLastCommittedURL() const = 0;
// Returns the associated widget's native view.
- virtual gfx::NativeView GetNativeView() = 0;
+ virtual gfx::NativeView GetNativeView() const = 0;
// Let the renderer know that the menu has been closed.
virtual void NotifyContextMenuClosed(
@@ -58,7 +65,7 @@ class CONTENT_EXPORT RenderFrameHost : public IPC::Listener,
int action, const CustomContextMenuContext& context) = 0;
// Temporary until we get rid of RenderViewHost.
- virtual RenderViewHost* GetRenderViewHost() = 0;
+ virtual RenderViewHost* GetRenderViewHost() const = 0;
private:
// This interface should only be implemented inside content.

Powered by Google App Engine
This is Rietveld 408576698