| Index: content/browser/service_worker/service_worker_registration.cc
|
| diff --git a/content/browser/service_worker/service_worker_registration.cc b/content/browser/service_worker/service_worker_registration.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..a02b196789e18857aa81b2ab7544cbc438be6fe4
|
| --- /dev/null
|
| +++ b/content/browser/service_worker/service_worker_registration.cc
|
| @@ -0,0 +1,24 @@
|
| +// 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_registration.h"
|
| +
|
| +namespace content {
|
| +
|
| +ServiceWorkerRegistration::ServiceWorkerRegistration(const GURL& pattern,
|
| + const GURL& script_url,
|
| + int64 registration_id)
|
| + : pattern_(pattern),
|
| + script_url_(script_url),
|
| + registration_id_(registration_id),
|
| + is_shutdown_(true) {}
|
| +
|
| +ServiceWorkerRegistration::~ServiceWorkerRegistration() { Shutdown(); }
|
| +
|
| +void ServiceWorkerRegistration::Shutdown() {
|
| + active_version_.reset();
|
| + in_waiting_version_.reset();
|
| + is_shutdown_ = true;
|
| +}
|
| +} // namespace content
|
|
|