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

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

Issue 1701843002: ServiceWorker: Implement 'source' and 'origin' attributes of ExtendableMessageEvent (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@move_focus_into_utils
Patch Set: clean up tests Created 4 years, 9 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 12 matching lines...) Expand all
23 #include "content/public/common/service_worker_event_status.mojom.h" 23 #include "content/public/common/service_worker_event_status.mojom.h"
24 #include "ipc/ipc_listener.h" 24 #include "ipc/ipc_listener.h"
25 #include "mojo/shell/public/interfaces/interface_provider.mojom.h" 25 #include "mojo/shell/public/interfaces/interface_provider.mojom.h"
26 #include "third_party/WebKit/public/platform/WebGeofencingEventType.h" 26 #include "third_party/WebKit/public/platform/WebGeofencingEventType.h"
27 #include "third_party/WebKit/public/platform/WebMessagePortChannel.h" 27 #include "third_party/WebKit/public/platform/WebMessagePortChannel.h"
28 #include "third_party/WebKit/public/platform/modules/serviceworker/WebServiceWor kerError.h" 28 #include "third_party/WebKit/public/platform/modules/serviceworker/WebServiceWor kerError.h"
29 #include "third_party/WebKit/public/web/modules/serviceworker/WebServiceWorkerCo ntextClient.h" 29 #include "third_party/WebKit/public/web/modules/serviceworker/WebServiceWorkerCo ntextClient.h"
30 #include "third_party/WebKit/public/web/modules/serviceworker/WebServiceWorkerCo ntextProxy.h" 30 #include "third_party/WebKit/public/web/modules/serviceworker/WebServiceWorkerCo ntextProxy.h"
31 #include "v8/include/v8.h" 31 #include "v8/include/v8.h"
32 32
33 struct ServiceWorkerMsg_ExtendableMessageEvent_Params;
34
33 namespace base { 35 namespace base {
34 class SingleThreadTaskRunner; 36 class SingleThreadTaskRunner;
35 class TaskRunner; 37 class TaskRunner;
36 } 38 }
37 39
38 namespace blink { 40 namespace blink {
39 struct WebCircularGeofencingRegion; 41 struct WebCircularGeofencingRegion;
40 struct WebCrossOriginServiceWorkerClient; 42 struct WebCrossOriginServiceWorkerClient;
41 class WebDataSource; 43 class WebDataSource;
42 struct WebServiceWorkerClientQueryOptions; 44 struct WebServiceWorkerClientQueryOptions;
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 191
190 void Send(IPC::Message* message); 192 void Send(IPC::Message* message);
191 void SendWorkerStarted(); 193 void SendWorkerStarted();
192 void SetRegistrationInServiceWorkerGlobalScope( 194 void SetRegistrationInServiceWorkerGlobalScope(
193 const ServiceWorkerRegistrationObjectInfo& info, 195 const ServiceWorkerRegistrationObjectInfo& info,
194 const ServiceWorkerVersionAttributes& attrs); 196 const ServiceWorkerVersionAttributes& attrs);
195 197
196 void OnActivateEvent(int request_id); 198 void OnActivateEvent(int request_id);
197 void OnExtendableMessageEvent( 199 void OnExtendableMessageEvent(
198 int request_id, 200 int request_id,
199 const base::string16& message, 201 const ServiceWorkerMsg_ExtendableMessageEvent_Params& params);
200 const std::vector<TransferredMessagePort>& sent_message_ports,
201 const std::vector<int>& new_routing_ids);
202 void OnInstallEvent(int request_id); 202 void OnInstallEvent(int request_id);
203 void OnFetchEvent(int request_id, const ServiceWorkerFetchRequest& request); 203 void OnFetchEvent(int request_id, const ServiceWorkerFetchRequest& request);
204 void OnNotificationClickEvent( 204 void OnNotificationClickEvent(
205 int request_id, 205 int request_id,
206 int64_t persistent_notification_id, 206 int64_t persistent_notification_id,
207 const PlatformNotificationData& notification_data, 207 const PlatformNotificationData& notification_data,
208 int action_index); 208 int action_index);
209 void OnPushEvent(int request_id, const PushEventPayload& payload); 209 void OnPushEvent(int request_id, const PushEventPayload& payload);
210 void OnNotificationCloseEvent( 210 void OnNotificationCloseEvent(
211 int request_id, 211 int request_id,
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
265 // Initialized on the worker thread in workerContextStarted and 265 // Initialized on the worker thread in workerContextStarted and
266 // destructed on the worker thread in willDestroyWorkerContext. 266 // destructed on the worker thread in willDestroyWorkerContext.
267 scoped_ptr<WorkerContextData> context_; 267 scoped_ptr<WorkerContextData> context_;
268 268
269 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerContextClient); 269 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerContextClient);
270 }; 270 };
271 271
272 } // namespace content 272 } // namespace content
273 273
274 #endif // CONTENT_RENDERER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_CLIENT_H_ 274 #endif // CONTENT_RENDERER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698