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 <queue> | 9 #include <queue> |
10 #include <set> | 10 #include <set> |
(...skipping 429 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
440 void OnSetCachedMetadata(const GURL& url, const std::vector<char>& data); | 440 void OnSetCachedMetadata(const GURL& url, const std::vector<char>& data); |
441 void OnSetCachedMetadataFinished(int64 callback_id, int result); | 441 void OnSetCachedMetadataFinished(int64 callback_id, int result); |
442 void OnClearCachedMetadata(const GURL& url); | 442 void OnClearCachedMetadata(const GURL& url); |
443 void OnClearCachedMetadataFinished(int64 callback_id, int result); | 443 void OnClearCachedMetadataFinished(int64 callback_id, int result); |
444 | 444 |
445 void OnPostMessageToClient( | 445 void OnPostMessageToClient( |
446 const std::string& client_uuid, | 446 const std::string& client_uuid, |
447 const base::string16& message, | 447 const base::string16& message, |
448 const std::vector<TransferredMessagePort>& sent_message_ports); | 448 const std::vector<TransferredMessagePort>& sent_message_ports); |
449 void OnFocusClient(int request_id, const std::string& client_uuid); | 449 void OnFocusClient(int request_id, const std::string& client_uuid); |
| 450 void OnNavigateClient(int request_id, |
| 451 const std::string& client_uuid, |
| 452 const GURL& url); |
450 void OnSkipWaiting(int request_id); | 453 void OnSkipWaiting(int request_id); |
451 void OnClaimClients(int request_id); | 454 void OnClaimClients(int request_id); |
452 void OnPongFromWorker(); | 455 void OnPongFromWorker(); |
453 void OnStashMessagePort(int message_port_id, const base::string16& name); | 456 void OnStashMessagePort(int message_port_id, const base::string16& name); |
454 | 457 |
455 void OnFocusClientFinished(int request_id, | 458 void OnFocusClientFinished(int request_id, |
456 const std::string& client_uuid, | 459 const std::string& client_uuid, |
457 const ServiceWorkerClientInfo& client); | 460 const ServiceWorkerClientInfo& client); |
| 461 void OnNavigateClientFinished(int request_id, |
| 462 const std::string& client_uuid, |
| 463 const GURL& url, |
| 464 const ServiceWorkerClientInfo& client); |
458 | 465 |
459 void DidEnsureLiveRegistrationForStartWorker( | 466 void DidEnsureLiveRegistrationForStartWorker( |
460 bool pause_after_download, | 467 bool pause_after_download, |
461 const StatusCallback& callback, | 468 const StatusCallback& callback, |
462 ServiceWorkerStatusCode status, | 469 ServiceWorkerStatusCode status, |
463 const scoped_refptr<ServiceWorkerRegistration>& protect); | 470 const scoped_refptr<ServiceWorkerRegistration>& protect); |
464 void StartWorkerInternal(bool pause_after_download); | 471 void StartWorkerInternal(bool pause_after_download); |
465 | 472 |
466 void DidSkipWaiting(int request_id); | 473 void DidSkipWaiting(int request_id); |
467 | 474 |
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
574 scoped_ptr<Metrics> metrics_; | 581 scoped_ptr<Metrics> metrics_; |
575 | 582 |
576 base::WeakPtrFactory<ServiceWorkerVersion> weak_factory_; | 583 base::WeakPtrFactory<ServiceWorkerVersion> weak_factory_; |
577 | 584 |
578 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerVersion); | 585 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerVersion); |
579 }; | 586 }; |
580 | 587 |
581 } // namespace content | 588 } // namespace content |
582 | 589 |
583 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_VERSION_H_ | 590 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_VERSION_H_ |
OLD | NEW |