| 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 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 139 void didHandleActivateEvent(int request_id, | 139 void didHandleActivateEvent(int request_id, |
| 140 blink::WebServiceWorkerEventResult, | 140 blink::WebServiceWorkerEventResult, |
| 141 double dispatch_event_time) override; | 141 double dispatch_event_time) override; |
| 142 void didHandleExtendableMessageEvent( | 142 void didHandleExtendableMessageEvent( |
| 143 int request_id, | 143 int request_id, |
| 144 blink::WebServiceWorkerEventResult result, | 144 blink::WebServiceWorkerEventResult result, |
| 145 double dispatch_event_time) override; | 145 double dispatch_event_time) override; |
| 146 void didHandleInstallEvent(int request_id, | 146 void didHandleInstallEvent(int request_id, |
| 147 blink::WebServiceWorkerEventResult result, | 147 blink::WebServiceWorkerEventResult result, |
| 148 double event_dispatch_time) override; | 148 double event_dispatch_time) override; |
| 149 void respondToFetchEvent(int response_id, | 149 void respondToFetchEvent(int fetch_event_id, |
| 150 double event_dispatch_time) override; | 150 double event_dispatch_time) override; |
| 151 void respondToFetchEvent(int response_id, | 151 void respondToFetchEvent(int fetch_event_id, |
| 152 const blink::WebServiceWorkerResponse& response, | 152 const blink::WebServiceWorkerResponse& response, |
| 153 double event_dispatch_time) override; | 153 double event_dispatch_time) override; |
| 154 void didHandleFetchEvent(int event_finish_id, | 154 void didHandleFetchEvent(int fetch_event_id, |
| 155 blink::WebServiceWorkerEventResult result, | 155 blink::WebServiceWorkerEventResult result, |
| 156 double dispatch_event_time) override; | 156 double dispatch_event_time) override; |
| 157 void didHandleNotificationClickEvent( | 157 void didHandleNotificationClickEvent( |
| 158 int request_id, | 158 int request_id, |
| 159 blink::WebServiceWorkerEventResult result, | 159 blink::WebServiceWorkerEventResult result, |
| 160 double dispatch_event_time) override; | 160 double dispatch_event_time) override; |
| 161 void didHandleNotificationCloseEvent( | 161 void didHandleNotificationCloseEvent( |
| 162 int request_id, | 162 int request_id, |
| 163 blink::WebServiceWorkerEventResult result, | 163 blink::WebServiceWorkerEventResult result, |
| 164 double dispatch_event_time) override; | 164 double dispatch_event_time) override; |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 211 void SendWorkerStarted(); | 211 void SendWorkerStarted(); |
| 212 void SetRegistrationInServiceWorkerGlobalScope( | 212 void SetRegistrationInServiceWorkerGlobalScope( |
| 213 const ServiceWorkerRegistrationObjectInfo& info, | 213 const ServiceWorkerRegistrationObjectInfo& info, |
| 214 const ServiceWorkerVersionAttributes& attrs); | 214 const ServiceWorkerVersionAttributes& attrs); |
| 215 | 215 |
| 216 void OnActivateEvent(int request_id); | 216 void OnActivateEvent(int request_id); |
| 217 void OnExtendableMessageEvent( | 217 void OnExtendableMessageEvent( |
| 218 int request_id, | 218 int request_id, |
| 219 const ServiceWorkerMsg_ExtendableMessageEvent_Params& params); | 219 const ServiceWorkerMsg_ExtendableMessageEvent_Params& params); |
| 220 void OnInstallEvent(int request_id); | 220 void OnInstallEvent(int request_id); |
| 221 void DispatchFetchEvent(int response_id, | 221 void DispatchFetchEvent(int fetch_event_id, |
| 222 const ServiceWorkerFetchRequest& request, | 222 const ServiceWorkerFetchRequest& request, |
| 223 const FetchCallback& callback); | 223 const FetchCallback& callback); |
| 224 void OnNotificationClickEvent( | 224 void OnNotificationClickEvent( |
| 225 int request_id, | 225 int request_id, |
| 226 const std::string& notification_id, | 226 const std::string& notification_id, |
| 227 const PlatformNotificationData& notification_data, | 227 const PlatformNotificationData& notification_data, |
| 228 int action_index); | 228 int action_index); |
| 229 void OnPushEvent(int request_id, const PushEventPayload& payload); | 229 void OnPushEvent(int request_id, const PushEventPayload& payload); |
| 230 void OnNotificationCloseEvent( | 230 void OnNotificationCloseEvent( |
| 231 int request_id, | 231 int request_id, |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 272 // Initialized on the worker thread in workerContextStarted and | 272 // Initialized on the worker thread in workerContextStarted and |
| 273 // destructed on the worker thread in willDestroyWorkerContext. | 273 // destructed on the worker thread in willDestroyWorkerContext. |
| 274 std::unique_ptr<WorkerContextData> context_; | 274 std::unique_ptr<WorkerContextData> context_; |
| 275 | 275 |
| 276 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerContextClient); | 276 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerContextClient); |
| 277 }; | 277 }; |
| 278 | 278 |
| 279 } // namespace content | 279 } // namespace content |
| 280 | 280 |
| 281 #endif // CONTENT_RENDERER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_CLIENT_H_ | 281 #endif // CONTENT_RENDERER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_CLIENT_H_ |
| OLD | NEW |