OLD | NEW |
(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 |
OLD | NEW |