Chromium Code Reviews| Index: content/browser/service_worker/service_worker_context_core.h |
| diff --git a/content/browser/service_worker/service_worker_context_core.h b/content/browser/service_worker/service_worker_context_core.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..9ce21daa980eb96005a165010ad09216f5154962 |
| --- /dev/null |
| +++ b/content/browser/service_worker/service_worker_context_core.h |
| @@ -0,0 +1,40 @@ |
| +// Copyright 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_CONTEXT_CORE_H_ |
| +#define CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_CORE_H_ |
| + |
| +#include "base/files/file_path.h" |
| +#include "base/memory/weak_ptr.h" |
| + |
| +namespace base { |
| +class FilePath; |
| +} |
| + |
| +namespace quota { |
| +class QuotaManagerProxy; |
| +} |
| + |
| +namespace content { |
| + |
| +// This class manages data associated with service workers. |
| +// The class is single threaded and should only be used on the IO thread. |
| +// In chromium, there is one instance per storagepartition. This class |
| +// is the root of the containment hierarchy for service worker data |
| +// associated with a particular partition. |
| +class ServiceWorkerContextCore |
| + : public base::SupportsWeakPtr<ServiceWorkerContextCore> { |
|
kinuko
2013/11/07 03:02:59
We're intermittently having 'kill SupportsWeakPtr'
michaeln
2013/11/07 23:24:53
Was just reading thru one of those threads. I'm pi
kinuko
2013/11/08 02:08:02
We can also take destruction observer pattern or p
michaeln
2013/11/09 00:24:00
If we ever have the need to observe destruction an
|
| + public: |
| + ServiceWorkerContextCore(const base::FilePath& user_data_directory, |
| + quota::QuotaManagerProxy* quota_manager_proxy); |
| + ~ServiceWorkerContextCore(); |
| + |
| + private: |
| + scoped_refptr<quota::QuotaManagerProxy> quota_manager_proxy_; |
| + base::FilePath path_; |
| +}; |
| + |
| +} // namespace content |
| + |
| +#endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_CORE_H_ |