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 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
108 ClientCallbacksMap; | 108 ClientCallbacksMap; |
109 typedef IDMap<blink::WebServiceWorkerSkipWaitingCallbacks, IDMapOwnPointer> | 109 typedef IDMap<blink::WebServiceWorkerSkipWaitingCallbacks, IDMapOwnPointer> |
110 SkipWaitingCallbacksMap; | 110 SkipWaitingCallbacksMap; |
111 | 111 |
112 void OnActivateEvent(int request_id); | 112 void OnActivateEvent(int request_id); |
113 void OnInstallEvent(int request_id); | 113 void OnInstallEvent(int request_id); |
114 void OnFetchEvent(int request_id, const ServiceWorkerFetchRequest& request); | 114 void OnFetchEvent(int request_id, const ServiceWorkerFetchRequest& request); |
115 void OnSyncEvent(int request_id); | 115 void OnSyncEvent(int request_id); |
116 void OnNotificationClickEvent( | 116 void OnNotificationClickEvent( |
117 int request_id, | 117 int request_id, |
118 const std::string& notification_id, | 118 int64_t persistent_notification_id, |
119 const PlatformNotificationData& notification_data); | 119 const PlatformNotificationData& notification_data); |
120 void OnPushEvent(int request_id, const std::string& data); | 120 void OnPushEvent(int request_id, const std::string& data); |
121 void OnGeofencingEvent(int request_id, | 121 void OnGeofencingEvent(int request_id, |
122 blink::WebGeofencingEventType event_type, | 122 blink::WebGeofencingEventType event_type, |
123 const std::string& region_id, | 123 const std::string& region_id, |
124 const blink::WebCircularGeofencingRegion& region); | 124 const blink::WebCircularGeofencingRegion& region); |
125 void OnCrossOriginConnectEvent(int request_id, | 125 void OnCrossOriginConnectEvent(int request_id, |
126 const NavigatorConnectClient& client); | 126 const NavigatorConnectClient& client); |
127 void OnPostMessage( | 127 void OnPostMessage( |
128 const base::string16& message, | 128 const base::string16& message, |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
176 std::map<int, base::TimeTicks> install_start_timings_; | 176 std::map<int, base::TimeTicks> install_start_timings_; |
177 std::map<int, base::TimeTicks> notification_click_start_timings_; | 177 std::map<int, base::TimeTicks> notification_click_start_timings_; |
178 std::map<int, base::TimeTicks> push_start_timings_; | 178 std::map<int, base::TimeTicks> push_start_timings_; |
179 | 179 |
180 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerScriptContext); | 180 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerScriptContext); |
181 }; | 181 }; |
182 | 182 |
183 } // namespace content | 183 } // namespace content |
184 | 184 |
185 #endif // CONTENT_RENDERER_SERVICE_WORKER_SERVICE_WORKER_SCRIPT_CONTEXT_H_ | 185 #endif // CONTENT_RENDERER_SERVICE_WORKER_SERVICE_WORKER_SCRIPT_CONTEXT_H_ |
OLD | NEW |