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 1188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1199 | 1199 |
1200 // Initialize the service worker handler for the request. We don't use | 1200 // Initialize the service worker handler for the request. We don't use |
1201 // ServiceWorker for synchronous loads to avoid renderer deadlocks. | 1201 // ServiceWorker for synchronous loads to avoid renderer deadlocks. |
1202 ServiceWorkerRequestHandler::InitializeHandler( | 1202 ServiceWorkerRequestHandler::InitializeHandler( |
1203 new_request.get(), | 1203 new_request.get(), |
1204 filter_->service_worker_context(), | 1204 filter_->service_worker_context(), |
1205 blob_context, | 1205 blob_context, |
1206 child_id, | 1206 child_id, |
1207 request_data.service_worker_provider_id, | 1207 request_data.service_worker_provider_id, |
1208 request_data.skip_service_worker || is_sync_load, | 1208 request_data.skip_service_worker || is_sync_load, |
| 1209 request_data.fetch_request_mode, |
1209 request_data.resource_type, | 1210 request_data.resource_type, |
1210 request_data.request_body); | 1211 request_data.request_body); |
1211 | 1212 |
1212 // Have the appcache associate its extra info with the request. | 1213 // Have the appcache associate its extra info with the request. |
1213 AppCacheInterceptor::SetExtraRequestInfo( | 1214 AppCacheInterceptor::SetExtraRequestInfo( |
1214 new_request.get(), filter_->appcache_service(), child_id, | 1215 new_request.get(), filter_->appcache_service(), child_id, |
1215 request_data.appcache_host_id, request_data.resource_type); | 1216 request_data.appcache_host_id, request_data.resource_type); |
1216 | 1217 |
1217 scoped_ptr<ResourceHandler> handler( | 1218 scoped_ptr<ResourceHandler> handler( |
1218 CreateResourceHandler( | 1219 CreateResourceHandler( |
(...skipping 890 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2109 | 2110 |
2110 // Add a flag to selectively bypass the data reduction proxy if the resource | 2111 // Add a flag to selectively bypass the data reduction proxy if the resource |
2111 // type is not an image. | 2112 // type is not an image. |
2112 if (request_data.resource_type != RESOURCE_TYPE_IMAGE) | 2113 if (request_data.resource_type != RESOURCE_TYPE_IMAGE) |
2113 load_flags |= net::LOAD_BYPASS_DATA_REDUCTION_PROXY; | 2114 load_flags |= net::LOAD_BYPASS_DATA_REDUCTION_PROXY; |
2114 | 2115 |
2115 return load_flags; | 2116 return load_flags; |
2116 } | 2117 } |
2117 | 2118 |
2118 } // namespace content | 2119 } // namespace content |
OLD | NEW |