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_CONTEXT_CLIENT_H_ | 5 #ifndef CONTENT_RENDERER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_CLIENT_H_ |
6 #define CONTENT_RENDERER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_CLIENT_H_ | 6 #define CONTENT_RENDERER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_CLIENT_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
165 void Send(IPC::Message* message); | 165 void Send(IPC::Message* message); |
166 void SendWorkerStarted(); | 166 void SendWorkerStarted(); |
167 void SetRegistrationInServiceWorkerGlobalScope(); | 167 void SetRegistrationInServiceWorkerGlobalScope(); |
168 | 168 |
169 void OnActivateEvent(int request_id); | 169 void OnActivateEvent(int request_id); |
170 void OnInstallEvent(int request_id); | 170 void OnInstallEvent(int request_id); |
171 void OnFetchEvent(int request_id, const ServiceWorkerFetchRequest& request); | 171 void OnFetchEvent(int request_id, const ServiceWorkerFetchRequest& request); |
172 void OnNotificationClickEvent( | 172 void OnNotificationClickEvent( |
173 int request_id, | 173 int request_id, |
174 int64_t persistent_notification_id, | 174 int64_t persistent_notification_id, |
175 const PlatformNotificationData& notification_data); | 175 const PlatformNotificationData& notification_data, |
| 176 int action_index); |
176 void OnPushEvent(int request_id, const std::string& data); | 177 void OnPushEvent(int request_id, const std::string& data); |
177 void OnGeofencingEvent(int request_id, | 178 void OnGeofencingEvent(int request_id, |
178 blink::WebGeofencingEventType event_type, | 179 blink::WebGeofencingEventType event_type, |
179 const std::string& region_id, | 180 const std::string& region_id, |
180 const blink::WebCircularGeofencingRegion& region); | 181 const blink::WebCircularGeofencingRegion& region); |
181 void OnPostMessage( | 182 void OnPostMessage( |
182 const base::string16& message, | 183 const base::string16& message, |
183 const std::vector<TransferredMessagePort>& sent_message_ports, | 184 const std::vector<TransferredMessagePort>& sent_message_ports, |
184 const std::vector<int>& new_routing_ids); | 185 const std::vector<int>& new_routing_ids); |
185 void OnCrossOriginMessageToWorker( | 186 void OnCrossOriginMessageToWorker( |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
228 // Initialized on the worker thread in workerContextStarted and | 229 // Initialized on the worker thread in workerContextStarted and |
229 // destructed on the worker thread in willDestroyWorkerContext. | 230 // destructed on the worker thread in willDestroyWorkerContext. |
230 scoped_ptr<WorkerContextData> context_; | 231 scoped_ptr<WorkerContextData> context_; |
231 | 232 |
232 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerContextClient); | 233 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerContextClient); |
233 }; | 234 }; |
234 | 235 |
235 } // namespace content | 236 } // namespace content |
236 | 237 |
237 #endif // CONTENT_RENDERER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_CLIENT_H_ | 238 #endif // CONTENT_RENDERER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_CLIENT_H_ |
OLD | NEW |