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

Unified Diff: content/public/browser/content_browser_client.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/public/browser/content_browser_client.h
diff --git a/content/public/browser/content_browser_client.h b/content/public/browser/content_browser_client.h
index ae7d92c4b948aeb9c2daf275c1b0f60acc930de8..44bab183d497cb6bd96289f88de98df1b64e46b9 100644
--- a/content/public/browser/content_browser_client.h
+++ b/content/public/browser/content_browser_client.h
@@ -115,6 +115,7 @@ class GpuProcessHost;
class LocationProvider;
class MediaObserver;
class NavigationHandle;
+class NavigationUIData;
class PlatformNotificationService;
class PresentationServiceDelegate;
class QuotaPermissionContext;
@@ -742,6 +743,12 @@ class CONTENT_EXPORT ContentBrowserClient {
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.
+ virtual std::unique_ptr<NavigationUIData> GetNavigationUIData(
+ NavigationHandle* navigation_handle);
+
// Allows the embedder to provide its own AudioManager implementation.
// If this function returns nullptr, a default platform implementation
// will be used.

Powered by Google App Engine
This is Rietveld 408576698