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

Unified Diff: content/public/browser/content_browser_client.h

Issue 2335133003: PlzNavigate: support the WebRequest API (Closed)
Patch Set: PlzNavigate: support the WebRequest API 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 e00fd88e6e5a8eb356c858ae80d87ade941944cc..9f6c4cab1062412a1427cb85cb16d4d1ec047014 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;
@@ -753,6 +754,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