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> |
11 | 11 |
12 #include "base/compiler_specific.h" | 12 #include "base/compiler_specific.h" |
13 #include "base/macros.h" | 13 #include "base/macros.h" |
14 #include "base/memory/ref_counted.h" | 14 #include "base/memory/ref_counted.h" |
15 #include "base/supports_user_data.h" | 15 #include "base/supports_user_data.h" |
16 #include "content/common/content_export.h" | 16 #include "content/common/content_export.h" |
17 #include "content/common/service_worker/service_worker.mojom.h" | 17 #include "content/common/service_worker/service_worker.mojom.h" |
18 #include "content/common/service_worker/service_worker_types.h" | 18 #include "content/common/service_worker/service_worker_types.h" |
19 | 19 |
20 namespace blink { | 20 namespace blink { |
21 class WebDataSource; | |
22 class WebLocalFrame; | 21 class WebLocalFrame; |
23 } // namespace blink | 22 } // namespace blink |
24 | 23 |
25 namespace content { | 24 namespace content { |
26 | 25 |
27 class ServiceWorkerProviderContext; | 26 class ServiceWorkerProviderContext; |
28 struct RequestNavigationParams; | 27 struct RequestNavigationParams; |
29 | 28 |
30 // A unique provider_id is generated for each instance. | 29 // A unique provider_id is generated for each instance. |
31 // Instantiated prior to the main resource load being started and remains | 30 // Instantiated prior to the main resource load being started and remains |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
79 private: | 78 private: |
80 const int provider_id_; | 79 const int provider_id_; |
81 scoped_refptr<ServiceWorkerProviderContext> context_; | 80 scoped_refptr<ServiceWorkerProviderContext> context_; |
82 mojom::ServiceWorkerDispatcherHostAssociatedPtr dispatcher_host_; | 81 mojom::ServiceWorkerDispatcherHostAssociatedPtr dispatcher_host_; |
83 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerNetworkProvider); | 82 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerNetworkProvider); |
84 }; | 83 }; |
85 | 84 |
86 } // namespace content | 85 } // namespace content |
87 | 86 |
88 #endif // CONTENT_CHILD_SERVICE_WORKER_SERVICE_WORKER_NETWORK_PROVIDER_H_ | 87 #endif // CONTENT_CHILD_SERVICE_WORKER_SERVICE_WORKER_NETWORK_PROVIDER_H_ |
OLD | NEW |