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 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
167 // Returns a handler for a request, the handler may return NULL if | 167 // Returns a handler for a request, the handler may return NULL if |
168 // the request doesn't require special handling. | 168 // the request doesn't require special handling. |
169 std::unique_ptr<ServiceWorkerRequestHandler> CreateRequestHandler( | 169 std::unique_ptr<ServiceWorkerRequestHandler> CreateRequestHandler( |
170 FetchRequestMode request_mode, | 170 FetchRequestMode request_mode, |
171 FetchCredentialsMode credentials_mode, | 171 FetchCredentialsMode credentials_mode, |
172 FetchRedirectMode redirect_mode, | 172 FetchRedirectMode redirect_mode, |
173 ResourceType resource_type, | 173 ResourceType resource_type, |
174 RequestContextType request_context_type, | 174 RequestContextType request_context_type, |
175 RequestContextFrameType frame_type, | 175 RequestContextFrameType frame_type, |
176 base::WeakPtr<storage::BlobStorageContext> blob_storage_context, | 176 base::WeakPtr<storage::BlobStorageContext> blob_storage_context, |
177 scoped_refptr<ResourceRequestBodyImpl> body); | 177 scoped_refptr<ResourceRequestBodyImpl> body, |
| 178 bool skip_service_worker); |
178 | 179 |
179 // Used to get a ServiceWorkerObjectInfo to send to the renderer. Finds an | 180 // Used to get a ServiceWorkerObjectInfo to send to the renderer. Finds an |
180 // existing ServiceWorkerHandle, and increments its reference count, or else | 181 // existing ServiceWorkerHandle, and increments its reference count, or else |
181 // creates a new one (initialized to ref count 1). Returns the | 182 // creates a new one (initialized to ref count 1). Returns the |
182 // ServiceWorkerInfo from the handle. The renderer is expected to use | 183 // ServiceWorkerInfo from the handle. The renderer is expected to use |
183 // ServiceWorkerHandleReference::Adopt to balance out the ref count. | 184 // ServiceWorkerHandleReference::Adopt to balance out the ref count. |
184 ServiceWorkerObjectInfo GetOrCreateServiceWorkerHandle( | 185 ServiceWorkerObjectInfo GetOrCreateServiceWorkerHandle( |
185 ServiceWorkerVersion* version); | 186 ServiceWorkerVersion* version); |
186 | 187 |
187 // Returns true if |registration| can be associated with this provider. | 188 // Returns true if |registration| can be associated with this provider. |
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
375 bool allow_association_; | 376 bool allow_association_; |
376 | 377 |
377 std::vector<base::Closure> queued_events_; | 378 std::vector<base::Closure> queued_events_; |
378 | 379 |
379 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerProviderHost); | 380 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerProviderHost); |
380 }; | 381 }; |
381 | 382 |
382 } // namespace content | 383 } // namespace content |
383 | 384 |
384 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_PROVIDER_HOST_H_ | 385 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_PROVIDER_HOST_H_ |
OLD | NEW |