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

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: Recovered a lost piece of logging. Created 4 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 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 void didHandleInstallEvent( 130 void didHandleInstallEvent(
131 int request_id, 131 int request_id,
132 blink::WebServiceWorkerEventResult result) override; 132 blink::WebServiceWorkerEventResult result) override;
133 void didHandleFetchEvent(int request_id) override; 133 void didHandleFetchEvent(int request_id) override;
134 void didHandleFetchEvent( 134 void didHandleFetchEvent(
135 int request_id, 135 int request_id,
136 const blink::WebServiceWorkerResponse& response) override; 136 const blink::WebServiceWorkerResponse& response) override;
137 void didHandleNotificationClickEvent( 137 void didHandleNotificationClickEvent(
138 int request_id, 138 int request_id,
139 blink::WebServiceWorkerEventResult result) override; 139 blink::WebServiceWorkerEventResult result) override;
140 void didHandleNotificationCloseEvent(
141 int request_id,
142 blink::WebServiceWorkerEventResult result) override;
140 void didHandlePushEvent(int request_id, 143 void didHandlePushEvent(int request_id,
141 blink::WebServiceWorkerEventResult result) override; 144 blink::WebServiceWorkerEventResult result) override;
142 void didHandleSyncEvent(int request_id, 145 void didHandleSyncEvent(int request_id,
143 blink::WebServiceWorkerEventResult result) override; 146 blink::WebServiceWorkerEventResult result) override;
144 147
145 // Called on the main thread. 148 // Called on the main thread.
146 blink::WebServiceWorkerNetworkProvider* createServiceWorkerNetworkProvider( 149 blink::WebServiceWorkerNetworkProvider* createServiceWorkerNetworkProvider(
147 blink::WebDataSource* data_source) override; 150 blink::WebDataSource* data_source) override;
148 blink::WebServiceWorkerProvider* createServiceWorkerProvider() override; 151 blink::WebServiceWorkerProvider* createServiceWorkerProvider() override;
149 152
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
185 const ServiceWorkerVersionAttributes& attrs); 188 const ServiceWorkerVersionAttributes& attrs);
186 189
187 void OnActivateEvent(int request_id); 190 void OnActivateEvent(int request_id);
188 void OnInstallEvent(int request_id); 191 void OnInstallEvent(int request_id);
189 void OnFetchEvent(int request_id, const ServiceWorkerFetchRequest& request); 192 void OnFetchEvent(int request_id, const ServiceWorkerFetchRequest& request);
190 void OnNotificationClickEvent( 193 void OnNotificationClickEvent(
191 int request_id, 194 int request_id,
192 int64_t persistent_notification_id, 195 int64_t persistent_notification_id,
193 const PlatformNotificationData& notification_data, 196 const PlatformNotificationData& notification_data,
194 int action_index); 197 int action_index);
198 void OnNotificationCloseEvent(
199 int request_id,
200 int64_t persistent_notification_id,
201 const PlatformNotificationData& notification_data);
195 void OnPushEvent(int request_id, const std::string& data); 202 void OnPushEvent(int request_id, const std::string& data);
196 void OnGeofencingEvent(int request_id, 203 void OnGeofencingEvent(int request_id,
197 blink::WebGeofencingEventType event_type, 204 blink::WebGeofencingEventType event_type,
198 const std::string& region_id, 205 const std::string& region_id,
199 const blink::WebCircularGeofencingRegion& region); 206 const blink::WebCircularGeofencingRegion& region);
200 void OnPostMessage( 207 void OnPostMessage(
201 const base::string16& message, 208 const base::string16& message,
202 const std::vector<TransferredMessagePort>& sent_message_ports, 209 const std::vector<TransferredMessagePort>& sent_message_ports,
203 const std::vector<int>& new_routing_ids); 210 const std::vector<int>& new_routing_ids);
204 void OnCrossOriginMessageToWorker( 211 void OnCrossOriginMessageToWorker(
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
242 // Initialized on the worker thread in workerContextStarted and 249 // Initialized on the worker thread in workerContextStarted and
243 // destructed on the worker thread in willDestroyWorkerContext. 250 // destructed on the worker thread in willDestroyWorkerContext.
244 scoped_ptr<WorkerContextData> context_; 251 scoped_ptr<WorkerContextData> context_;
245 252
246 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerContextClient); 253 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerContextClient);
247 }; 254 };
248 255
249 } // namespace content 256 } // namespace content
250 257
251 #endif // CONTENT_RENDERER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_CLIENT_H_ 258 #endif // CONTENT_RENDERER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698