| 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 437 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 448 void OnSetCachedMetadata(const GURL& url, const std::vector<char>& data); | 448 void OnSetCachedMetadata(const GURL& url, const std::vector<char>& data); |
| 449 void OnSetCachedMetadataFinished(int64 callback_id, int result); | 449 void OnSetCachedMetadataFinished(int64 callback_id, int result); |
| 450 void OnClearCachedMetadata(const GURL& url); | 450 void OnClearCachedMetadata(const GURL& url); |
| 451 void OnClearCachedMetadataFinished(int64 callback_id, int result); | 451 void OnClearCachedMetadataFinished(int64 callback_id, int result); |
| 452 | 452 |
| 453 void OnPostMessageToClient( | 453 void OnPostMessageToClient( |
| 454 const std::string& client_uuid, | 454 const std::string& client_uuid, |
| 455 const base::string16& message, | 455 const base::string16& message, |
| 456 const std::vector<TransferredMessagePort>& sent_message_ports); | 456 const std::vector<TransferredMessagePort>& sent_message_ports); |
| 457 void OnFocusClient(int request_id, const std::string& client_uuid); | 457 void OnFocusClient(int request_id, const std::string& client_uuid); |
| 458 void OnNavigateClient(int request_id, |
| 459 const std::string& client_uuid, |
| 460 const GURL& url); |
| 461 void DidNavigateClient(int request_id, |
| 462 int render_process_id, |
| 463 int render_frame_id); |
| 464 void OnNavigateClientFinished(int request_id, |
| 465 const std::string& client_uuid, |
| 466 const ServiceWorkerClientInfo& client); |
| 458 void OnSkipWaiting(int request_id); | 467 void OnSkipWaiting(int request_id); |
| 459 void OnClaimClients(int request_id); | 468 void OnClaimClients(int request_id); |
| 460 void OnPongFromWorker(); | 469 void OnPongFromWorker(); |
| 461 void OnStashMessagePort(int message_port_id, const base::string16& name); | 470 void OnStashMessagePort(int message_port_id, const base::string16& name); |
| 462 | 471 |
| 463 void OnFocusClientFinished(int request_id, | 472 void OnFocusClientFinished(int request_id, |
| 464 const std::string& client_uuid, | 473 const std::string& client_uuid, |
| 465 const ServiceWorkerClientInfo& client); | 474 const ServiceWorkerClientInfo& client); |
| 466 | 475 |
| 467 void DidEnsureLiveRegistrationForStartWorker( | 476 void DidEnsureLiveRegistrationForStartWorker( |
| (...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 599 scoped_ptr<Metrics> metrics_; | 608 scoped_ptr<Metrics> metrics_; |
| 600 | 609 |
| 601 base::WeakPtrFactory<ServiceWorkerVersion> weak_factory_; | 610 base::WeakPtrFactory<ServiceWorkerVersion> weak_factory_; |
| 602 | 611 |
| 603 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerVersion); | 612 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerVersion); |
| 604 }; | 613 }; |
| 605 | 614 |
| 606 } // namespace content | 615 } // namespace content |
| 607 | 616 |
| 608 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_VERSION_H_ | 617 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_VERSION_H_ |
| OLD | NEW |