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

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

Issue 475333002: [ServiceWorker] Sends the blob uuid of the request body to the ServiceWorker. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: resolve blobs Created 6 years, 4 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 1098 matching lines...) Expand 10 before | Expand all | Expand 10 after
1109 GetBlobDataFromPublicURL(new_request->url())); 1109 GetBlobDataFromPublicURL(new_request->url()));
1110 } 1110 }
1111 1111
1112 // Initialize the service worker handler for the request. 1112 // Initialize the service worker handler for the request.
1113 ServiceWorkerRequestHandler::InitializeHandler( 1113 ServiceWorkerRequestHandler::InitializeHandler(
1114 new_request.get(), 1114 new_request.get(),
1115 filter_->service_worker_context(), 1115 filter_->service_worker_context(),
1116 GetBlobStorageContext(filter_), 1116 GetBlobStorageContext(filter_),
1117 child_id, 1117 child_id,
1118 request_data.service_worker_provider_id, 1118 request_data.service_worker_provider_id,
1119 request_data.resource_type); 1119 request_data.resource_type,
1120 request_data.request_body);
1120 1121
1121 // Have the appcache associate its extra info with the request. 1122 // Have the appcache associate its extra info with the request.
1122 AppCacheInterceptor::SetExtraRequestInfo( 1123 AppCacheInterceptor::SetExtraRequestInfo(
1123 new_request.get(), filter_->appcache_service(), child_id, 1124 new_request.get(), filter_->appcache_service(), child_id,
1124 request_data.appcache_host_id, request_data.resource_type); 1125 request_data.appcache_host_id, request_data.resource_type);
1125 1126
1126 scoped_ptr<ResourceHandler> handler( 1127 scoped_ptr<ResourceHandler> handler(
1127 CreateResourceHandler( 1128 CreateResourceHandler(
1128 new_request.get(), 1129 new_request.get(),
1129 request_data, sync_result, route_id, process_type, child_id, 1130 request_data, sync_result, route_id, process_type, child_id,
(...skipping 867 matching lines...) Expand 10 before | Expand all | Expand 10 after
1997 1998
1998 // Add a flag to selectively bypass the data reduction proxy if the resource 1999 // Add a flag to selectively bypass the data reduction proxy if the resource
1999 // type is not an image. 2000 // type is not an image.
2000 if (request_data.resource_type != RESOURCE_TYPE_IMAGE) 2001 if (request_data.resource_type != RESOURCE_TYPE_IMAGE)
2001 load_flags |= net::LOAD_BYPASS_DATA_REDUCTION_PROXY; 2002 load_flags |= net::LOAD_BYPASS_DATA_REDUCTION_PROXY;
2002 2003
2003 return load_flags; 2004 return load_flags;
2004 } 2005 }
2005 2006
2006 } // namespace content 2007 } // 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