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

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

Issue 2335133003: PlzNavigate: support the WebRequest API (Closed)
Patch Set: Added missing comment 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/resource_request_info.h
diff --git a/content/public/browser/resource_request_info.h b/content/public/browser/resource_request_info.h
index 37a8c8ef8fd1fb0af81a4b886154e68b43dc4e64..c3c803f63a15036d9a23a09ac45f04622d14d869 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;
@@ -152,6 +153,11 @@ class ResourceRequestInfo {
// Whether this request if using Lo-Fi mode.
virtual bool IsUsingLoFi() const = 0;
+ // PlzNavigate
+ // Only used for main resources. Returns opaque data set by the embedder on
nasko 2016/09/22 18:32:50 What is "main resource"? What about subframe navig
clamy 2016/09/26 15:37:51 I meant the load of the main resource of each fram
+ // the UI thread at the beginning of navigation.
+ virtual NavigationUIData* GetNavigationUIData() const = 0;
+
protected:
virtual ~ResourceRequestInfo() {}
};

Powered by Google App Engine
This is Rietveld 408576698