Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(934)

Unified Diff: content/browser/service_worker/service_worker_version.cc

Issue 70683002: Stub out ServiceWorkerRegistration and Version classes (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Switch all parameters to raw pointers Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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..7905327d9e68193bf6521fc6893b5d6e6d7a69d1
--- /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(
+ ServiceWorkerRegistration* registration)
+ : is_shutdown_(false), registration_(registration) {}
+
+ServiceWorkerVersion::~ServiceWorkerVersion() { DCHECK(is_shutdown_); }
+
+void ServiceWorkerVersion::Shutdown() {
+ is_shutdown_ = true;
+ registration_ = NULL;
+}
+
+} // namespace content

Powered by Google App Engine
This is Rietveld 408576698