| 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 24 matching lines...) Expand all Loading... |
| 35 render_view_id, // route_id | 35 render_view_id, // route_id |
| 36 0, // origin_pid | 36 0, // origin_pid |
| 37 0, // request_id | 37 0, // request_id |
| 38 resource_type == ResourceType::MAIN_FRAME, // is_main_frame | 38 resource_type == ResourceType::MAIN_FRAME, // is_main_frame |
| 39 0, // frame_id | 39 0, // frame_id |
| 40 false, // parent_is_main_frame | 40 false, // parent_is_main_frame |
| 41 0, // parent_frame_id | 41 0, // parent_frame_id |
| 42 resource_type, // resource_type | 42 resource_type, // resource_type |
| 43 PAGE_TRANSITION_LINK, // transition_type | 43 PAGE_TRANSITION_LINK, // transition_type |
| 44 false, // is_download | 44 false, // is_download |
| 45 false, // is_stream |
| 45 true, // allow_download | 46 true, // allow_download |
| 46 false, // has_user_gesture | 47 false, // has_user_gesture |
| 47 WebKit::WebReferrerPolicyDefault, // referrer_policy | 48 WebKit::WebReferrerPolicyDefault, // referrer_policy |
| 48 context, // context | 49 context, // context |
| 49 false); // is_async | 50 false); // is_async |
| 50 info->AssociateWithRequest(request); | 51 info->AssociateWithRequest(request); |
| 51 } | 52 } |
| 52 | 53 |
| 53 // static | 54 // static |
| 54 bool ResourceRequestInfo::GetRenderViewForRequest( | 55 bool ResourceRequestInfo::GetRenderViewForRequest( |
| (...skipping 30 matching lines...) Expand all Loading... |
| 85 int route_id, | 86 int route_id, |
| 86 int origin_pid, | 87 int origin_pid, |
| 87 int request_id, | 88 int request_id, |
| 88 bool is_main_frame, | 89 bool is_main_frame, |
| 89 int64 frame_id, | 90 int64 frame_id, |
| 90 bool parent_is_main_frame, | 91 bool parent_is_main_frame, |
| 91 int64 parent_frame_id, | 92 int64 parent_frame_id, |
| 92 ResourceType::Type resource_type, | 93 ResourceType::Type resource_type, |
| 93 PageTransition transition_type, | 94 PageTransition transition_type, |
| 94 bool is_download, | 95 bool is_download, |
| 96 bool is_stream, |
| 95 bool allow_download, | 97 bool allow_download, |
| 96 bool has_user_gesture, | 98 bool has_user_gesture, |
| 97 WebKit::WebReferrerPolicy referrer_policy, | 99 WebKit::WebReferrerPolicy referrer_policy, |
| 98 ResourceContext* context, | 100 ResourceContext* context, |
| 99 bool is_async) | 101 bool is_async) |
| 100 : cross_site_handler_(NULL), | 102 : cross_site_handler_(NULL), |
| 101 process_type_(process_type), | 103 process_type_(process_type), |
| 102 child_id_(child_id), | 104 child_id_(child_id), |
| 103 route_id_(route_id), | 105 route_id_(route_id), |
| 104 origin_pid_(origin_pid), | 106 origin_pid_(origin_pid), |
| 105 request_id_(request_id), | 107 request_id_(request_id), |
| 106 is_main_frame_(is_main_frame), | 108 is_main_frame_(is_main_frame), |
| 107 frame_id_(frame_id), | 109 frame_id_(frame_id), |
| 108 parent_is_main_frame_(parent_is_main_frame), | 110 parent_is_main_frame_(parent_is_main_frame), |
| 109 parent_frame_id_(parent_frame_id), | 111 parent_frame_id_(parent_frame_id), |
| 110 is_download_(is_download), | 112 is_download_(is_download), |
| 113 is_stream_(is_stream), |
| 111 allow_download_(allow_download), | 114 allow_download_(allow_download), |
| 112 has_user_gesture_(has_user_gesture), | 115 has_user_gesture_(has_user_gesture), |
| 113 was_ignored_by_handler_(false), | 116 was_ignored_by_handler_(false), |
| 114 resource_type_(resource_type), | 117 resource_type_(resource_type), |
| 115 transition_type_(transition_type), | 118 transition_type_(transition_type), |
| 116 memory_cost_(0), | 119 memory_cost_(0), |
| 117 referrer_policy_(referrer_policy), | 120 referrer_policy_(referrer_policy), |
| 118 context_(context), | 121 context_(context), |
| 119 is_async_(is_async) { | 122 is_async_(is_async) { |
| 120 } | 123 } |
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 217 GlobalRequestID ResourceRequestInfoImpl::GetGlobalRequestID() const { | 220 GlobalRequestID ResourceRequestInfoImpl::GetGlobalRequestID() const { |
| 218 return GlobalRequestID(child_id_, request_id_); | 221 return GlobalRequestID(child_id_, request_id_); |
| 219 } | 222 } |
| 220 | 223 |
| 221 void ResourceRequestInfoImpl::set_requested_blob_data( | 224 void ResourceRequestInfoImpl::set_requested_blob_data( |
| 222 webkit_blob::BlobData* data) { | 225 webkit_blob::BlobData* data) { |
| 223 requested_blob_data_ = data; | 226 requested_blob_data_ = data; |
| 224 } | 227 } |
| 225 | 228 |
| 226 } // namespace content | 229 } // namespace content |
| OLD | NEW |