| 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 <set> | 8 #include <set> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 123 | 123 |
| 124 // Returns false if the version is not in the expected STARTING in our | 124 // Returns false if the version is not in the expected STARTING in our |
| 125 // process state. That would be indicative of a bad IPC message. | 125 // process state. That would be indicative of a bad IPC message. |
| 126 bool SetHostedVersionId(int64 versions_id); | 126 bool SetHostedVersionId(int64 versions_id); |
| 127 | 127 |
| 128 // Returns a handler for a request, the handler may return NULL if | 128 // Returns a handler for a request, the handler may return NULL if |
| 129 // the request doesn't require special handling. | 129 // the request doesn't require special handling. |
| 130 scoped_ptr<ServiceWorkerRequestHandler> CreateRequestHandler( | 130 scoped_ptr<ServiceWorkerRequestHandler> CreateRequestHandler( |
| 131 FetchRequestMode request_mode, | 131 FetchRequestMode request_mode, |
| 132 FetchCredentialsMode credentials_mode, | 132 FetchCredentialsMode credentials_mode, |
| 133 FetchRedirectMode redirect_mode, |
| 133 ResourceType resource_type, | 134 ResourceType resource_type, |
| 134 RequestContextType request_context_type, | 135 RequestContextType request_context_type, |
| 135 RequestContextFrameType frame_type, | 136 RequestContextFrameType frame_type, |
| 136 base::WeakPtr<storage::BlobStorageContext> blob_storage_context, | 137 base::WeakPtr<storage::BlobStorageContext> blob_storage_context, |
| 137 scoped_refptr<ResourceRequestBody> body); | 138 scoped_refptr<ResourceRequestBody> body); |
| 138 | 139 |
| 139 // Used to get a ServiceWorkerObjectInfo to send to the renderer. Finds an | 140 // Used to get a ServiceWorkerObjectInfo to send to the renderer. Finds an |
| 140 // existing ServiceWorkerHandle, and increments its reference count, or else | 141 // existing ServiceWorkerHandle, and increments its reference count, or else |
| 141 // creates a new one (initialized to ref count 1). Returns the | 142 // creates a new one (initialized to ref count 1). Returns the |
| 142 // ServiceWorkerInfo from the handle. The renderer is expected to use | 143 // ServiceWorkerInfo from the handle. The renderer is expected to use |
| (...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 314 bool allow_association_; | 315 bool allow_association_; |
| 315 | 316 |
| 316 std::vector<base::Closure> queued_events_; | 317 std::vector<base::Closure> queued_events_; |
| 317 | 318 |
| 318 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerProviderHost); | 319 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerProviderHost); |
| 319 }; | 320 }; |
| 320 | 321 |
| 321 } // namespace content | 322 } // namespace content |
| 322 | 323 |
| 323 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_PROVIDER_HOST_H_ | 324 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_PROVIDER_HOST_H_ |
| OLD | NEW |