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

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

Issue 10310124: Implement a ResourceThrottle for URL overriding in Chrome on Android. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: fix build (Referrer is a struct, not a class) Created 8 years, 6 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/render_view_host.h ('k') | no next file » | 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 b6a73df1dc219a20e86a27af0268b6a316f57a1d..debb1c2c561195f60ad9570e48767dd81f1dadc8 100644
--- a/content/public/browser/resource_request_info.h
+++ b/content/public/browser/resource_request_info.h
@@ -32,7 +32,9 @@ class ResourceRequestInfo {
CONTENT_EXPORT static void AllocateForTesting(
net::URLRequest* request,
ResourceType::Type resource_type,
- ResourceContext* context);
+ ResourceContext* context,
+ int render_process_id,
+ int render_view_id);
// Returns the associated RenderView for a given process. Returns false, if
// there is no associated RenderView. This method does not rely on the
@@ -83,6 +85,10 @@ class ResourceRequestInfo {
// is no upload, this will be 0.
virtual uint64 GetUploadSize() const = 0;
+ // True if the request was initiated by a user action (like a tap to follow
+ // a link).
+ virtual bool HasUserGesture() const = 0;
+
// Returns false if there is NOT an associated render view.
virtual bool GetAssociatedRenderView(int* render_process_id,
int* render_view_id) const = 0;
« no previous file with comments | « content/public/browser/render_view_host.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698