| 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 <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| 11 #include "base/callback.h" | 11 #include "base/callback.h" |
| 12 #include "base/gtest_prod_util.h" | 12 #include "base/gtest_prod_util.h" |
| 13 #include "base/memory/ref_counted.h" | 13 #include "base/memory/ref_counted.h" |
| 14 #include "base/memory/scoped_ptr.h" | 14 #include "base/memory/scoped_ptr.h" |
| 15 #include "content/browser/service_worker/embedded_worker_instance.h" | 15 #include "content/browser/service_worker/embedded_worker_instance.h" |
| 16 #include "content/common/content_export.h" | 16 #include "content/common/content_export.h" |
| 17 #include "content/common/service_worker/service_worker_status_code.h" | 17 #include "content/common/service_worker/service_worker_status_code.h" |
| 18 | 18 |
| 19 class GURL; | 19 class GURL; |
| 20 | 20 |
| 21 namespace content { | 21 namespace content { |
| 22 | 22 |
| 23 class EmbeddedWorkerRegistry; | 23 class EmbeddedWorkerRegistry; |
| 24 class ServiceWorkerProviderHost; | |
| 25 class ServiceWorkerRegistration; | 24 class ServiceWorkerRegistration; |
| 26 struct ServiceWorkerFetchRequest; | 25 struct ServiceWorkerFetchRequest; |
| 27 | 26 |
| 28 // This class corresponds to a specific version of a ServiceWorker | 27 // This class corresponds to a specific version of a ServiceWorker |
| 29 // script for a given pattern. When a script is upgraded, there may be | 28 // script for a given pattern. When a script is upgraded, there may be |
| 30 // more than one ServiceWorkerVersion "running" at a time, but only | 29 // more than one ServiceWorkerVersion "running" at a time, but only |
| 31 // one of them is active. This class connects the actual script with a | 30 // one of them is active. This class connects the actual script with a |
| 32 // running worker. | 31 // running worker. |
| 33 // Instances of this class are in one of two install states: | 32 // Instances of this class are in one of two install states: |
| 34 // - Pending: The script is in the process of being installed. There | 33 // - Pending: The script is in the process of being installed. There |
| (...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 124 | 123 |
| 125 std::vector<StatusCallback> start_callbacks_; | 124 std::vector<StatusCallback> start_callbacks_; |
| 126 std::vector<StatusCallback> stop_callbacks_; | 125 std::vector<StatusCallback> stop_callbacks_; |
| 127 | 126 |
| 128 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerVersion); | 127 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerVersion); |
| 129 }; | 128 }; |
| 130 | 129 |
| 131 } // namespace content | 130 } // namespace content |
| 132 | 131 |
| 133 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_VERSION_H_ | 132 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_VERSION_H_ |
| OLD | NEW |