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

Side by Side Diff: content/browser/renderer_host/resource_request_info_impl.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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RESOURCE_REQUEST_INFO_IMPL_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RESOURCE_REQUEST_INFO_IMPL_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_RESOURCE_REQUEST_INFO_IMPL_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_RESOURCE_REQUEST_INFO_IMPL_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 virtual int GetRouteID() const OVERRIDE; 69 virtual int GetRouteID() const OVERRIDE;
70 virtual int GetOriginPID() const OVERRIDE; 70 virtual int GetOriginPID() const OVERRIDE;
71 virtual int GetRequestID() const OVERRIDE; 71 virtual int GetRequestID() const OVERRIDE;
72 virtual bool IsMainFrame() const OVERRIDE; 72 virtual bool IsMainFrame() const OVERRIDE;
73 virtual int64 GetFrameID() const OVERRIDE; 73 virtual int64 GetFrameID() const OVERRIDE;
74 virtual bool ParentIsMainFrame() const OVERRIDE; 74 virtual bool ParentIsMainFrame() const OVERRIDE;
75 virtual int64 GetParentFrameID() const OVERRIDE; 75 virtual int64 GetParentFrameID() const OVERRIDE;
76 virtual ResourceType::Type GetResourceType() const OVERRIDE; 76 virtual ResourceType::Type GetResourceType() const OVERRIDE;
77 virtual WebKit::WebReferrerPolicy GetReferrerPolicy() const OVERRIDE; 77 virtual WebKit::WebReferrerPolicy GetReferrerPolicy() const OVERRIDE;
78 virtual uint64 GetUploadSize() const OVERRIDE; 78 virtual uint64 GetUploadSize() const OVERRIDE;
79 virtual bool HasUserGesture() const OVERRIDE;
79 virtual bool GetAssociatedRenderView(int* render_process_id, 80 virtual bool GetAssociatedRenderView(int* render_process_id,
80 int* render_view_id) const OVERRIDE; 81 int* render_view_id) const OVERRIDE;
81 82
82 void AssociateWithRequest(net::URLRequest* request); 83 void AssociateWithRequest(net::URLRequest* request);
83 84
84 GlobalRequestID GetGlobalRequestID() const; 85 GlobalRequestID GetGlobalRequestID() const;
85 86
86 // CrossSiteResourceHandler for this request. May be null. 87 // CrossSiteResourceHandler for this request. May be null.
87 CrossSiteResourceHandler* cross_site_handler() { 88 CrossSiteResourceHandler* cross_site_handler() {
88 return cross_site_handler_; 89 return cross_site_handler_;
(...skipping 11 matching lines...) Expand all
100 } 101 }
101 102
102 // Identifies the type of process (renderer, plugin, etc.) making the request. 103 // Identifies the type of process (renderer, plugin, etc.) making the request.
103 ProcessType process_type() const { 104 ProcessType process_type() const {
104 return process_type_; 105 return process_type_;
105 } 106 }
106 107
107 // Downloads are allowed only as a top level request. 108 // Downloads are allowed only as a top level request.
108 bool allow_download() const { return allow_download_; } 109 bool allow_download() const { return allow_download_; }
109 110
110 bool has_user_gesture() const { return has_user_gesture_; }
111
112 // Whether this is a download. 111 // Whether this is a download.
113 bool is_download() const { return is_download_; } 112 bool is_download() const { return is_download_; }
114 void set_is_download(bool download) { is_download_ = download; } 113 void set_is_download(bool download) { is_download_ = download; }
115 114
116 PageTransition transition_type() const { return transition_type_; } 115 PageTransition transition_type() const { return transition_type_; }
117 116
118 void set_upload_size(uint64 upload_size) { upload_size_ = upload_size; } 117 void set_upload_size(uint64 upload_size) { upload_size_ = upload_size; }
119 118
120 // The approximate in-memory size (bytes) that we credited this request 119 // The approximate in-memory size (bytes) that we credited this request
121 // as consuming in |outstanding_requests_memory_cost_map_|. 120 // as consuming in |outstanding_requests_memory_cost_map_|.
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
153 scoped_refptr<webkit_blob::BlobData> requested_blob_data_; 152 scoped_refptr<webkit_blob::BlobData> requested_blob_data_;
154 WebKit::WebReferrerPolicy referrer_policy_; 153 WebKit::WebReferrerPolicy referrer_policy_;
155 ResourceContext* context_; 154 ResourceContext* context_;
156 155
157 DISALLOW_COPY_AND_ASSIGN(ResourceRequestInfoImpl); 156 DISALLOW_COPY_AND_ASSIGN(ResourceRequestInfoImpl);
158 }; 157 };
159 158
160 } // namespace content 159 } // namespace content
161 160
162 #endif // CONTENT_BROWSER_RENDERER_HOST_RESOURCE_REQUEST_INFO_IMPL_H_ 161 #endif // CONTENT_BROWSER_RENDERER_HOST_RESOURCE_REQUEST_INFO_IMPL_H_
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_view_host_impl.cc ('k') | content/browser/renderer_host/resource_request_info_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698