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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "content/browser/service_worker/service_worker_version.h"
6
7 #include "content/browser/service_worker/service_worker_registration.h"
8
9 namespace content {
10
11 ServiceWorkerVersion::ServiceWorkerVersion(
12 ServiceWorkerRegistration* registration)
13 : is_shutdown_(false), registration_(registration) {}
14
15 ServiceWorkerVersion::~ServiceWorkerVersion() { DCHECK(is_shutdown_); }
16
17 void ServiceWorkerVersion::Shutdown() {
18 is_shutdown_ = true;
19 registration_ = NULL;
20 }
21
22 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698