| 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_CONTEXT_CORE_H_ | 5 #ifndef CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_CORE_H_ |
| 6 #define CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_CORE_H_ | 6 #define CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_CORE_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 109 ObserverListThreadSafe<ServiceWorkerContextObserver>* observer_list, | 109 ObserverListThreadSafe<ServiceWorkerContextObserver>* observer_list, |
| 110 ServiceWorkerContextWrapper* wrapper); | 110 ServiceWorkerContextWrapper* wrapper); |
| 111 ServiceWorkerContextCore( | 111 ServiceWorkerContextCore( |
| 112 ServiceWorkerContextCore* old_context, | 112 ServiceWorkerContextCore* old_context, |
| 113 ServiceWorkerContextWrapper* wrapper); | 113 ServiceWorkerContextWrapper* wrapper); |
| 114 ~ServiceWorkerContextCore() override; | 114 ~ServiceWorkerContextCore() override; |
| 115 | 115 |
| 116 // ServiceWorkerVersion::Listener overrides. | 116 // ServiceWorkerVersion::Listener overrides. |
| 117 void OnRunningStateChanged(ServiceWorkerVersion* version) override; | 117 void OnRunningStateChanged(ServiceWorkerVersion* version) override; |
| 118 void OnVersionStateChanged(ServiceWorkerVersion* version) override; | 118 void OnVersionStateChanged(ServiceWorkerVersion* version) override; |
| 119 void OnMainScriptHttpResponseInfoSet(ServiceWorkerVersion* version) override; |
| 119 void OnErrorReported(ServiceWorkerVersion* version, | 120 void OnErrorReported(ServiceWorkerVersion* version, |
| 120 const base::string16& error_message, | 121 const base::string16& error_message, |
| 121 int line_number, | 122 int line_number, |
| 122 int column_number, | 123 int column_number, |
| 123 const GURL& source_url) override; | 124 const GURL& source_url) override; |
| 124 void OnReportConsoleMessage(ServiceWorkerVersion* version, | 125 void OnReportConsoleMessage(ServiceWorkerVersion* version, |
| 125 int source_identifier, | 126 int source_identifier, |
| 126 int message_level, | 127 int message_level, |
| 127 const base::string16& message, | 128 const base::string16& message, |
| 128 int line_number, | 129 int line_number, |
| (...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 253 scoped_refptr<ObserverListThreadSafe<ServiceWorkerContextObserver> > | 254 scoped_refptr<ObserverListThreadSafe<ServiceWorkerContextObserver> > |
| 254 observer_list_; | 255 observer_list_; |
| 255 base::WeakPtrFactory<ServiceWorkerContextCore> weak_factory_; | 256 base::WeakPtrFactory<ServiceWorkerContextCore> weak_factory_; |
| 256 | 257 |
| 257 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerContextCore); | 258 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerContextCore); |
| 258 }; | 259 }; |
| 259 | 260 |
| 260 } // namespace content | 261 } // namespace content |
| 261 | 262 |
| 262 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_CORE_H_ | 263 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_CORE_H_ |
| OLD | NEW |