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

Side by Side Diff: content/browser/service_worker/service_worker_version.h

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 #ifndef CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_VERSION_H_
6 #define CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_VERSION_H_
7
8 #include "base/basictypes.h"
9 #include "base/memory/ref_counted.h"
10
11 class GURL;
12
13 namespace content {
14
15 class ServiceWorkerRegistration;
16
17 // This class acts as a persistent instance
18 class ServiceWorkerVersion {
19 public:
20 ServiceWorkerVersion(scoped_refptr<ServiceWorkerRegistration> registration);
21 ~ServiceWorkerVersion();
22
23 private:
24 friend class base::RefCountedThreadSafe<ServiceWorkerRegistration>;
25
26 scoped_refptr<ServiceWorkerRegistration> registration_;
michaeln 2013/11/11 23:48:24 Hmmm... does this cause a reference cycle? Reg own
27
28 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerVersion);
29 };
30 }
31 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_VERSION_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698