OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_CHILD_SERVICE_WORKER_SERVICE_WORKER_NETWORK_PROVIDER_H_ | 5 #ifndef CONTENT_CHILD_SERVICE_WORKER_SERVICE_WORKER_NETWORK_PROVIDER_H_ |
6 #define CONTENT_CHILD_SERVICE_WORKER_SERVICE_WORKER_NETWORK_PROVIDER_H_ | 6 #define CONTENT_CHILD_SERVICE_WORKER_SERVICE_WORKER_NETWORK_PROVIDER_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 // running service worker script. The version_id indicates which | 71 // running service worker script. The version_id indicates which |
72 // ServiceWorkerVersion should be used. | 72 // ServiceWorkerVersion should be used. |
73 void SetServiceWorkerVersionId(int64_t version_id, int embedded_worker_id); | 73 void SetServiceWorkerVersionId(int64_t version_id, int embedded_worker_id); |
74 | 74 |
75 bool IsControlledByServiceWorker() const; | 75 bool IsControlledByServiceWorker() const; |
76 | 76 |
77 private: | 77 private: |
78 const int provider_id_; | 78 const int provider_id_; |
79 scoped_refptr<ServiceWorkerProviderContext> context_; | 79 scoped_refptr<ServiceWorkerProviderContext> context_; |
80 mojom::ServiceWorkerDispatcherHostAssociatedPtr dispatcher_host_; | 80 mojom::ServiceWorkerDispatcherHostAssociatedPtr dispatcher_host_; |
| 81 mojom::ServiceWorkerProviderHostAssociatedPtr provider_host_; |
81 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerNetworkProvider); | 82 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerNetworkProvider); |
82 }; | 83 }; |
83 | 84 |
84 } // namespace content | 85 } // namespace content |
85 | 86 |
86 #endif // CONTENT_CHILD_SERVICE_WORKER_SERVICE_WORKER_NETWORK_PROVIDER_H_ | 87 #endif // CONTENT_CHILD_SERVICE_WORKER_SERVICE_WORKER_NETWORK_PROVIDER_H_ |
OLD | NEW |