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

Unified Diff: content/public/browser/resource_request_info.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/public/browser/navigation_ui_data.h ('k') | content/test/test_navigation_url_loader_factory.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/browser/resource_request_info.h
diff --git a/content/public/browser/resource_request_info.h b/content/public/browser/resource_request_info.h
index e03cc52e516a3706be7236e525fda9452bf33378..ad3c07b44073431b0a35c7dec9e32411b74e237d 100644
--- a/content/public/browser/resource_request_info.h
+++ b/content/public/browser/resource_request_info.h
@@ -17,6 +17,7 @@ class URLRequest;
}
namespace content {
+class NavigationUIData;
class ResourceContext;
class WebContents;
@@ -156,6 +157,11 @@ class ResourceRequestInfo {
// Whether this request if using Lo-Fi mode.
virtual bool IsUsingLoFi() const = 0;
+ // PlzNavigate
+ // Only used for navigations. Returns opaque data set by the embedder on the
+ // UI thread at the beginning of navigation.
+ virtual NavigationUIData* GetNavigationUIData() const = 0;
+
protected:
virtual ~ResourceRequestInfo() {}
};
« no previous file with comments | « content/public/browser/navigation_ui_data.h ('k') | content/test/test_navigation_url_loader_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698