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

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

Issue 1619703002: Implement notificationclose event (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Trivial rebase Created 4 years, 10 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 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 void didHandleInstallEvent( 131 void didHandleInstallEvent(
132 int request_id, 132 int request_id,
133 blink::WebServiceWorkerEventResult result) override; 133 blink::WebServiceWorkerEventResult result) override;
134 void didHandleFetchEvent(int request_id) override; 134 void didHandleFetchEvent(int request_id) override;
135 void didHandleFetchEvent( 135 void didHandleFetchEvent(
136 int request_id, 136 int request_id,
137 const blink::WebServiceWorkerResponse& response) override; 137 const blink::WebServiceWorkerResponse& response) override;
138 void didHandleNotificationClickEvent( 138 void didHandleNotificationClickEvent(
139 int request_id, 139 int request_id,
140 blink::WebServiceWorkerEventResult result) override; 140 blink::WebServiceWorkerEventResult result) override;
141 void didHandleNotificationCloseEvent(
142 int request_id,
143 blink::WebServiceWorkerEventResult result) override;
141 void didHandlePushEvent(int request_id, 144 void didHandlePushEvent(int request_id,
142 blink::WebServiceWorkerEventResult result) override; 145 blink::WebServiceWorkerEventResult result) override;
143 void didHandleSyncEvent(int request_id, 146 void didHandleSyncEvent(int request_id,
144 blink::WebServiceWorkerEventResult result) override; 147 blink::WebServiceWorkerEventResult result) override;
145 148
146 // Called on the main thread. 149 // Called on the main thread.
147 blink::WebServiceWorkerNetworkProvider* createServiceWorkerNetworkProvider( 150 blink::WebServiceWorkerNetworkProvider* createServiceWorkerNetworkProvider(
148 blink::WebDataSource* data_source) override; 151 blink::WebDataSource* data_source) override;
149 blink::WebServiceWorkerProvider* createServiceWorkerProvider() override; 152 blink::WebServiceWorkerProvider* createServiceWorkerProvider() override;
150 153
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
187 190
188 void OnActivateEvent(int request_id); 191 void OnActivateEvent(int request_id);
189 void OnInstallEvent(int request_id); 192 void OnInstallEvent(int request_id);
190 void OnFetchEvent(int request_id, const ServiceWorkerFetchRequest& request); 193 void OnFetchEvent(int request_id, const ServiceWorkerFetchRequest& request);
191 void OnNotificationClickEvent( 194 void OnNotificationClickEvent(
192 int request_id, 195 int request_id,
193 int64_t persistent_notification_id, 196 int64_t persistent_notification_id,
194 const PlatformNotificationData& notification_data, 197 const PlatformNotificationData& notification_data,
195 int action_index); 198 int action_index);
196 void OnPushEvent(int request_id, const PushEventPayload& payload); 199 void OnPushEvent(int request_id, const PushEventPayload& payload);
200 void OnNotificationCloseEvent(
201 int request_id,
202 int64_t persistent_notification_id,
203 const PlatformNotificationData& notification_data);
197 void OnGeofencingEvent(int request_id, 204 void OnGeofencingEvent(int request_id,
198 blink::WebGeofencingEventType event_type, 205 blink::WebGeofencingEventType event_type,
199 const std::string& region_id, 206 const std::string& region_id,
200 const blink::WebCircularGeofencingRegion& region); 207 const blink::WebCircularGeofencingRegion& region);
201 void OnPostMessage( 208 void OnPostMessage(
202 const base::string16& message, 209 const base::string16& message,
203 const std::vector<TransferredMessagePort>& sent_message_ports, 210 const std::vector<TransferredMessagePort>& sent_message_ports,
204 const std::vector<int>& new_routing_ids); 211 const std::vector<int>& new_routing_ids);
205 void OnCrossOriginMessageToWorker( 212 void OnCrossOriginMessageToWorker(
206 const NavigatorConnectClient& client, 213 const NavigatorConnectClient& client,
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
243 // Initialized on the worker thread in workerContextStarted and 250 // Initialized on the worker thread in workerContextStarted and
244 // destructed on the worker thread in willDestroyWorkerContext. 251 // destructed on the worker thread in willDestroyWorkerContext.
245 scoped_ptr<WorkerContextData> context_; 252 scoped_ptr<WorkerContextData> context_;
246 253
247 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerContextClient); 254 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerContextClient);
248 }; 255 };
249 256
250 } // namespace content 257 } // namespace content
251 258
252 #endif // CONTENT_RENDERER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_CLIENT_H_ 259 #endif // CONTENT_RENDERER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698