| 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..bb69c730c6a0fb09eaeb60cade802a62439d2edf
|
| --- /dev/null
|
| +++ b/content/browser/service_worker/service_worker_version.h
|
| @@ -0,0 +1,32 @@
|
| +// 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:
|
| + explicit ServiceWorkerVersion(
|
| + scoped_refptr<ServiceWorkerRegistration> registration);
|
| + ~ServiceWorkerVersion();
|
| +
|
| + private:
|
| + friend class base::RefCountedThreadSafe<ServiceWorkerRegistration>;
|
| +
|
| + scoped_refptr<ServiceWorkerRegistration> registration_;
|
| +
|
| + DISALLOW_COPY_AND_ASSIGN(ServiceWorkerVersion);
|
| +};
|
| +} // namespace content
|
| +#endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_VERSION_H_
|
|
|