| 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 244 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 255 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerVersionTest, ScheduleStopWorker); | 255 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerVersionTest, ScheduleStopWorker); |
| 256 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerVersionTest, ListenerAvailability); | 256 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerVersionTest, ListenerAvailability); |
| 257 typedef ServiceWorkerVersion self; | 257 typedef ServiceWorkerVersion self; |
| 258 typedef std::map<ServiceWorkerProviderHost*, int> ControlleeMap; | 258 typedef std::map<ServiceWorkerProviderHost*, int> ControlleeMap; |
| 259 typedef IDMap<ServiceWorkerProviderHost> ControlleeByIDMap; | 259 typedef IDMap<ServiceWorkerProviderHost> ControlleeByIDMap; |
| 260 | 260 |
| 261 ~ServiceWorkerVersion() override; | 261 ~ServiceWorkerVersion() override; |
| 262 | 262 |
| 263 // EmbeddedWorkerInstance::Listener overrides: | 263 // EmbeddedWorkerInstance::Listener overrides: |
| 264 void OnStarted() override; | 264 void OnStarted() override; |
| 265 void OnStopped() override; | 265 void OnStopped(EmbeddedWorkerInstance::Status old_status) override; |
| 266 void OnReportException(const base::string16& error_message, | 266 void OnReportException(const base::string16& error_message, |
| 267 int line_number, | 267 int line_number, |
| 268 int column_number, | 268 int column_number, |
| 269 const GURL& source_url) override; | 269 const GURL& source_url) override; |
| 270 void OnReportConsoleMessage(int source_identifier, | 270 void OnReportConsoleMessage(int source_identifier, |
| 271 int message_level, | 271 int message_level, |
| 272 const base::string16& message, | 272 const base::string16& message, |
| 273 int line_number, | 273 int line_number, |
| 274 const GURL& source_url) override; | 274 const GURL& source_url) override; |
| 275 bool OnMessageReceived(const IPC::Message& message) override; | 275 bool OnMessageReceived(const IPC::Message& message) override; |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 336 bool is_doomed_; | 336 bool is_doomed_; |
| 337 | 337 |
| 338 base::WeakPtrFactory<ServiceWorkerVersion> weak_factory_; | 338 base::WeakPtrFactory<ServiceWorkerVersion> weak_factory_; |
| 339 | 339 |
| 340 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerVersion); | 340 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerVersion); |
| 341 }; | 341 }; |
| 342 | 342 |
| 343 } // namespace content | 343 } // namespace content |
| 344 | 344 |
| 345 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_VERSION_H_ | 345 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_VERSION_H_ |
| OLD | NEW |