| 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 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 153 double dispatch_event_time) override; | 153 double dispatch_event_time) override; |
| 154 void didHandleExtendableMessageEvent( | 154 void didHandleExtendableMessageEvent( |
| 155 int request_id, | 155 int request_id, |
| 156 blink::WebServiceWorkerEventResult result, | 156 blink::WebServiceWorkerEventResult result, |
| 157 double dispatch_event_time) override; | 157 double dispatch_event_time) override; |
| 158 void didHandleInstallEvent(int request_id, | 158 void didHandleInstallEvent(int request_id, |
| 159 blink::WebServiceWorkerEventResult result, | 159 blink::WebServiceWorkerEventResult result, |
| 160 double event_dispatch_time) override; | 160 double event_dispatch_time) override; |
| 161 void respondToFetchEvent(int fetch_event_id, | 161 void respondToFetchEvent(int fetch_event_id, |
| 162 double event_dispatch_time) override; | 162 double event_dispatch_time) override; |
| 163 void respondToFetchEvent(int fetch_event_id, | 163 void respondToFetchEventWithResponse( |
| 164 const blink::WebServiceWorkerResponse& response, | 164 int fetch_event_id, |
| 165 double event_dispatch_time) override; | 165 const blink::WebServiceWorkerResponse& response, |
| 166 double event_dispatch_time) override; |
| 167 void respondToFetchEventWithResponseStream( |
| 168 int fetch_event_id, |
| 169 const blink::WebServiceWorkerResponse& response, |
| 170 mojo::ScopedDataPipeConsumerHandle data_stream, |
| 171 double event_dispatch_time) override; |
| 166 void didHandleFetchEvent(int fetch_event_id, | 172 void didHandleFetchEvent(int fetch_event_id, |
| 167 blink::WebServiceWorkerEventResult result, | 173 blink::WebServiceWorkerEventResult result, |
| 168 double dispatch_event_time) override; | 174 double dispatch_event_time) override; |
| 169 void didHandleNotificationClickEvent( | 175 void didHandleNotificationClickEvent( |
| 170 int request_id, | 176 int request_id, |
| 171 blink::WebServiceWorkerEventResult result, | 177 blink::WebServiceWorkerEventResult result, |
| 172 double dispatch_event_time) override; | 178 double dispatch_event_time) override; |
| 173 void didHandleNotificationCloseEvent( | 179 void didHandleNotificationCloseEvent( |
| 174 int request_id, | 180 int request_id, |
| 175 blink::WebServiceWorkerEventResult result, | 181 blink::WebServiceWorkerEventResult result, |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 240 const std::string& tag, | 246 const std::string& tag, |
| 241 const std::vector<BackgroundFetchSettledFetch>& fetches, | 247 const std::vector<BackgroundFetchSettledFetch>& fetches, |
| 242 const DispatchBackgroundFetchFailEventCallback& callback) override; | 248 const DispatchBackgroundFetchFailEventCallback& callback) override; |
| 243 void DispatchBackgroundFetchedEvent( | 249 void DispatchBackgroundFetchedEvent( |
| 244 const std::string& tag, | 250 const std::string& tag, |
| 245 const std::vector<BackgroundFetchSettledFetch>& fetches, | 251 const std::vector<BackgroundFetchSettledFetch>& fetches, |
| 246 const DispatchBackgroundFetchedEventCallback& callback) override; | 252 const DispatchBackgroundFetchedEventCallback& callback) override; |
| 247 void DispatchExtendableMessageEvent( | 253 void DispatchExtendableMessageEvent( |
| 248 mojom::ExtendableMessageEventPtr event, | 254 mojom::ExtendableMessageEventPtr event, |
| 249 const DispatchExtendableMessageEventCallback& callback) override; | 255 const DispatchExtendableMessageEventCallback& callback) override; |
| 250 void DispatchFetchEvent(int fetch_event_id, | 256 void DispatchFetchEvent( |
| 251 const ServiceWorkerFetchRequest& request, | 257 int fetch_event_id, |
| 252 mojom::FetchEventPreloadHandlePtr preload_handle, | 258 const ServiceWorkerFetchRequest& request, |
| 253 const DispatchFetchEventCallback& callback) override; | 259 mojom::FetchEventPreloadHandlePtr preload_handle, |
| 260 mojom::ServiceWorkerFetchResponseReceiverPtr response_receiver, |
| 261 const DispatchFetchEventCallback& callback) override; |
| 254 void DispatchNotificationClickEvent( | 262 void DispatchNotificationClickEvent( |
| 255 const std::string& notification_id, | 263 const std::string& notification_id, |
| 256 const PlatformNotificationData& notification_data, | 264 const PlatformNotificationData& notification_data, |
| 257 int action_index, | 265 int action_index, |
| 258 const base::Optional<base::string16>& reply, | 266 const base::Optional<base::string16>& reply, |
| 259 const DispatchNotificationClickEventCallback& callback) override; | 267 const DispatchNotificationClickEventCallback& callback) override; |
| 260 void DispatchNotificationCloseEvent( | 268 void DispatchNotificationCloseEvent( |
| 261 const std::string& notification_id, | 269 const std::string& notification_id, |
| 262 const PlatformNotificationData& notification_data, | 270 const PlatformNotificationData& notification_data, |
| 263 const DispatchNotificationCloseEventCallback& callback) override; | 271 const DispatchNotificationCloseEventCallback& callback) override; |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 343 // Initialized on the worker thread in workerContextStarted and | 351 // Initialized on the worker thread in workerContextStarted and |
| 344 // destructed on the worker thread in willDestroyWorkerContext. | 352 // destructed on the worker thread in willDestroyWorkerContext. |
| 345 std::unique_ptr<WorkerContextData> context_; | 353 std::unique_ptr<WorkerContextData> context_; |
| 346 | 354 |
| 347 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerContextClient); | 355 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerContextClient); |
| 348 }; | 356 }; |
| 349 | 357 |
| 350 } // namespace content | 358 } // namespace content |
| 351 | 359 |
| 352 #endif // CONTENT_RENDERER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_CLIENT_H_ | 360 #endif // CONTENT_RENDERER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_CLIENT_H_ |
| OLD | NEW |