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); |
| 364 void DidClaimClients(int request_id, ServiceWorkerStatusCode status); |
363 void DidGetClientInfo(int client_id, | 365 void DidGetClientInfo(int client_id, |
364 scoped_refptr<GetClientDocumentsCallback> callback, | 366 scoped_refptr<GetClientDocumentsCallback> callback, |
365 ServiceWorkerStatusCode status, | 367 ServiceWorkerStatusCode status, |
366 const ServiceWorkerClientInfo& info); | 368 const ServiceWorkerClientInfo& info); |
367 void ScheduleStopWorker(); | 369 void ScheduleStopWorker(); |
368 void StopWorkerIfIdle(); | 370 void StopWorkerIfIdle(); |
369 bool HasInflightRequests() const; | 371 bool HasInflightRequests() const; |
370 | 372 |
371 void DoomInternal(); | 373 void DoomInternal(); |
372 | 374 |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
411 bool skip_waiting_; | 413 bool skip_waiting_; |
412 | 414 |
413 base::WeakPtrFactory<ServiceWorkerVersion> weak_factory_; | 415 base::WeakPtrFactory<ServiceWorkerVersion> weak_factory_; |
414 | 416 |
415 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerVersion); | 417 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerVersion); |
416 }; | 418 }; |
417 | 419 |
418 } // namespace content | 420 } // namespace content |
419 | 421 |
420 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_VERSION_H_ | 422 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_VERSION_H_ |
OLD | NEW |