| 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 378 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 389 void OnFocusClientFinished(int request_id, | 389 void OnFocusClientFinished(int request_id, |
| 390 const std::string& client_uuid, | 390 const std::string& client_uuid, |
| 391 const ServiceWorkerClientInfo& client); | 391 const ServiceWorkerClientInfo& client); |
| 392 | 392 |
| 393 void DidEnsureLiveRegistrationForStartWorker( | 393 void DidEnsureLiveRegistrationForStartWorker( |
| 394 bool pause_after_download, | 394 bool pause_after_download, |
| 395 const StatusCallback& callback, | 395 const StatusCallback& callback, |
| 396 ServiceWorkerStatusCode status, | 396 ServiceWorkerStatusCode status, |
| 397 const scoped_refptr<ServiceWorkerRegistration>& protect); | 397 const scoped_refptr<ServiceWorkerRegistration>& protect); |
| 398 void DidSkipWaiting(int request_id); | 398 void DidSkipWaiting(int request_id); |
| 399 void DidClaimClients(int request_id, ServiceWorkerStatusCode status); | |
| 400 void DidGetClients( | 399 void DidGetClients( |
| 401 int request_id, const std::vector<ServiceWorkerClientInfo>& clients); | 400 int request_id, const std::vector<ServiceWorkerClientInfo>& clients); |
| 402 | 401 |
| 403 // The timeout timer periodically calls OnTimeoutTimer, which stops the worker | 402 // The timeout timer periodically calls OnTimeoutTimer, which stops the worker |
| 404 // if it is excessively idle or unresponsive to ping. | 403 // if it is excessively idle or unresponsive to ping. |
| 405 void StartTimeoutTimer(); | 404 void StartTimeoutTimer(); |
| 406 void StopTimeoutTimer(); | 405 void StopTimeoutTimer(); |
| 407 void OnTimeoutTimer(); | 406 void OnTimeoutTimer(); |
| 408 | 407 |
| 409 // The ping protocol is for terminating workers that are taking excessively | 408 // The ping protocol is for terminating workers that are taking excessively |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 476 scoped_ptr<net::HttpResponseInfo> main_script_http_info_; | 475 scoped_ptr<net::HttpResponseInfo> main_script_http_info_; |
| 477 | 476 |
| 478 base::WeakPtrFactory<ServiceWorkerVersion> weak_factory_; | 477 base::WeakPtrFactory<ServiceWorkerVersion> weak_factory_; |
| 479 | 478 |
| 480 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerVersion); | 479 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerVersion); |
| 481 }; | 480 }; |
| 482 | 481 |
| 483 } // namespace content | 482 } // namespace content |
| 484 | 483 |
| 485 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_VERSION_H_ | 484 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_VERSION_H_ |
| OLD | NEW |