Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(227)

Side by Side Diff: content/renderer/service_worker/service_worker_context_client.h

Issue 2620333003: Reland of [ServiceWorker] Mojofy PushEvent of Service Worker. (Closed)
Patch Set: Rebase Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 207 matching lines...) Expand 10 before | Expand all | Expand 10 after
218 const ServiceWorkerVersionAttributes& attrs); 218 const ServiceWorkerVersionAttributes& attrs);
219 219
220 // mojom::ServiceWorkerEventDispatcher 220 // mojom::ServiceWorkerEventDispatcher
221 void DispatchExtendableMessageEvent( 221 void DispatchExtendableMessageEvent(
222 mojom::ExtendableMessageEventPtr event, 222 mojom::ExtendableMessageEventPtr event,
223 const DispatchExtendableMessageEventCallback& callback) override; 223 const DispatchExtendableMessageEventCallback& callback) override;
224 void DispatchFetchEvent(int fetch_event_id, 224 void DispatchFetchEvent(int fetch_event_id,
225 const ServiceWorkerFetchRequest& request, 225 const ServiceWorkerFetchRequest& request,
226 mojom::FetchEventPreloadHandlePtr preload_handle, 226 mojom::FetchEventPreloadHandlePtr preload_handle,
227 const DispatchFetchEventCallback& callback) override; 227 const DispatchFetchEventCallback& callback) override;
228 void DispatchPushEvent(const PushEventPayload& payload,
229 const DispatchPushEventCallback& callback) override;
228 void DispatchSyncEvent( 230 void DispatchSyncEvent(
229 const std::string& tag, 231 const std::string& tag,
230 blink::mojom::BackgroundSyncEventLastChance last_chance, 232 blink::mojom::BackgroundSyncEventLastChance last_chance,
231 const DispatchSyncEventCallback& callback) override; 233 const DispatchSyncEventCallback& callback) override;
232 void DispatchPaymentRequestEvent( 234 void DispatchPaymentRequestEvent(
233 payments::mojom::PaymentAppRequestDataPtr data, 235 payments::mojom::PaymentAppRequestDataPtr data,
234 const DispatchPaymentRequestEventCallback& callback) override; 236 const DispatchPaymentRequestEventCallback& callback) override;
235 237
236 void OnActivateEvent(int request_id); 238 void OnActivateEvent(int request_id);
237 void OnInstallEvent(int request_id); 239 void OnInstallEvent(int request_id);
238 void OnNotificationClickEvent( 240 void OnNotificationClickEvent(
239 int request_id, 241 int request_id,
240 const std::string& notification_id, 242 const std::string& notification_id,
241 const PlatformNotificationData& notification_data, 243 const PlatformNotificationData& notification_data,
242 int action_index, 244 int action_index,
243 const base::NullableString16& reply); 245 const base::NullableString16& reply);
244 void OnPushEvent(int request_id, const PushEventPayload& payload);
245 void OnNotificationCloseEvent( 246 void OnNotificationCloseEvent(
246 int request_id, 247 int request_id,
247 const std::string& notification_id, 248 const std::string& notification_id,
248 const PlatformNotificationData& notification_data); 249 const PlatformNotificationData& notification_data);
249 250
250 void OnDidGetClient(int request_id, const ServiceWorkerClientInfo& client); 251 void OnDidGetClient(int request_id, const ServiceWorkerClientInfo& client);
251 void OnDidGetClients( 252 void OnDidGetClients(
252 int request_id, const std::vector<ServiceWorkerClientInfo>& clients); 253 int request_id, const std::vector<ServiceWorkerClientInfo>& clients);
253 void OnOpenWindowResponse(int request_id, 254 void OnOpenWindowResponse(int request_id,
254 const ServiceWorkerClientInfo& client); 255 const ServiceWorkerClientInfo& client);
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
298 // Initialized on the worker thread in workerContextStarted and 299 // Initialized on the worker thread in workerContextStarted and
299 // destructed on the worker thread in willDestroyWorkerContext. 300 // destructed on the worker thread in willDestroyWorkerContext.
300 std::unique_ptr<WorkerContextData> context_; 301 std::unique_ptr<WorkerContextData> context_;
301 302
302 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerContextClient); 303 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerContextClient);
303 }; 304 };
304 305
305 } // namespace content 306 } // namespace content
306 307
307 #endif // CONTENT_RENDERER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_CLIENT_H_ 308 #endif // CONTENT_RENDERER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698