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

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

Issue 2364943002: Create NavigationHandles for interstitials if needed (Closed)
Patch Set: 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
Index: content/browser/frame_host/interstitial_page_navigator_impl.h
diff --git a/content/browser/frame_host/interstitial_page_navigator_impl.h b/content/browser/frame_host/interstitial_page_navigator_impl.h
index 0ee1be049766ff61971537f4e635f5fe89c86503..645a040443b5d5d61c1a309bc1d8be41e0122f59 100644
--- a/content/browser/frame_host/interstitial_page_navigator_impl.h
+++ b/content/browser/frame_host/interstitial_page_navigator_impl.h
@@ -7,6 +7,7 @@
#include "base/macros.h"
#include "base/memory/ref_counted.h"
+#include "content/browser/frame_host/navigation_handle_impl.h"
#include "content/browser/frame_host/navigator.h"
#include "content/common/content_export.h"
@@ -25,12 +26,18 @@ class CONTENT_EXPORT InterstitialPageNavigatorImpl : public Navigator {
NavigatorDelegate* GetDelegate() override;
NavigationController* GetController() override;
+ void DidStartProvisionalLoad(
+ RenderFrameHostImpl* render_frame_host,
+ const GURL& url,
+ const base::TimeTicks& navigation_start) override;
void DidNavigate(RenderFrameHostImpl* render_frame_host,
const FrameHostMsg_DidCommitProvisionalLoad_Params&
input_params) override;
+ NavigationHandleImpl* GetNavigationHandleForFrameHost(
+ RenderFrameHostImpl* render_frame_host) override;
private:
- ~InterstitialPageNavigatorImpl() override {}
+ ~InterstitialPageNavigatorImpl() override;
// The InterstitialPage with which this navigator object is associated.
// Non owned pointer.
@@ -39,6 +46,9 @@ class CONTENT_EXPORT InterstitialPageNavigatorImpl : public Navigator {
// The NavigationController associated with this navigator.
NavigationControllerImpl* controller_;
+ // The NavigationHandle associated with the interstitial navigation.
Charlie Reis 2016/09/23 18:51:11 Let's add a note that interstitials are assumed to
clamy 2016/09/26 11:37:27 Done.
+ std::unique_ptr<NavigationHandleImpl> navigation_handle_;
+
DISALLOW_COPY_AND_ASSIGN(InterstitialPageNavigatorImpl);
};

Powered by Google App Engine
This is Rietveld 408576698