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 |