 Chromium Code Reviews
 Chromium Code Reviews Issue 62203007:
  Implement memory-persistent registration  (Closed) 
  Base URL: svn://svn.chromium.org/chrome/trunk/src
    
  
    Issue 62203007:
  Implement memory-persistent registration  (Closed) 
  Base URL: svn://svn.chromium.org/chrome/trunk/src| 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 #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_ | |
| OLD | NEW |