OLD | NEW |
---|---|
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 #include "content/browser/renderer_host/resource_request_info_impl.h" | 5 #include "content/browser/renderer_host/resource_request_info_impl.h" |
6 | 6 |
7 #include "content/browser/renderer_host/resource_handler.h" | 7 #include "content/browser/renderer_host/resource_handler.h" |
8 #include "content/browser/ssl/ssl_client_auth_handler.h" | 8 #include "content/browser/ssl/ssl_client_auth_handler.h" |
9 #include "content/browser/worker_host/worker_service_impl.h" | 9 #include "content/browser/worker_host/worker_service_impl.h" |
10 #include "content/common/net/url_request_user_data.h" | 10 #include "content/common/net/url_request_user_data.h" |
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
175 } | 175 } |
176 | 176 |
177 WebKit::WebReferrerPolicy ResourceRequestInfoImpl::GetReferrerPolicy() const { | 177 WebKit::WebReferrerPolicy ResourceRequestInfoImpl::GetReferrerPolicy() const { |
178 return referrer_policy_; | 178 return referrer_policy_; |
179 } | 179 } |
180 | 180 |
181 uint64 ResourceRequestInfoImpl::GetUploadSize() const { | 181 uint64 ResourceRequestInfoImpl::GetUploadSize() const { |
182 return upload_size_; | 182 return upload_size_; |
183 } | 183 } |
184 | 184 |
185 bool ResourceRequestInfoImpl::GetHasUserGesture() const { | |
joth
2012/05/15 14:30:43
suggest: GetHasUserGesture => HasUserGesture
(in s
| |
186 return has_user_gesture_; | |
187 } | |
188 | |
185 bool ResourceRequestInfoImpl::GetAssociatedRenderView( | 189 bool ResourceRequestInfoImpl::GetAssociatedRenderView( |
186 int* render_process_id, | 190 int* render_process_id, |
187 int* render_view_id) const { | 191 int* render_view_id) const { |
188 // If the request is from the worker process, find a content that owns the | 192 // If the request is from the worker process, find a content that owns the |
189 // worker. | 193 // worker. |
190 if (process_type_ == PROCESS_TYPE_WORKER) { | 194 if (process_type_ == PROCESS_TYPE_WORKER) { |
191 // Need to display some related UI for this network request - pick an | 195 // Need to display some related UI for this network request - pick an |
192 // arbitrary parent to do so. | 196 // arbitrary parent to do so. |
193 if (!WorkerServiceImpl::GetInstance()->GetRendererForWorker( | 197 if (!WorkerServiceImpl::GetInstance()->GetRendererForWorker( |
194 child_id_, render_process_id, render_view_id)) { | 198 child_id_, render_process_id, render_view_id)) { |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
228 SSLClientAuthHandler* s) { | 232 SSLClientAuthHandler* s) { |
229 ssl_client_auth_handler_ = s; | 233 ssl_client_auth_handler_ = s; |
230 } | 234 } |
231 | 235 |
232 void ResourceRequestInfoImpl::set_requested_blob_data( | 236 void ResourceRequestInfoImpl::set_requested_blob_data( |
233 webkit_blob::BlobData* data) { | 237 webkit_blob::BlobData* data) { |
234 requested_blob_data_ = data; | 238 requested_blob_data_ = data; |
235 } | 239 } |
236 | 240 |
237 } // namespace content | 241 } // namespace content |
OLD | NEW |