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

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

Issue 1972733002: Delete geofencing implementation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix test expectations Created 4 years, 7 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
11 #include <map> 11 #include <map>
12 #include <memory> 12 #include <memory>
13 #include <string> 13 #include <string>
14 #include <vector> 14 #include <vector>
15 15
16 #include "base/id_map.h" 16 #include "base/id_map.h"
17 #include "base/macros.h" 17 #include "base/macros.h"
18 #include "base/memory/ref_counted.h" 18 #include "base/memory/ref_counted.h"
19 #include "base/strings/string16.h" 19 #include "base/strings/string16.h"
20 #include "base/time/time.h" 20 #include "base/time/time.h"
21 #include "content/child/webmessageportchannel_impl.h" 21 #include "content/child/webmessageportchannel_impl.h"
22 #include "content/common/service_worker/service_worker_types.h" 22 #include "content/common/service_worker/service_worker_types.h"
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 "services/shell/public/interfaces/interface_provider.mojom.h" 25 #include "services/shell/public/interfaces/interface_provider.mojom.h"
26 #include "third_party/WebKit/public/platform/WebGeofencingEventType.h"
27 #include "third_party/WebKit/public/platform/WebMessagePortChannel.h" 26 #include "third_party/WebKit/public/platform/WebMessagePortChannel.h"
28 #include "third_party/WebKit/public/platform/modules/serviceworker/WebServiceWor kerError.h" 27 #include "third_party/WebKit/public/platform/modules/serviceworker/WebServiceWor kerError.h"
29 #include "third_party/WebKit/public/web/modules/serviceworker/WebServiceWorkerCo ntextClient.h" 28 #include "third_party/WebKit/public/web/modules/serviceworker/WebServiceWorkerCo ntextClient.h"
30 #include "third_party/WebKit/public/web/modules/serviceworker/WebServiceWorkerCo ntextProxy.h" 29 #include "third_party/WebKit/public/web/modules/serviceworker/WebServiceWorkerCo ntextProxy.h"
31 #include "v8/include/v8.h" 30 #include "v8/include/v8.h"
32 31
33 struct ServiceWorkerMsg_ExtendableMessageEvent_Params; 32 struct ServiceWorkerMsg_ExtendableMessageEvent_Params;
34 33
35 namespace base { 34 namespace base {
36 class SingleThreadTaskRunner; 35 class SingleThreadTaskRunner;
37 class TaskRunner; 36 class TaskRunner;
38 } 37 }
39 38
40 namespace blink { 39 namespace blink {
41 struct WebCircularGeofencingRegion;
42 class WebDataSource; 40 class WebDataSource;
43 struct WebServiceWorkerClientQueryOptions; 41 struct WebServiceWorkerClientQueryOptions;
44 class WebServiceWorkerContextProxy; 42 class WebServiceWorkerContextProxy;
45 class WebServiceWorkerProvider; 43 class WebServiceWorkerProvider;
46 struct WebSyncRegistration; 44 struct WebSyncRegistration;
47 } 45 }
48 46
49 namespace IPC { 47 namespace IPC {
50 class Message; 48 class Message;
51 } 49 }
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
201 void OnNotificationClickEvent( 199 void OnNotificationClickEvent(
202 int request_id, 200 int request_id,
203 int64_t persistent_notification_id, 201 int64_t persistent_notification_id,
204 const PlatformNotificationData& notification_data, 202 const PlatformNotificationData& notification_data,
205 int action_index); 203 int action_index);
206 void OnPushEvent(int request_id, const PushEventPayload& payload); 204 void OnPushEvent(int request_id, const PushEventPayload& payload);
207 void OnNotificationCloseEvent( 205 void OnNotificationCloseEvent(
208 int request_id, 206 int request_id,
209 int64_t persistent_notification_id, 207 int64_t persistent_notification_id,
210 const PlatformNotificationData& notification_data); 208 const PlatformNotificationData& notification_data);
211 void OnGeofencingEvent(int request_id,
212 blink::WebGeofencingEventType event_type,
213 const std::string& region_id,
214 const blink::WebCircularGeofencingRegion& region);
215 209
216 void OnDidGetClient(int request_id, const ServiceWorkerClientInfo& client); 210 void OnDidGetClient(int request_id, const ServiceWorkerClientInfo& client);
217 void OnDidGetClients( 211 void OnDidGetClients(
218 int request_id, const std::vector<ServiceWorkerClientInfo>& clients); 212 int request_id, const std::vector<ServiceWorkerClientInfo>& clients);
219 void OnOpenWindowResponse(int request_id, 213 void OnOpenWindowResponse(int request_id,
220 const ServiceWorkerClientInfo& client); 214 const ServiceWorkerClientInfo& client);
221 void OnOpenWindowError(int request_id, const std::string& message); 215 void OnOpenWindowError(int request_id, const std::string& message);
222 void OnFocusClientResponse(int request_id, 216 void OnFocusClientResponse(int request_id,
223 const ServiceWorkerClientInfo& client); 217 const ServiceWorkerClientInfo& client);
224 void OnNavigateClientResponse(int request_id, 218 void OnNavigateClientResponse(int request_id,
(...skipping 25 matching lines...) Expand all
250 // Initialized on the worker thread in workerContextStarted and 244 // Initialized on the worker thread in workerContextStarted and
251 // destructed on the worker thread in willDestroyWorkerContext. 245 // destructed on the worker thread in willDestroyWorkerContext.
252 std::unique_ptr<WorkerContextData> context_; 246 std::unique_ptr<WorkerContextData> context_;
253 247
254 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerContextClient); 248 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerContextClient);
255 }; 249 };
256 250
257 } // namespace content 251 } // namespace content
258 252
259 #endif // CONTENT_RENDERER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_CLIENT_H_ 253 #endif // CONTENT_RENDERER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698