| 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/loader/resource_request_info_impl.h" | 5 #include "content/browser/loader/resource_request_info_impl.h" |
| 6 | 6 |
| 7 #include "content/browser/worker_host/worker_service_impl.h" | 7 #include "content/browser/worker_host/worker_service_impl.h" |
| 8 #include "content/common/net/url_request_user_data.h" | 8 #include "content/common/net/url_request_user_data.h" |
| 9 #include "content/public/browser/global_request_id.h" | 9 #include "content/public/browser/global_request_id.h" |
| 10 #include "net/url_request/url_request.h" | 10 #include "net/url_request/url_request.h" |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 74 return static_cast<ResourceRequestInfoImpl*>(request->GetUserData(NULL)); | 74 return static_cast<ResourceRequestInfoImpl*>(request->GetUserData(NULL)); |
| 75 } | 75 } |
| 76 | 76 |
| 77 // static | 77 // static |
| 78 const ResourceRequestInfoImpl* ResourceRequestInfoImpl::ForRequest( | 78 const ResourceRequestInfoImpl* ResourceRequestInfoImpl::ForRequest( |
| 79 const net::URLRequest* request) { | 79 const net::URLRequest* request) { |
| 80 return ForRequest(const_cast<net::URLRequest*>(request)); | 80 return ForRequest(const_cast<net::URLRequest*>(request)); |
| 81 } | 81 } |
| 82 | 82 |
| 83 ResourceRequestInfoImpl::ResourceRequestInfoImpl( | 83 ResourceRequestInfoImpl::ResourceRequestInfoImpl( |
| 84 ProcessType process_type, | 84 int process_type, |
| 85 int child_id, | 85 int child_id, |
| 86 int route_id, | 86 int route_id, |
| 87 int origin_pid, | 87 int origin_pid, |
| 88 int request_id, | 88 int request_id, |
| 89 bool is_main_frame, | 89 bool is_main_frame, |
| 90 int64 frame_id, | 90 int64 frame_id, |
| 91 bool parent_is_main_frame, | 91 bool parent_is_main_frame, |
| 92 int64 parent_frame_id, | 92 int64 parent_frame_id, |
| 93 ResourceType::Type resource_type, | 93 ResourceType::Type resource_type, |
| 94 PageTransition transition_type, | 94 PageTransition transition_type, |
| (...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 220 GlobalRequestID ResourceRequestInfoImpl::GetGlobalRequestID() const { | 220 GlobalRequestID ResourceRequestInfoImpl::GetGlobalRequestID() const { |
| 221 return GlobalRequestID(child_id_, request_id_); | 221 return GlobalRequestID(child_id_, request_id_); |
| 222 } | 222 } |
| 223 | 223 |
| 224 void ResourceRequestInfoImpl::set_requested_blob_data( | 224 void ResourceRequestInfoImpl::set_requested_blob_data( |
| 225 webkit_blob::BlobData* data) { | 225 webkit_blob::BlobData* data) { |
| 226 requested_blob_data_ = data; | 226 requested_blob_data_ = data; |
| 227 } | 227 } |
| 228 | 228 |
| 229 } // namespace content | 229 } // namespace content |
| OLD | NEW |