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

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: Remove some stray #includes 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 explicit ServiceWorkerVersion(
21 scoped_refptr<ServiceWorkerRegistration> registration);
22 ~ServiceWorkerVersion();
23
24 private:
25 friend class base::RefCountedThreadSafe<ServiceWorkerRegistration>;
26
27 scoped_refptr<ServiceWorkerRegistration> registration_;
28
29 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerVersion);
30 };
31 } // namespace content
32 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_VERSION_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698