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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 bool is_parent_frame_secure); | 63 bool is_parent_frame_secure); |
64 explicit ServiceWorkerNetworkProvider( | 64 explicit ServiceWorkerNetworkProvider( |
65 mojom::ServiceWorkerProviderClientInfoPtr info); | 65 mojom::ServiceWorkerProviderClientInfoPtr info); |
66 | 66 |
67 ServiceWorkerNetworkProvider(); | 67 ServiceWorkerNetworkProvider(); |
68 ~ServiceWorkerNetworkProvider(); | 68 ~ServiceWorkerNetworkProvider(); |
69 | 69 |
70 int provider_id() const { return provider_id_; } | 70 int provider_id() const { return provider_id_; } |
71 ServiceWorkerProviderContext* context() const { return context_.get(); } | 71 ServiceWorkerProviderContext* context() const { return context_.get(); } |
72 | 72 |
| 73 mojom::URLLoaderFactory* script_loader_factory() { |
| 74 return script_loader_factory_.get(); |
| 75 } |
| 76 |
73 bool IsControlledByServiceWorker() const; | 77 bool IsControlledByServiceWorker() const; |
74 | 78 |
75 private: | 79 private: |
76 const int provider_id_; | 80 const int provider_id_; |
77 scoped_refptr<ServiceWorkerProviderContext> context_; | 81 scoped_refptr<ServiceWorkerProviderContext> context_; |
78 mojom::ServiceWorkerDispatcherHostAssociatedPtr dispatcher_host_; | 82 mojom::ServiceWorkerDispatcherHostAssociatedPtr dispatcher_host_; |
79 mojom::ServiceWorkerProviderHostAssociatedPtr provider_host_; | 83 mojom::ServiceWorkerProviderHostAssociatedPtr provider_host_; |
| 84 mojom::URLLoaderFactoryAssociatedPtr script_loader_factory_; |
| 85 |
80 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerNetworkProvider); | 86 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerNetworkProvider); |
81 }; | 87 }; |
82 | 88 |
83 } // namespace content | 89 } // namespace content |
84 | 90 |
85 #endif // CONTENT_CHILD_SERVICE_WORKER_SERVICE_WORKER_NETWORK_PROVIDER_H_ | 91 #endif // CONTENT_CHILD_SERVICE_WORKER_SERVICE_WORKER_NETWORK_PROVIDER_H_ |
OLD | NEW |