OLD | NEW |
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 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
201 void DisassociateRegistration(); | 201 void DisassociateRegistration(); |
202 | 202 |
203 void SetHostedVersion(ServiceWorkerVersion* version); | 203 void SetHostedVersion(ServiceWorkerVersion* version); |
204 | 204 |
205 // Returns a handler for a request, the handler may return NULL if | 205 // Returns a handler for a request, the handler may return NULL if |
206 // the request doesn't require special handling. | 206 // the request doesn't require special handling. |
207 std::unique_ptr<ServiceWorkerRequestHandler> CreateRequestHandler( | 207 std::unique_ptr<ServiceWorkerRequestHandler> CreateRequestHandler( |
208 FetchRequestMode request_mode, | 208 FetchRequestMode request_mode, |
209 FetchCredentialsMode credentials_mode, | 209 FetchCredentialsMode credentials_mode, |
210 FetchRedirectMode redirect_mode, | 210 FetchRedirectMode redirect_mode, |
| 211 const std::string& integrity, |
211 ResourceType resource_type, | 212 ResourceType resource_type, |
212 RequestContextType request_context_type, | 213 RequestContextType request_context_type, |
213 RequestContextFrameType frame_type, | 214 RequestContextFrameType frame_type, |
214 base::WeakPtr<storage::BlobStorageContext> blob_storage_context, | 215 base::WeakPtr<storage::BlobStorageContext> blob_storage_context, |
215 scoped_refptr<ResourceRequestBodyImpl> body, | 216 scoped_refptr<ResourceRequestBodyImpl> body, |
216 bool skip_service_worker); | 217 bool skip_service_worker); |
217 | 218 |
218 // Used to get a ServiceWorkerObjectInfo to send to the renderer. Finds an | 219 // Used to get a ServiceWorkerObjectInfo to send to the renderer. Finds an |
219 // existing ServiceWorkerHandle, and increments its reference count, or else | 220 // existing ServiceWorkerHandle, and increments its reference count, or else |
220 // creates a new one (initialized to ref count 1). Returns the | 221 // creates a new one (initialized to ref count 1). Returns the |
(...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
437 std::unordered_map<mojom::ServiceWorkerWorkerClient*, | 438 std::unordered_map<mojom::ServiceWorkerWorkerClient*, |
438 mojom::ServiceWorkerWorkerClientAssociatedPtr> | 439 mojom::ServiceWorkerWorkerClientAssociatedPtr> |
439 worker_clients_; | 440 worker_clients_; |
440 | 441 |
441 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerProviderHost); | 442 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerProviderHost); |
442 }; | 443 }; |
443 | 444 |
444 } // namespace content | 445 } // namespace content |
445 | 446 |
446 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_PROVIDER_HOST_H_ | 447 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_PROVIDER_HOST_H_ |
OLD | NEW |