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

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

Issue 1269813002: Add a NavigationThrottle to the public content/ interface (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@navigation-api
Patch Set: Addressed comments 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/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 ac8402c9f6e67021004f2b746041e381c6dcac23..094e969b15dffff1a8edd63add90d9fe7168afa1 100644
--- a/content/browser/frame_host/navigator_delegate.h
+++ b/content/browser/frame_host/navigator_delegate.h
@@ -5,6 +5,8 @@
#ifndef CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_DELEGATE_H_
#define CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_DELEGATE_H_
+#include <vector>
+
#include "base/strings/string16.h"
#include "content/public/browser/invalidate_type.h"
#include "content/public/browser/navigation_controller.h"
@@ -19,6 +21,7 @@ namespace content {
class FrameTreeNode;
class NavigationHandle;
+class NavigationThrottle;
class RenderFrameHostImpl;
struct LoadCommittedDetails;
struct OpenURLParams;
@@ -41,6 +44,11 @@ class CONTENT_EXPORT NavigatorDelegate {
// that |navigation_handle| will be destroyed at the end of this call.
virtual void DidFinishNavigation(NavigationHandle* navigation_handle) {}
+ // Called when the network request is about to start to register the
+ // NavigationThrottles for the navigation.
+ virtual std::vector<NavigationThrottle*> AddNavigationThrottles(
nasko 2015/09/04 23:36:49 As I commented elsewhere, GetNavigationThrottles,
clamy 2015/09/08 16:27:18 This method no longer necessary, as the WebContent
+ NavigationHandle* navigation_handle);
+
// TODO(clamy): all methods below that are related to navigation
// events should go away in favor of the ones above.

Powered by Google App Engine
This is Rietveld 408576698