| 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 <set> | 9 #include <set> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 class HttpResponseInfo; | 42 class HttpResponseInfo; |
| 43 } | 43 } |
| 44 | 44 |
| 45 namespace content { | 45 namespace content { |
| 46 | 46 |
| 47 class EmbeddedWorkerRegistry; | 47 class EmbeddedWorkerRegistry; |
| 48 class ServiceWorkerContextCore; | 48 class ServiceWorkerContextCore; |
| 49 class ServiceWorkerProviderHost; | 49 class ServiceWorkerProviderHost; |
| 50 class ServiceWorkerRegistration; | 50 class ServiceWorkerRegistration; |
| 51 class ServiceWorkerURLRequestJob; | 51 class ServiceWorkerURLRequestJob; |
| 52 class ServiceWorkerVersionInfo; | |
| 53 struct NavigatorConnectClient; | 52 struct NavigatorConnectClient; |
| 54 struct PlatformNotificationData; | 53 struct PlatformNotificationData; |
| 55 struct ServiceWorkerClientInfo; | 54 struct ServiceWorkerClientInfo; |
| 55 struct ServiceWorkerVersionInfo; |
| 56 struct TransferredMessagePort; | 56 struct TransferredMessagePort; |
| 57 | 57 |
| 58 // This class corresponds to a specific version of a ServiceWorker | 58 // This class corresponds to a specific version of a ServiceWorker |
| 59 // script for a given pattern. When a script is upgraded, there may be | 59 // script for a given pattern. When a script is upgraded, there may be |
| 60 // more than one ServiceWorkerVersion "running" at a time, but only | 60 // more than one ServiceWorkerVersion "running" at a time, but only |
| 61 // one of them is activated. This class connects the actual script with a | 61 // one of them is activated. This class connects the actual script with a |
| 62 // running worker. | 62 // running worker. |
| 63 class CONTENT_EXPORT ServiceWorkerVersion | 63 class CONTENT_EXPORT ServiceWorkerVersion |
| 64 : NON_EXPORTED_BASE(public base::RefCounted<ServiceWorkerVersion>), | 64 : NON_EXPORTED_BASE(public base::RefCounted<ServiceWorkerVersion>), |
| 65 public EmbeddedWorkerInstance::Listener { | 65 public EmbeddedWorkerInstance::Listener { |
| (...skipping 410 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 476 scoped_ptr<net::HttpResponseInfo> main_script_http_info_; | 476 scoped_ptr<net::HttpResponseInfo> main_script_http_info_; |
| 477 | 477 |
| 478 base::WeakPtrFactory<ServiceWorkerVersion> weak_factory_; | 478 base::WeakPtrFactory<ServiceWorkerVersion> weak_factory_; |
| 479 | 479 |
| 480 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerVersion); | 480 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerVersion); |
| 481 }; | 481 }; |
| 482 | 482 |
| 483 } // namespace content | 483 } // namespace content |
| 484 | 484 |
| 485 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_VERSION_H_ | 485 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_VERSION_H_ |
| OLD | NEW |