| 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 <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 242 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerVersionTest, ScheduleStopWorker); | 242 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerVersionTest, ScheduleStopWorker); |
| 243 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerVersionTest, ListenerAvailability); | 243 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerVersionTest, ListenerAvailability); |
| 244 typedef ServiceWorkerVersion self; | 244 typedef ServiceWorkerVersion self; |
| 245 typedef std::map<ServiceWorkerProviderHost*, int> ControlleeMap; | 245 typedef std::map<ServiceWorkerProviderHost*, int> ControlleeMap; |
| 246 typedef IDMap<ServiceWorkerProviderHost> ControlleeByIDMap; | 246 typedef IDMap<ServiceWorkerProviderHost> ControlleeByIDMap; |
| 247 | 247 |
| 248 ~ServiceWorkerVersion() override; | 248 ~ServiceWorkerVersion() override; |
| 249 | 249 |
| 250 // EmbeddedWorkerInstance::Listener overrides: | 250 // EmbeddedWorkerInstance::Listener overrides: |
| 251 void OnStarted() override; | 251 void OnStarted() override; |
| 252 void OnStopped() override; | 252 void OnStopped(EmbeddedWorkerInstance::Status old_status) override; |
| 253 void OnReportException(const base::string16& error_message, | 253 void OnReportException(const base::string16& error_message, |
| 254 int line_number, | 254 int line_number, |
| 255 int column_number, | 255 int column_number, |
| 256 const GURL& source_url) override; | 256 const GURL& source_url) override; |
| 257 void OnReportConsoleMessage(int source_identifier, | 257 void OnReportConsoleMessage(int source_identifier, |
| 258 int message_level, | 258 int message_level, |
| 259 const base::string16& message, | 259 const base::string16& message, |
| 260 int line_number, | 260 int line_number, |
| 261 const GURL& source_url) override; | 261 const GURL& source_url) override; |
| 262 bool OnMessageReceived(const IPC::Message& message) override; | 262 bool OnMessageReceived(const IPC::Message& message) override; |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 315 bool is_doomed_; | 315 bool is_doomed_; |
| 316 | 316 |
| 317 base::WeakPtrFactory<ServiceWorkerVersion> weak_factory_; | 317 base::WeakPtrFactory<ServiceWorkerVersion> weak_factory_; |
| 318 | 318 |
| 319 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerVersion); | 319 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerVersion); |
| 320 }; | 320 }; |
| 321 | 321 |
| 322 } // namespace content | 322 } // namespace content |
| 323 | 323 |
| 324 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_VERSION_H_ | 324 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_VERSION_H_ |
| OLD | NEW |