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

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

Issue 2335133003: PlzNavigate: support the WebRequest API (Closed)
Patch Set: Rebase + addressed nit 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/navigation_request.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 ca08298430c15d7d3d9ea6719fa4d74c14c22935..0f435bf643339603ddd98a914c2c2ef0917bf2cc 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(
+ NavigationHandle* navigation_handle);
};
} // namspace content
« no previous file with comments | « content/browser/frame_host/navigation_request.cc ('k') | content/browser/frame_host/navigator_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698