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 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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::GetAssociatedRenderView( | 185 bool ResourceRequestInfoImpl::GetAssociatedRenderView( |
186 int* render_process_id, | 186 int* render_process_id, |
187 int* render_view_id) const { | 187 int* render_view_id) const { |
188 // If the request is from the worker process, find a tab that owns the worker. | 188 // If the request is from the worker process, find a content that owns the |
| 189 // worker. |
189 if (process_type_ == PROCESS_TYPE_WORKER) { | 190 if (process_type_ == PROCESS_TYPE_WORKER) { |
190 // Need to display some related UI for this network request - pick an | 191 // Need to display some related UI for this network request - pick an |
191 // arbitrary parent to do so. | 192 // arbitrary parent to do so. |
192 if (!WorkerServiceImpl::GetInstance()->GetRendererForWorker( | 193 if (!WorkerServiceImpl::GetInstance()->GetRendererForWorker( |
193 child_id_, render_process_id, render_view_id)) { | 194 child_id_, render_process_id, render_view_id)) { |
194 *render_process_id = -1; | 195 *render_process_id = -1; |
195 *render_view_id = -1; | 196 *render_view_id = -1; |
196 return false; | 197 return false; |
197 } | 198 } |
198 } else { | 199 } else { |
(...skipping 28 matching lines...) Expand all Loading... |
227 SSLClientAuthHandler* s) { | 228 SSLClientAuthHandler* s) { |
228 ssl_client_auth_handler_ = s; | 229 ssl_client_auth_handler_ = s; |
229 } | 230 } |
230 | 231 |
231 void ResourceRequestInfoImpl::set_requested_blob_data( | 232 void ResourceRequestInfoImpl::set_requested_blob_data( |
232 webkit_blob::BlobData* data) { | 233 webkit_blob::BlobData* data) { |
233 requested_blob_data_ = data; | 234 requested_blob_data_ = data; |
234 } | 235 } |
235 | 236 |
236 } // namespace content | 237 } // namespace content |
OLD | NEW |