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

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

Issue 1350673003: Remove WebContentsObserver::DidCommitNavigation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 3 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/navigation_handle.h
diff --git a/content/public/browser/navigation_handle.h b/content/public/browser/navigation_handle.h
index 49d0884de43256e204ad3159903db42e889d1af6..a52c54667fd468e00fb21a28d64bcd345770c23a 100644
--- a/content/public/browser/navigation_handle.h
+++ b/content/public/browser/navigation_handle.h
@@ -11,6 +11,7 @@
class GURL;
namespace content {
+class RenderFrameHost;
// A NavigationHandle tracks information related to a single navigation.
class CONTENT_EXPORT NavigationHandle {
@@ -28,6 +29,10 @@ class CONTENT_EXPORT NavigationHandle {
// Whether the navigation is taking place in the main frame or in a subframe.
virtual bool IsInMainFrame() const = 0;
+ // Returns the RenderFrameHost this navigation is taking place in. This can
+ // only be accessed after the navigation is ready to commit.
+ virtual RenderFrameHost* GetRenderFrameHost() = 0;
+
// Whether the navigation has successfully committed a document.
virtual bool HasCommittedDocument() const = 0;

Powered by Google App Engine
This is Rietveld 408576698