| 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 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 116 // sets the controller. If |notify_controllerchange| is true, instructs the | 116 // sets the controller. If |notify_controllerchange| is true, instructs the |
| 117 // renderer to dispatch a 'controllerchange' event. | 117 // renderer to dispatch a 'controllerchange' event. |
| 118 void AssociateRegistration(ServiceWorkerRegistration* registration, | 118 void AssociateRegistration(ServiceWorkerRegistration* registration, |
| 119 bool notify_controllerchange); | 119 bool notify_controllerchange); |
| 120 | 120 |
| 121 // Clears the associated registration and stop listening to it. | 121 // Clears the associated registration and stop listening to it. |
| 122 void DisassociateRegistration(); | 122 void DisassociateRegistration(); |
| 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(std::string version_uuid); |
| 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 ResourceType resource_type, | 133 ResourceType resource_type, |
| 134 RequestContextType request_context_type, | 134 RequestContextType request_context_type, |
| 135 RequestContextFrameType frame_type, | 135 RequestContextFrameType frame_type, |
| 136 base::WeakPtr<storage::BlobStorageContext> blob_storage_context, | 136 base::WeakPtr<storage::BlobStorageContext> blob_storage_context, |
| (...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 313 bool allow_association_; | 313 bool allow_association_; |
| 314 | 314 |
| 315 std::vector<base::Closure> queued_events_; | 315 std::vector<base::Closure> queued_events_; |
| 316 | 316 |
| 317 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerProviderHost); | 317 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerProviderHost); |
| 318 }; | 318 }; |
| 319 | 319 |
| 320 } // namespace content | 320 } // namespace content |
| 321 | 321 |
| 322 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_PROVIDER_HOST_H_ | 322 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_PROVIDER_HOST_H_ |
| OLD | NEW |