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

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

Issue 2534403002: [ServiceWorker] Mojofy extendable message event. (Closed)
Patch Set: Fix win build Created 4 years 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 209 matching lines...) Expand 10 before | Expand all | Expand 10 after
220 220
221 // mojom::ServiceWorkerEventDispatcher 221 // mojom::ServiceWorkerEventDispatcher
222 void DispatchFetchEvent(int fetch_event_id, 222 void DispatchFetchEvent(int fetch_event_id,
223 const ServiceWorkerFetchRequest& request, 223 const ServiceWorkerFetchRequest& request,
224 mojom::FetchEventPreloadHandlePtr preload_handle, 224 mojom::FetchEventPreloadHandlePtr preload_handle,
225 const DispatchFetchEventCallback& callback) override; 225 const DispatchFetchEventCallback& callback) override;
226 void DispatchSyncEvent( 226 void DispatchSyncEvent(
227 const std::string& tag, 227 const std::string& tag,
228 blink::mojom::BackgroundSyncEventLastChance last_chance, 228 blink::mojom::BackgroundSyncEventLastChance last_chance,
229 const DispatchSyncEventCallback& callback) override; 229 const DispatchSyncEventCallback& callback) override;
230 void DispatchExtendableMessageEvent(
shimazu 2016/12/02 04:00:33 Could you move this to l.222? I think it's better
leonhsl(Using Gerrit) 2016/12/02 08:36:44 Acknowledged.
leonhsl(Using Gerrit) 2016/12/02 15:43:27 Done.
231 mojom::ExtendableMessageEventPtr event,
232 const DispatchExtendableMessageEventCallback& callback) override;
230 233
231 void OnActivateEvent(int request_id); 234 void OnActivateEvent(int request_id);
232 void OnExtendableMessageEvent( 235 void OnExtendableMessageEvent(
shimazu 2016/12/02 04:00:33 Could you remove this?
leonhsl(Using Gerrit) 2016/12/02 08:36:44 Acknowledged and thanks!
leonhsl(Using Gerrit) 2016/12/02 15:43:27 Done.
233 int request_id, 236 int request_id,
234 const ServiceWorkerMsg_ExtendableMessageEvent_Params& params); 237 const ServiceWorkerMsg_ExtendableMessageEvent_Params& params);
235 void OnInstallEvent(int request_id); 238 void OnInstallEvent(int request_id);
236 void OnNotificationClickEvent( 239 void OnNotificationClickEvent(
237 int request_id, 240 int request_id,
238 const std::string& notification_id, 241 const std::string& notification_id,
239 const PlatformNotificationData& notification_data, 242 const PlatformNotificationData& notification_data,
240 int action_index, 243 int action_index,
241 const base::NullableString16& reply); 244 const base::NullableString16& reply);
242 void OnPushEvent(int request_id, const PushEventPayload& payload); 245 void OnPushEvent(int request_id, const PushEventPayload& payload);
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
296 // Initialized on the worker thread in workerContextStarted and 299 // Initialized on the worker thread in workerContextStarted and
297 // destructed on the worker thread in willDestroyWorkerContext. 300 // destructed on the worker thread in willDestroyWorkerContext.
298 std::unique_ptr<WorkerContextData> context_; 301 std::unique_ptr<WorkerContextData> context_;
299 302
300 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerContextClient); 303 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerContextClient);
301 }; 304 };
302 305
303 } // namespace content 306 } // namespace content
304 307
305 #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