Index: content/browser/service_worker/service_worker_version.cc |
diff --git a/content/browser/service_worker/service_worker_version.cc b/content/browser/service_worker/service_worker_version.cc |
new file mode 100644 |
index 0000000000000000000000000000000000000000..1499211b8d1f21ea1c2fe77212062df5c5a4e01d |
--- /dev/null |
+++ b/content/browser/service_worker/service_worker_version.cc |
@@ -0,0 +1,22 @@ |
+// Copyright (c) 2013 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#include "content/browser/service_worker/service_worker_version.h" |
+ |
+#include "content/browser/service_worker/service_worker_registration.h" |
+ |
+namespace content { |
+ |
+ServiceWorkerVersion::ServiceWorkerVersion( |
+ scoped_refptr<ServiceWorkerRegistration> registration) |
+ : is_shutdown_(false), registration_(registration) {} |
+ |
+ServiceWorkerVersion::~ServiceWorkerVersion() { DCHECK(is_shutdown_); } |
+ |
+void ServiceWorkerVersion::Shutdown() { |
+ is_shutdown_ = true; |
+ registration_ = NULL; |
+} |
+ |
+} // namespace content |