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

Unified Diff: content/browser/frame_host/navigator_delegate.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/navigator.cc ('k') | content/browser/frame_host/navigator_delegate.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/frame_host/navigator_delegate.h
diff --git a/content/browser/frame_host/navigator_delegate.h b/content/browser/frame_host/navigator_delegate.h
index 38e19b1e4d82f0247f8d0375079a51d9ee9aa903..71019d1045d8125bc35ecbb8d3d1630523c556c0 100644
--- a/content/browser/frame_host/navigator_delegate.h
+++ b/content/browser/frame_host/navigator_delegate.h
@@ -5,9 +5,11 @@
#ifndef CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_DELEGATE_H_
#define CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_DELEGATE_H_
+#include "base/memory/scoped_vector.h"
#include "base/strings/string16.h"
#include "content/public/browser/invalidate_type.h"
#include "content/public/browser/navigation_controller.h"
+#include "content/public/browser/navigation_throttle.h"
#include "content/public/browser/reload_type.h"
#include "ui/base/page_transition_types.h"
#include "ui/base/window_open_disposition.h"
@@ -132,6 +134,12 @@ class CONTENT_EXPORT NavigatorDelegate {
// The load progress was changed.
virtual void DidChangeLoadProgress() {}
+
+ // Returns the NavigationThrottles to add to this navigation. Normally these
+ // are defined by the content/ embedder, except in the case of interstitials
+ // where no NavigationThrottles are added to the navigation.
+ virtual ScopedVector<NavigationThrottle> CreateThrottlesForNavigation(
+ NavigationHandle* navigation_handle);
};
} // namspace content
« no previous file with comments | « content/browser/frame_host/navigator.cc ('k') | content/browser/frame_host/navigator_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698