| 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_registration.h" |
| 6 |
| 7 namespace content { |
| 8 |
| 9 ServiceWorkerRegistration::ServiceWorkerRegistration(const GURL& pattern, |
| 10 const GURL& script_url, |
| 11 int32 registration_id) |
| 12 : pattern_(pattern), |
| 13 script_url_(script_url), |
| 14 registration_id_(registration_id), |
| 15 is_shutdown_(true) {} |
| 16 |
| 17 ServiceWorkerRegistration::~ServiceWorkerRegistration() { Shutdown(); } |
| 18 |
| 19 void ServiceWorkerRegistration::Shutdown() { |
| 20 active_version_.reset(); |
| 21 in_waiting_version_.reset(); |
| 22 is_shutdown_ = true; |
| 23 } |
| 24 } // namespace content |
| OLD | NEW |