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

Unified Diff: content/browser/frame_host/navigator.h

Issue 2364943002: Create NavigationHandles for interstitials if needed (Closed)
Patch Set: Fixed Android issue Created 4 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
« no previous file with comments | « content/browser/frame_host/navigation_handle_impl.cc ('k') | content/browser/frame_host/navigator.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/frame_host/navigator.h
diff --git a/content/browser/frame_host/navigator.h b/content/browser/frame_host/navigator.h
index 05caf6abbd14b30c27ba13b4e8e0249b4ca0ab43..1580753ec3ed0ed39d8bb14017c215f9625e6d24 100644
--- a/content/browser/frame_host/navigator.h
+++ b/content/browser/frame_host/navigator.h
@@ -27,6 +27,7 @@ class FrameNavigationEntry;
class FrameTreeNode;
class NavigationControllerImpl;
class NavigationEntryImpl;
+class NavigationHandleImpl;
class NavigationRequest;
class RenderFrameHostImpl;
class ResourceRequestBodyImpl;
@@ -179,6 +180,14 @@ class CONTENT_EXPORT Navigator : public base::RefCounted<Navigator> {
const base::TimeTicks& renderer_before_unload_start_time,
const base::TimeTicks& renderer_before_unload_end_time) {}
+ // Returns the NavigationHandle associated with a navigation in
+ // |render_frame_host|. Normally, each frame can have its own
+ // NavigationHandle. However, in the case of a navigation to an interstitial
+ // page, there's just one NavigationHandle for the whole page (since it's
+ // assumed to only have one RenderFrameHost and navigate once).
+ virtual NavigationHandleImpl* GetNavigationHandleForFrameHost(
+ RenderFrameHostImpl* render_frame_host);
+
protected:
friend class base::RefCounted<Navigator>;
virtual ~Navigator() {}
« no previous file with comments | « content/browser/frame_host/navigation_handle_impl.cc ('k') | content/browser/frame_host/navigator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698