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

Side by Side Diff: content/browser/service_worker/service_worker_registration.cc

Issue 62203007: Implement memory-persistent registration (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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_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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698