| Index: content/browser/service_worker/service_worker_context.h
|
| diff --git a/content/browser/service_worker/service_worker_context.h b/content/browser/service_worker/service_worker_context.h
|
| index f69599ca4c12a7f7cfddab0cc14c5d4c494afede..ce8bad90c14e9c3ae1ce483b3de7d3ede9f9be5a 100644
|
| --- a/content/browser/service_worker/service_worker_context.h
|
| +++ b/content/browser/service_worker/service_worker_context.h
|
| @@ -5,43 +5,18 @@
|
| #ifndef CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_H_
|
| #define CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_H_
|
|
|
| -#include "base/files/file_path.h"
|
| -#include "base/memory/ref_counted.h"
|
| -#include "content/common/content_export.h"
|
| -
|
| -namespace base {
|
| -class FilePath;
|
| -}
|
| -
|
| -namespace quota {
|
| -class QuotaManagerProxy;
|
| -}
|
| -
|
| namespace content {
|
|
|
| -// This class manages metadata associated with all service workers,
|
| -// including:
|
| -// - persistent storage of pattern -> service worker scripts
|
| -// - initialization and initial installation of service workers
|
| -// - dispatching of non-fetch events to service workers
|
| -class CONTENT_EXPORT ServiceWorkerContext
|
| - : public base::RefCountedThreadSafe<ServiceWorkerContext> {
|
| +// Represents the per-BrowserContext ServiceWorker data.
|
| +class ServiceWorkerContext {
|
| public:
|
| - // This is owned by the StoragePartition, which will supply it with
|
| - // the local path on disk.
|
| - ServiceWorkerContext(const base::FilePath& path,
|
| - quota::QuotaManagerProxy* quota_manager_proxy);
|
| -
|
| - bool IsEnabled();
|
| -
|
| - private:
|
| - friend class base::RefCountedThreadSafe<ServiceWorkerContext>;
|
| - ~ServiceWorkerContext();
|
|
|
| - scoped_refptr<quota::QuotaManagerProxy> quota_manager_proxy_;
|
| - base::FilePath path_;
|
| + // TODO(michaeln): This class is a place holder for content/public api
|
| + // which will come later. Promote this class when we get there.
|
|
|
| - DISALLOW_COPY_AND_ASSIGN(ServiceWorkerContext);
|
| + protected:
|
| + ServiceWorkerContext() {}
|
| + virtual ~ServiceWorkerContext() {}
|
| };
|
|
|
| } // namespace content
|
|
|