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