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_RENDERER_SERVICE_WORKER_SERVICE_WORKER_SCRIPT_CONTEXT_H_ | 5 #ifndef CONTENT_RENDERER_SERVICE_WORKER_SERVICE_WORKER_SCRIPT_CONTEXT_H_ |
6 #define CONTENT_RENDERER_SERVICE_WORKER_SERVICE_WORKER_SCRIPT_CONTEXT_H_ | 6 #define CONTENT_RENDERER_SERVICE_WORKER_SERVICE_WORKER_SCRIPT_CONTEXT_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 18 matching lines...) Expand all Loading... |
29 struct WebCrossOriginServiceWorkerClient; | 29 struct WebCrossOriginServiceWorkerClient; |
30 class WebServiceWorkerContextProxy; | 30 class WebServiceWorkerContextProxy; |
31 } | 31 } |
32 | 32 |
33 namespace IPC { | 33 namespace IPC { |
34 class Message; | 34 class Message; |
35 } | 35 } |
36 | 36 |
37 namespace content { | 37 namespace content { |
38 | 38 |
| 39 class EmbeddedWorkerContextClient; |
| 40 class ServiceWorkerClientInfo; |
39 struct CrossOriginServiceWorkerClient; | 41 struct CrossOriginServiceWorkerClient; |
40 class EmbeddedWorkerContextClient; | |
41 struct PlatformNotificationData; | 42 struct PlatformNotificationData; |
42 | 43 |
43 // TODO(kinuko): This should implement WebServiceWorkerContextClient | 44 // TODO(kinuko): This should implement WebServiceWorkerContextClient |
44 // rather than having EmbeddedWorkerContextClient implement it. | 45 // rather than having EmbeddedWorkerContextClient implement it. |
45 // See the header comment in embedded_worker_context_client.h for the | 46 // See the header comment in embedded_worker_context_client.h for the |
46 // potential EW/SW layering concerns. | 47 // potential EW/SW layering concerns. |
47 class ServiceWorkerScriptContext { | 48 class ServiceWorkerScriptContext { |
48 public: | 49 public: |
49 ServiceWorkerScriptContext( | 50 ServiceWorkerScriptContext( |
50 EmbeddedWorkerContextClient* embedded_context, | 51 EmbeddedWorkerContextClient* embedded_context, |
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
156 std::map<int, base::TimeTicks> install_start_timings_; | 157 std::map<int, base::TimeTicks> install_start_timings_; |
157 std::map<int, base::TimeTicks> notification_click_start_timings_; | 158 std::map<int, base::TimeTicks> notification_click_start_timings_; |
158 std::map<int, base::TimeTicks> push_start_timings_; | 159 std::map<int, base::TimeTicks> push_start_timings_; |
159 | 160 |
160 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerScriptContext); | 161 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerScriptContext); |
161 }; | 162 }; |
162 | 163 |
163 } // namespace content | 164 } // namespace content |
164 | 165 |
165 #endif // CONTENT_RENDERER_SERVICE_WORKER_SERVICE_WORKER_SCRIPT_CONTEXT_H_ | 166 #endif // CONTENT_RENDERER_SERVICE_WORKER_SERVICE_WORKER_SCRIPT_CONTEXT_H_ |
OLD | NEW |