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

Unified Diff: content/browser/renderer_host/resource_request_info_impl.cc

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
Index: content/browser/renderer_host/resource_request_info_impl.cc
diff --git a/content/browser/renderer_host/resource_request_info_impl.cc b/content/browser/renderer_host/resource_request_info_impl.cc
index 8859b8e68dcd0a57742bb86382da7e29220f7c9f..c063d1dae6b24677e1f71fdd540da3a9001eb704 100644
--- a/content/browser/renderer_host/resource_request_info_impl.cc
+++ b/content/browser/renderer_host/resource_request_info_impl.cc
@@ -25,12 +25,14 @@ const ResourceRequestInfo* ResourceRequestInfo::ForRequest(
void ResourceRequestInfo::AllocateForTesting(
net::URLRequest* request,
ResourceType::Type resource_type,
- ResourceContext* context) {
+ ResourceContext* context,
+ int render_process_id,
+ int render_view_id) {
ResourceRequestInfoImpl* info =
new ResourceRequestInfoImpl(
PROCESS_TYPE_RENDERER, // process_type
- -1, // child_id
- MSG_ROUTING_NONE, // route_id
+ render_process_id, // child_id
+ render_view_id, // route_id
0, // origin_pid
0, // request_id
resource_type == ResourceType::MAIN_FRAME, // is_main_frame
@@ -168,6 +170,10 @@ uint64 ResourceRequestInfoImpl::GetUploadSize() const {
return upload_size_;
}
+bool ResourceRequestInfoImpl::HasUserGesture() const {
+ return has_user_gesture_;
+}
+
bool ResourceRequestInfoImpl::GetAssociatedRenderView(
int* render_process_id,
int* render_view_id) const {
« no previous file with comments | « content/browser/renderer_host/resource_request_info_impl.h ('k') | content/browser/web_contents/web_contents_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698