Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(417)

Side by Side Diff: content/browser/loader/resource_dispatcher_host_impl.cc

Issue 623663002: [ServiceWorker] pipe RequestContext and FrameType to ServiceWorker. [2/2 chromium] (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: request_info.cc Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | content/browser/service_worker/service_worker_controllee_request_handler.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « no previous file | content/browser/service_worker/service_worker_controllee_request_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698