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

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

Issue 527713002: [ServiceWorker] Introduce skip_service_worker flag and remove LOAD_BYPASS_CACHE check. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Introduce skip_service_worker flag Created 6 years, 3 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.cc » ('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 1124 matching lines...) Expand 10 before | Expand all | Expand 10 after
1135 new_request->url())); 1135 new_request->url()));
1136 } 1136 }
1137 1137
1138 // Initialize the service worker handler for the request. 1138 // Initialize the service worker handler for the request.
1139 ServiceWorkerRequestHandler::InitializeHandler( 1139 ServiceWorkerRequestHandler::InitializeHandler(
1140 new_request.get(), 1140 new_request.get(),
1141 filter_->service_worker_context(), 1141 filter_->service_worker_context(),
1142 blob_context, 1142 blob_context,
1143 child_id, 1143 child_id,
1144 request_data.service_worker_provider_id, 1144 request_data.service_worker_provider_id,
1145 request_data.skip_service_worker,
1145 request_data.resource_type, 1146 request_data.resource_type,
1146 request_data.request_body); 1147 request_data.request_body);
1147 1148
1148 // Have the appcache associate its extra info with the request. 1149 // Have the appcache associate its extra info with the request.
1149 AppCacheInterceptor::SetExtraRequestInfo( 1150 AppCacheInterceptor::SetExtraRequestInfo(
1150 new_request.get(), filter_->appcache_service(), child_id, 1151 new_request.get(), filter_->appcache_service(), child_id,
1151 request_data.appcache_host_id, request_data.resource_type); 1152 request_data.appcache_host_id, request_data.resource_type);
1152 1153
1153 scoped_ptr<ResourceHandler> handler( 1154 scoped_ptr<ResourceHandler> handler(
1154 CreateResourceHandler( 1155 CreateResourceHandler(
(...skipping 883 matching lines...) Expand 10 before | Expand all | Expand 10 after
2038 2039
2039 // Add a flag to selectively bypass the data reduction proxy if the resource 2040 // Add a flag to selectively bypass the data reduction proxy if the resource
2040 // type is not an image. 2041 // type is not an image.
2041 if (request_data.resource_type != RESOURCE_TYPE_IMAGE) 2042 if (request_data.resource_type != RESOURCE_TYPE_IMAGE)
2042 load_flags |= net::LOAD_BYPASS_DATA_REDUCTION_PROXY; 2043 load_flags |= net::LOAD_BYPASS_DATA_REDUCTION_PROXY;
2043 2044
2044 return load_flags; 2045 return load_flags;
2045 } 2046 }
2046 2047
2047 } // namespace content 2048 } // namespace content
OLDNEW
« no previous file with comments | « no previous file | content/browser/service_worker/service_worker_controllee_request_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698