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 // See http://dev.chromium.org/developers/design-documents/multi-process-resourc
e-loading | 5 // See http://dev.chromium.org/developers/design-documents/multi-process-resourc
e-loading |
6 | 6 |
7 #include "content/browser/loader/resource_dispatcher_host_impl.h" | 7 #include "content/browser/loader/resource_dispatcher_host_impl.h" |
8 | 8 |
9 #include <algorithm> | 9 #include <algorithm> |
10 #include <set> | 10 #include <set> |
(...skipping 1224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1235 ServiceWorkerRequestHandler::InitializeHandler( | 1235 ServiceWorkerRequestHandler::InitializeHandler( |
1236 new_request.get(), | 1236 new_request.get(), |
1237 filter_->service_worker_context(), | 1237 filter_->service_worker_context(), |
1238 blob_context, | 1238 blob_context, |
1239 child_id, | 1239 child_id, |
1240 request_data.service_worker_provider_id, | 1240 request_data.service_worker_provider_id, |
1241 request_data.skip_service_worker || is_sync_load, | 1241 request_data.skip_service_worker || is_sync_load, |
1242 request_data.fetch_request_mode, | 1242 request_data.fetch_request_mode, |
1243 request_data.fetch_credentials_mode, | 1243 request_data.fetch_credentials_mode, |
1244 request_data.resource_type, | 1244 request_data.resource_type, |
| 1245 request_data.fetch_request_context_type, |
| 1246 request_data.fetch_frame_type, |
1245 request_data.request_body); | 1247 request_data.request_body); |
1246 | 1248 |
1247 // Have the appcache associate its extra info with the request. | 1249 // Have the appcache associate its extra info with the request. |
1248 AppCacheInterceptor::SetExtraRequestInfo( | 1250 AppCacheInterceptor::SetExtraRequestInfo( |
1249 new_request.get(), filter_->appcache_service(), child_id, | 1251 new_request.get(), filter_->appcache_service(), child_id, |
1250 request_data.appcache_host_id, request_data.resource_type); | 1252 request_data.appcache_host_id, request_data.resource_type); |
1251 | 1253 |
1252 scoped_ptr<ResourceHandler> handler( | 1254 scoped_ptr<ResourceHandler> handler( |
1253 CreateResourceHandler( | 1255 CreateResourceHandler( |
1254 new_request.get(), | 1256 new_request.get(), |
(...skipping 890 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2145 | 2147 |
2146 // Add a flag to selectively bypass the data reduction proxy if the resource | 2148 // Add a flag to selectively bypass the data reduction proxy if the resource |
2147 // type is not an image. | 2149 // type is not an image. |
2148 if (request_data.resource_type != RESOURCE_TYPE_IMAGE) | 2150 if (request_data.resource_type != RESOURCE_TYPE_IMAGE) |
2149 load_flags |= net::LOAD_BYPASS_DATA_REDUCTION_PROXY; | 2151 load_flags |= net::LOAD_BYPASS_DATA_REDUCTION_PROXY; |
2150 | 2152 |
2151 return load_flags; | 2153 return load_flags; |
2152 } | 2154 } |
2153 | 2155 |
2154 } // namespace content | 2156 } // namespace content |
OLD | NEW |