OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_BROWSER_SERVICE_WORKER_SERVICE_WORKER_VERSION_H_ | 5 #ifndef CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_VERSION_H_ |
6 #define CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_VERSION_H_ | 6 #define CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_VERSION_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <set> | 9 #include <set> |
10 #include <string> | 10 #include <string> |
(...skipping 339 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
350 void OnPushEventFinished(int request_id, | 350 void OnPushEventFinished(int request_id, |
351 blink::WebServiceWorkerEventResult result); | 351 blink::WebServiceWorkerEventResult result); |
352 void OnGeofencingEventFinished(int request_id); | 352 void OnGeofencingEventFinished(int request_id); |
353 void OnCrossOriginConnectEventFinished(int request_id, | 353 void OnCrossOriginConnectEventFinished(int request_id, |
354 bool accept_connection); | 354 bool accept_connection); |
355 void OnPostMessageToDocument(int client_id, | 355 void OnPostMessageToDocument(int client_id, |
356 const base::string16& message, | 356 const base::string16& message, |
357 const std::vector<int>& sent_message_port_ids); | 357 const std::vector<int>& sent_message_port_ids); |
358 void OnFocusClient(int request_id, int client_id); | 358 void OnFocusClient(int request_id, int client_id); |
359 void OnSkipWaiting(int request_id); | 359 void OnSkipWaiting(int request_id); |
| 360 void OnClaimClients(int request_id); |
360 | 361 |
361 void OnFocusClientFinished(int request_id, bool result); | 362 void OnFocusClientFinished(int request_id, bool result); |
362 void DidSkipWaiting(int request_id); | 363 void DidSkipWaiting(int request_id); |
363 void DidGetClientInfo(int client_id, | 364 void DidGetClientInfo(int client_id, |
364 scoped_refptr<GetClientDocumentsCallback> callback, | 365 scoped_refptr<GetClientDocumentsCallback> callback, |
365 ServiceWorkerStatusCode status, | 366 ServiceWorkerStatusCode status, |
366 const ServiceWorkerClientInfo& info); | 367 const ServiceWorkerClientInfo& info); |
367 void ScheduleStopWorker(); | 368 void ScheduleStopWorker(); |
368 void StopWorkerIfIdle(); | 369 void StopWorkerIfIdle(); |
369 bool HasInflightRequests() const; | 370 bool HasInflightRequests() const; |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
411 bool skip_waiting_; | 412 bool skip_waiting_; |
412 | 413 |
413 base::WeakPtrFactory<ServiceWorkerVersion> weak_factory_; | 414 base::WeakPtrFactory<ServiceWorkerVersion> weak_factory_; |
414 | 415 |
415 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerVersion); | 416 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerVersion); |
416 }; | 417 }; |
417 | 418 |
418 } // namespace content | 419 } // namespace content |
419 | 420 |
420 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_VERSION_H_ | 421 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_VERSION_H_ |
OLD | NEW |