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 448 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
459 void OnSetCachedMetadata(const GURL& url, const std::vector<char>& data); | 459 void OnSetCachedMetadata(const GURL& url, const std::vector<char>& data); |
460 void OnSetCachedMetadataFinished(int64 callback_id, int result); | 460 void OnSetCachedMetadataFinished(int64 callback_id, int result); |
461 void OnClearCachedMetadata(const GURL& url); | 461 void OnClearCachedMetadata(const GURL& url); |
462 void OnClearCachedMetadataFinished(int64 callback_id, int result); | 462 void OnClearCachedMetadataFinished(int64 callback_id, int result); |
463 | 463 |
464 void OnPostMessageToClient( | 464 void OnPostMessageToClient( |
465 const std::string& client_uuid, | 465 const std::string& client_uuid, |
466 const base::string16& message, | 466 const base::string16& message, |
467 const std::vector<TransferredMessagePort>& sent_message_ports); | 467 const std::vector<TransferredMessagePort>& sent_message_ports); |
468 void OnFocusClient(int request_id, const std::string& client_uuid); | 468 void OnFocusClient(int request_id, const std::string& client_uuid); |
| 469 void OnNavigateClient(int request_id, |
| 470 const std::string& client_uuid, |
| 471 const GURL& url); |
| 472 void DidNavigateClient(int request_id, |
| 473 int render_process_id, |
| 474 int render_frame_id); |
| 475 void OnNavigateClientFinished(int request_id, |
| 476 const std::string& client_uuid, |
| 477 const ServiceWorkerClientInfo& client); |
469 void OnSkipWaiting(int request_id); | 478 void OnSkipWaiting(int request_id); |
470 void OnClaimClients(int request_id); | 479 void OnClaimClients(int request_id); |
471 void OnPongFromWorker(); | 480 void OnPongFromWorker(); |
472 void OnStashMessagePort(int message_port_id, const base::string16& name); | 481 void OnStashMessagePort(int message_port_id, const base::string16& name); |
473 | 482 |
474 void OnFocusClientFinished(int request_id, | 483 void OnFocusClientFinished(int request_id, |
475 const std::string& client_uuid, | 484 const std::string& client_uuid, |
476 const ServiceWorkerClientInfo& client); | 485 const ServiceWorkerClientInfo& client); |
477 | 486 |
478 void DidEnsureLiveRegistrationForStartWorker( | 487 void DidEnsureLiveRegistrationForStartWorker( |
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
618 scoped_ptr<Metrics> metrics_; | 627 scoped_ptr<Metrics> metrics_; |
619 | 628 |
620 base::WeakPtrFactory<ServiceWorkerVersion> weak_factory_; | 629 base::WeakPtrFactory<ServiceWorkerVersion> weak_factory_; |
621 | 630 |
622 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerVersion); | 631 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerVersion); |
623 }; | 632 }; |
624 | 633 |
625 } // namespace content | 634 } // namespace content |
626 | 635 |
627 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_VERSION_H_ | 636 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_VERSION_H_ |
OLD | NEW |