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 1222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1233 // Initialize the service worker handler for the request. We don't use | 1233 // Initialize the service worker handler for the request. We don't use |
1234 // ServiceWorker for synchronous loads to avoid renderer deadlocks. | 1234 // ServiceWorker for synchronous loads to avoid renderer deadlocks. |
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.resource_type, | 1244 request_data.resource_type, |
1244 request_data.request_body); | 1245 request_data.request_body); |
1245 | 1246 |
1246 // Have the appcache associate its extra info with the request. | 1247 // Have the appcache associate its extra info with the request. |
1247 AppCacheInterceptor::SetExtraRequestInfo( | 1248 AppCacheInterceptor::SetExtraRequestInfo( |
1248 new_request.get(), filter_->appcache_service(), child_id, | 1249 new_request.get(), filter_->appcache_service(), child_id, |
1249 request_data.appcache_host_id, request_data.resource_type); | 1250 request_data.appcache_host_id, request_data.resource_type); |
1250 | 1251 |
1251 scoped_ptr<ResourceHandler> handler( | 1252 scoped_ptr<ResourceHandler> handler( |
1252 CreateResourceHandler( | 1253 CreateResourceHandler( |
(...skipping 891 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2144 | 2145 |
2145 // Add a flag to selectively bypass the data reduction proxy if the resource | 2146 // Add a flag to selectively bypass the data reduction proxy if the resource |
2146 // type is not an image. | 2147 // type is not an image. |
2147 if (request_data.resource_type != RESOURCE_TYPE_IMAGE) | 2148 if (request_data.resource_type != RESOURCE_TYPE_IMAGE) |
2148 load_flags |= net::LOAD_BYPASS_DATA_REDUCTION_PROXY; | 2149 load_flags |= net::LOAD_BYPASS_DATA_REDUCTION_PROXY; |
2149 | 2150 |
2150 return load_flags; | 2151 return load_flags; |
2151 } | 2152 } |
2152 | 2153 |
2153 } // namespace content | 2154 } // namespace content |
OLD | NEW |