| 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 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 const base::string16& error_message, | 103 const base::string16& error_message, |
| 104 int line_number, | 104 int line_number, |
| 105 int column_number, | 105 int column_number, |
| 106 const GURL& source_url) {} | 106 const GURL& source_url) {} |
| 107 virtual void OnReportConsoleMessage(ServiceWorkerVersion* version, | 107 virtual void OnReportConsoleMessage(ServiceWorkerVersion* version, |
| 108 int source_identifier, | 108 int source_identifier, |
| 109 int message_level, | 109 int message_level, |
| 110 const base::string16& message, | 110 const base::string16& message, |
| 111 int line_number, | 111 int line_number, |
| 112 const GURL& source_url) {} | 112 const GURL& source_url) {} |
| 113 virtual void OnControlleeAdded(ServiceWorkerVersion* version, |
| 114 ServiceWorkerProviderHost* provider_host) {} |
| 115 virtual void OnControlleeRemoved(ServiceWorkerVersion* version, |
| 116 ServiceWorkerProviderHost* provider_host) { |
| 117 } |
| 113 // Fires when a version transitions from having a controllee to not. | 118 // Fires when a version transitions from having a controllee to not. |
| 114 virtual void OnNoControllees(ServiceWorkerVersion* version) {} | 119 virtual void OnNoControllees(ServiceWorkerVersion* version) {} |
| 115 virtual void OnCachedMetadataUpdated(ServiceWorkerVersion* version) {} | 120 virtual void OnCachedMetadataUpdated(ServiceWorkerVersion* version) {} |
| 116 | 121 |
| 117 protected: | 122 protected: |
| 118 virtual ~Listener() {} | 123 virtual ~Listener() {} |
| 119 }; | 124 }; |
| 120 | 125 |
| 121 ServiceWorkerVersion( | 126 ServiceWorkerVersion( |
| 122 ServiceWorkerRegistration* registration, | 127 ServiceWorkerRegistration* registration, |
| (...skipping 446 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 569 scoped_ptr<Metrics> metrics_; | 574 scoped_ptr<Metrics> metrics_; |
| 570 | 575 |
| 571 base::WeakPtrFactory<ServiceWorkerVersion> weak_factory_; | 576 base::WeakPtrFactory<ServiceWorkerVersion> weak_factory_; |
| 572 | 577 |
| 573 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerVersion); | 578 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerVersion); |
| 574 }; | 579 }; |
| 575 | 580 |
| 576 } // namespace content | 581 } // namespace content |
| 577 | 582 |
| 578 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_VERSION_H_ | 583 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_VERSION_H_ |
| OLD | NEW |