Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(859)

Unified Diff: content/browser/service_worker/service_worker_context_core.h

Issue 61023005: service worker scaffolding (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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..dbfdea3e837716970d7663c0039aff1590e820dc
--- /dev/null
+++ b/content/browser/service_worker/service_worker_context_core.h
@@ -0,0 +1,44 @@
+// 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"
+#include "content/common/content_export.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 CONTENT_EXPORT ServiceWorkerContextCore
+ : NON_EXPORTED_BASE(
+ public base::SupportsWeakPtr<ServiceWorkerContextCore>) {
+ public:
+ ServiceWorkerContextCore(const base::FilePath& user_data_directory,
kinuko 2013/11/09 09:39:56 can you comment that giving empty user_data_direct
michaeln 2013/11/11 16:40:25 Done.
+ quota::QuotaManagerProxy* quota_manager_proxy);
+ ~ServiceWorkerContextCore();
+
+ bool IsEnabled();
+
+ private:
+ scoped_refptr<quota::QuotaManagerProxy> quota_manager_proxy_;
+ base::FilePath path_;
+};
+
+} // namespace content
+
+#endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_CORE_H_

Powered by Google App Engine
This is Rietveld 408576698