| 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 <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 206 void OnPushEvent(int request_id, const PushEventPayload& payload); | 206 void OnPushEvent(int request_id, const PushEventPayload& payload); |
| 207 void OnNotificationCloseEvent( | 207 void OnNotificationCloseEvent( |
| 208 int request_id, | 208 int request_id, |
| 209 int64_t persistent_notification_id, | 209 int64_t persistent_notification_id, |
| 210 const PlatformNotificationData& notification_data); | 210 const PlatformNotificationData& notification_data); |
| 211 void OnGeofencingEvent(int request_id, | 211 void OnGeofencingEvent(int request_id, |
| 212 blink::WebGeofencingEventType event_type, | 212 blink::WebGeofencingEventType event_type, |
| 213 const std::string& region_id, | 213 const std::string& region_id, |
| 214 const blink::WebCircularGeofencingRegion& region); | 214 const blink::WebCircularGeofencingRegion& region); |
| 215 | 215 |
| 216 // TODO(nhiroki): Remove this after ExtendableMessageEvent is enabled by | |
| 217 // default (crbug.com/543198). | |
| 218 void OnPostMessage( | |
| 219 const base::string16& message, | |
| 220 const std::vector<TransferredMessagePort>& sent_message_ports, | |
| 221 const std::vector<int>& new_routing_ids); | |
| 222 | |
| 223 void OnDidGetClient(int request_id, const ServiceWorkerClientInfo& client); | 216 void OnDidGetClient(int request_id, const ServiceWorkerClientInfo& client); |
| 224 void OnDidGetClients( | 217 void OnDidGetClients( |
| 225 int request_id, const std::vector<ServiceWorkerClientInfo>& clients); | 218 int request_id, const std::vector<ServiceWorkerClientInfo>& clients); |
| 226 void OnOpenWindowResponse(int request_id, | 219 void OnOpenWindowResponse(int request_id, |
| 227 const ServiceWorkerClientInfo& client); | 220 const ServiceWorkerClientInfo& client); |
| 228 void OnOpenWindowError(int request_id, const std::string& message); | 221 void OnOpenWindowError(int request_id, const std::string& message); |
| 229 void OnFocusClientResponse(int request_id, | 222 void OnFocusClientResponse(int request_id, |
| 230 const ServiceWorkerClientInfo& client); | 223 const ServiceWorkerClientInfo& client); |
| 231 void OnNavigateClientResponse(int request_id, | 224 void OnNavigateClientResponse(int request_id, |
| 232 const ServiceWorkerClientInfo& client); | 225 const ServiceWorkerClientInfo& client); |
| (...skipping 24 matching lines...) Expand all Loading... |
| 257 // Initialized on the worker thread in workerContextStarted and | 250 // Initialized on the worker thread in workerContextStarted and |
| 258 // destructed on the worker thread in willDestroyWorkerContext. | 251 // destructed on the worker thread in willDestroyWorkerContext. |
| 259 std::unique_ptr<WorkerContextData> context_; | 252 std::unique_ptr<WorkerContextData> context_; |
| 260 | 253 |
| 261 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerContextClient); | 254 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerContextClient); |
| 262 }; | 255 }; |
| 263 | 256 |
| 264 } // namespace content | 257 } // namespace content |
| 265 | 258 |
| 266 #endif // CONTENT_RENDERER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_CLIENT_H_ | 259 #endif // CONTENT_RENDERER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_CLIENT_H_ |
| OLD | NEW |