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

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

Issue 2335133003: PlzNavigate: support the WebRequest API (Closed)
Patch Set: Addressed comments + changes to NavigationHandleImpl following 2364943002 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/navigator_delegate.h
diff --git a/content/browser/frame_host/navigator_delegate.h b/content/browser/frame_host/navigator_delegate.h
index 71019d1045d8125bc35ecbb8d3d1630523c556c0..fc2ce10a1bb8a597be0f8af64f6fcfcf336b7cf2 100644
--- a/content/browser/frame_host/navigator_delegate.h
+++ b/content/browser/frame_host/navigator_delegate.h
@@ -10,6 +10,7 @@
#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/navigation_ui_data.h"
#include "content/public/browser/reload_type.h"
#include "ui/base/page_transition_types.h"
#include "ui/base/window_open_disposition.h"
@@ -140,6 +141,14 @@ class CONTENT_EXPORT NavigatorDelegate {
// where no NavigationThrottles are added to the navigation.
virtual ScopedVector<NavigationThrottle> CreateThrottlesForNavigation(
NavigationHandle* navigation_handle);
+
+ // PlzNavigate
+ // Called at the start of the navigation to get opaque data the embedder
+ // wants to see passed to the corresponding URLRequest on the IO thread.
+ // In the case of a navigation to an interstitial, no call will be made to the
+ // embedder and |nullptr| is returned.
+ virtual std::unique_ptr<NavigationUIData> GetNavigationUIData(
clamy 2016/09/27 14:57:53 @nasko: I have added this to avoid the NavigationH
+ NavigationHandle* navigation_handle);
};
} // namspace content

Powered by Google App Engine
This is Rietveld 408576698