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

Side by Side Diff: content/browser/service_worker/service_worker_provider_host.h

Issue 2941883003: [ServiceWorker] Fetch event should return integrity value (Closed)
Patch Set: Address yhirano's comment #78 Created 3 years, 5 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 #ifndef CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_PROVIDER_HOST_H_ 5 #ifndef CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_PROVIDER_HOST_H_
6 #define CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_PROVIDER_HOST_H_ 6 #define CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_PROVIDER_HOST_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after
208 // Used only when IsServicificationEnabled is true. 208 // Used only when IsServicificationEnabled is true.
209 void CreateScriptURLLoaderFactory( 209 void CreateScriptURLLoaderFactory(
210 mojom::URLLoaderFactoryAssociatedRequest script_loader_factory_request); 210 mojom::URLLoaderFactoryAssociatedRequest script_loader_factory_request);
211 211
212 // Returns a handler for a request, the handler may return NULL if 212 // Returns a handler for a request, the handler may return NULL if
213 // the request doesn't require special handling. 213 // the request doesn't require special handling.
214 std::unique_ptr<ServiceWorkerRequestHandler> CreateRequestHandler( 214 std::unique_ptr<ServiceWorkerRequestHandler> CreateRequestHandler(
215 FetchRequestMode request_mode, 215 FetchRequestMode request_mode,
216 FetchCredentialsMode credentials_mode, 216 FetchCredentialsMode credentials_mode,
217 FetchRedirectMode redirect_mode, 217 FetchRedirectMode redirect_mode,
218 const std::string& integrity,
218 ResourceType resource_type, 219 ResourceType resource_type,
219 RequestContextType request_context_type, 220 RequestContextType request_context_type,
220 RequestContextFrameType frame_type, 221 RequestContextFrameType frame_type,
221 base::WeakPtr<storage::BlobStorageContext> blob_storage_context, 222 base::WeakPtr<storage::BlobStorageContext> blob_storage_context,
222 scoped_refptr<ResourceRequestBody> body, 223 scoped_refptr<ResourceRequestBody> body,
223 bool skip_service_worker); 224 bool skip_service_worker);
224 225
225 // Used to get a ServiceWorkerObjectInfo to send to the renderer. Finds an 226 // Used to get a ServiceWorkerObjectInfo to send to the renderer. Finds an
226 // existing ServiceWorkerHandle, and increments its reference count, or else 227 // existing ServiceWorkerHandle, and increments its reference count, or else
227 // creates a new one (initialized to ref count 1). Returns the 228 // creates a new one (initialized to ref count 1). Returns the
(...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after
444 std::unordered_map<mojom::ServiceWorkerWorkerClient*, 445 std::unordered_map<mojom::ServiceWorkerWorkerClient*,
445 mojom::ServiceWorkerWorkerClientAssociatedPtr> 446 mojom::ServiceWorkerWorkerClientAssociatedPtr>
446 worker_clients_; 447 worker_clients_;
447 448
448 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerProviderHost); 449 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerProviderHost);
449 }; 450 };
450 451
451 } // namespace content 452 } // namespace content
452 453
453 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_PROVIDER_HOST_H_ 454 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_PROVIDER_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698