Chromium Code Reviews| Index: content/browser/service_worker/service_worker_version.h |
| diff --git a/content/browser/service_worker/service_worker_version.h b/content/browser/service_worker/service_worker_version.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..4f3c0ee1e4599e5f81ac4d517cae7777233839f4 |
| --- /dev/null |
| +++ b/content/browser/service_worker/service_worker_version.h |
| @@ -0,0 +1,31 @@ |
| +// Copyright (c) 2013 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_VERSION_H_ |
| +#define CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_VERSION_H_ |
| + |
| +#include "base/basictypes.h" |
| +#include "base/memory/ref_counted.h" |
| + |
| +class GURL; |
| + |
| +namespace content { |
| + |
| +class ServiceWorkerRegistration; |
| + |
| +// This class acts as a persistent instance |
| +class ServiceWorkerVersion { |
| + public: |
| + ServiceWorkerVersion(scoped_refptr<ServiceWorkerRegistration> registration); |
| + ~ServiceWorkerVersion(); |
| + |
| + private: |
| + friend class base::RefCountedThreadSafe<ServiceWorkerRegistration>; |
| + |
| + scoped_refptr<ServiceWorkerRegistration> registration_; |
|
michaeln
2013/11/11 23:48:24
Hmmm... does this cause a reference cycle? Reg own
|
| + |
| + DISALLOW_COPY_AND_ASSIGN(ServiceWorkerVersion); |
| +}; |
| +} |
| +#endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_VERSION_H_ |