| 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 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 134 void didHandleInstallEvent( | 134 void didHandleInstallEvent( |
| 135 int request_id, | 135 int request_id, |
| 136 blink::WebServiceWorkerEventResult result) override; | 136 blink::WebServiceWorkerEventResult result) override; |
| 137 void didHandleFetchEvent(int request_id) override; | 137 void didHandleFetchEvent(int request_id) override; |
| 138 void didHandleFetchEvent( | 138 void didHandleFetchEvent( |
| 139 int request_id, | 139 int request_id, |
| 140 const blink::WebServiceWorkerResponse& response) override; | 140 const blink::WebServiceWorkerResponse& response) override; |
| 141 void didHandleNotificationClickEvent( | 141 void didHandleNotificationClickEvent( |
| 142 int request_id, | 142 int request_id, |
| 143 blink::WebServiceWorkerEventResult result) override; | 143 blink::WebServiceWorkerEventResult result) override; |
| 144 void didHandleNotificationCloseEvent( |
| 145 int request_id, |
| 146 blink::WebServiceWorkerEventResult result) override; |
| 144 void didHandlePushEvent(int request_id, | 147 void didHandlePushEvent(int request_id, |
| 145 blink::WebServiceWorkerEventResult result) override; | 148 blink::WebServiceWorkerEventResult result) override; |
| 146 void didHandleSyncEvent(int request_id, | 149 void didHandleSyncEvent(int request_id, |
| 147 blink::WebServiceWorkerEventResult result) override; | 150 blink::WebServiceWorkerEventResult result) override; |
| 148 | 151 |
| 149 // Called on the main thread. | 152 // Called on the main thread. |
| 150 blink::WebServiceWorkerNetworkProvider* createServiceWorkerNetworkProvider( | 153 blink::WebServiceWorkerNetworkProvider* createServiceWorkerNetworkProvider( |
| 151 blink::WebDataSource* data_source) override; | 154 blink::WebDataSource* data_source) override; |
| 152 blink::WebServiceWorkerProvider* createServiceWorkerProvider() override; | 155 blink::WebServiceWorkerProvider* createServiceWorkerProvider() override; |
| 153 | 156 |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 195 const std::vector<TransferredMessagePort>& sent_message_ports, | 198 const std::vector<TransferredMessagePort>& sent_message_ports, |
| 196 const std::vector<int>& new_routing_ids); | 199 const std::vector<int>& new_routing_ids); |
| 197 void OnInstallEvent(int request_id); | 200 void OnInstallEvent(int request_id); |
| 198 void OnFetchEvent(int request_id, const ServiceWorkerFetchRequest& request); | 201 void OnFetchEvent(int request_id, const ServiceWorkerFetchRequest& request); |
| 199 void OnNotificationClickEvent( | 202 void OnNotificationClickEvent( |
| 200 int request_id, | 203 int request_id, |
| 201 int64_t persistent_notification_id, | 204 int64_t persistent_notification_id, |
| 202 const PlatformNotificationData& notification_data, | 205 const PlatformNotificationData& notification_data, |
| 203 int action_index); | 206 int action_index); |
| 204 void OnPushEvent(int request_id, const PushEventPayload& payload); | 207 void OnPushEvent(int request_id, const PushEventPayload& payload); |
| 208 void OnNotificationCloseEvent( |
| 209 int request_id, |
| 210 int64_t persistent_notification_id, |
| 211 const PlatformNotificationData& notification_data); |
| 205 void OnGeofencingEvent(int request_id, | 212 void OnGeofencingEvent(int request_id, |
| 206 blink::WebGeofencingEventType event_type, | 213 blink::WebGeofencingEventType event_type, |
| 207 const std::string& region_id, | 214 const std::string& region_id, |
| 208 const blink::WebCircularGeofencingRegion& region); | 215 const blink::WebCircularGeofencingRegion& region); |
| 209 | 216 |
| 210 // TODO(nhiroki): Remove this after ExtendableMessageEvent is enabled by | 217 // TODO(nhiroki): Remove this after ExtendableMessageEvent is enabled by |
| 211 // default (crbug.com/543198). | 218 // default (crbug.com/543198). |
| 212 void OnPostMessage( | 219 void OnPostMessage( |
| 213 const base::string16& message, | 220 const base::string16& message, |
| 214 const std::vector<TransferredMessagePort>& sent_message_ports, | 221 const std::vector<TransferredMessagePort>& sent_message_ports, |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 255 // Initialized on the worker thread in workerContextStarted and | 262 // Initialized on the worker thread in workerContextStarted and |
| 256 // destructed on the worker thread in willDestroyWorkerContext. | 263 // destructed on the worker thread in willDestroyWorkerContext. |
| 257 scoped_ptr<WorkerContextData> context_; | 264 scoped_ptr<WorkerContextData> context_; |
| 258 | 265 |
| 259 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerContextClient); | 266 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerContextClient); |
| 260 }; | 267 }; |
| 261 | 268 |
| 262 } // namespace content | 269 } // namespace content |
| 263 | 270 |
| 264 #endif // CONTENT_RENDERER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_CLIENT_H_ | 271 #endif // CONTENT_RENDERER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_CLIENT_H_ |
| OLD | NEW |