Chromium Code Reviews| 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 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 127 const blink::WebString& message, | 127 const blink::WebString& message, |
| 128 const blink::WebString& state) override; | 128 const blink::WebString& state) override; |
| 129 void didHandleActivateEvent(int request_id, | 129 void didHandleActivateEvent(int request_id, |
| 130 blink::WebServiceWorkerEventResult) override; | 130 blink::WebServiceWorkerEventResult) override; |
| 131 void didHandleExtendableMessageEvent( | 131 void didHandleExtendableMessageEvent( |
| 132 int request_id, | 132 int request_id, |
| 133 blink::WebServiceWorkerEventResult result) override; | 133 blink::WebServiceWorkerEventResult result) override; |
| 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 respondFetchEvent(int request_id) override; |
| 138 void didHandleFetchEvent( | 138 void respondFetchEvent( |
|
falken
2016/06/06 10:01:40
This seems grammatically incorrect. respondToFetch
shimazu
2016/06/09 05:44:21
Done.
| |
| 139 int request_id, | 139 int request_id, |
| 140 const blink::WebServiceWorkerResponse& response) override; | 140 const blink::WebServiceWorkerResponse& response) override; |
| 141 void didHandleFetchEvent(int request_id, | |
| 142 blink::WebServiceWorkerEventResult result) override; | |
| 141 void didHandleNotificationClickEvent( | 143 void didHandleNotificationClickEvent( |
| 142 int request_id, | 144 int request_id, |
| 143 blink::WebServiceWorkerEventResult result) override; | 145 blink::WebServiceWorkerEventResult result) override; |
| 144 void didHandleNotificationCloseEvent( | 146 void didHandleNotificationCloseEvent( |
| 145 int request_id, | 147 int request_id, |
| 146 blink::WebServiceWorkerEventResult result) override; | 148 blink::WebServiceWorkerEventResult result) override; |
| 147 void didHandlePushEvent(int request_id, | 149 void didHandlePushEvent(int request_id, |
| 148 blink::WebServiceWorkerEventResult result) override; | 150 blink::WebServiceWorkerEventResult result) override; |
| 149 void didHandleSyncEvent(int request_id, | 151 void didHandleSyncEvent(int request_id, |
| 150 blink::WebServiceWorkerEventResult result) override; | 152 blink::WebServiceWorkerEventResult result) override; |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 190 void SendWorkerStarted(); | 192 void SendWorkerStarted(); |
| 191 void SetRegistrationInServiceWorkerGlobalScope( | 193 void SetRegistrationInServiceWorkerGlobalScope( |
| 192 const ServiceWorkerRegistrationObjectInfo& info, | 194 const ServiceWorkerRegistrationObjectInfo& info, |
| 193 const ServiceWorkerVersionAttributes& attrs); | 195 const ServiceWorkerVersionAttributes& attrs); |
| 194 | 196 |
| 195 void OnActivateEvent(int request_id); | 197 void OnActivateEvent(int request_id); |
| 196 void OnExtendableMessageEvent( | 198 void OnExtendableMessageEvent( |
| 197 int request_id, | 199 int request_id, |
| 198 const ServiceWorkerMsg_ExtendableMessageEvent_Params& params); | 200 const ServiceWorkerMsg_ExtendableMessageEvent_Params& params); |
| 199 void OnInstallEvent(int request_id); | 201 void OnInstallEvent(int request_id); |
| 200 void OnFetchEvent(int request_id, const ServiceWorkerFetchRequest& request); | 202 void OnFetchEvent(int reseponse_request_id, |
| 203 int event_request_id, | |
| 204 const ServiceWorkerFetchRequest& request); | |
| 201 void OnNotificationClickEvent( | 205 void OnNotificationClickEvent( |
| 202 int request_id, | 206 int request_id, |
| 203 int64_t persistent_notification_id, | 207 int64_t persistent_notification_id, |
| 204 const PlatformNotificationData& notification_data, | 208 const PlatformNotificationData& notification_data, |
| 205 int action_index); | 209 int action_index); |
| 206 void OnPushEvent(int request_id, const PushEventPayload& payload); | 210 void OnPushEvent(int request_id, const PushEventPayload& payload); |
| 207 void OnNotificationCloseEvent( | 211 void OnNotificationCloseEvent( |
| 208 int request_id, | 212 int request_id, |
| 209 int64_t persistent_notification_id, | 213 int64_t persistent_notification_id, |
| 210 const PlatformNotificationData& notification_data); | 214 const PlatformNotificationData& notification_data); |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 246 // Initialized on the worker thread in workerContextStarted and | 250 // Initialized on the worker thread in workerContextStarted and |
| 247 // destructed on the worker thread in willDestroyWorkerContext. | 251 // destructed on the worker thread in willDestroyWorkerContext. |
| 248 std::unique_ptr<WorkerContextData> context_; | 252 std::unique_ptr<WorkerContextData> context_; |
| 249 | 253 |
| 250 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerContextClient); | 254 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerContextClient); |
| 251 }; | 255 }; |
| 252 | 256 |
| 253 } // namespace content | 257 } // namespace content |
| 254 | 258 |
| 255 #endif // CONTENT_RENDERER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_CLIENT_H_ | 259 #endif // CONTENT_RENDERER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_CLIENT_H_ |
| OLD | NEW |