Index: content/browser/service_worker/service_worker_quota_client.h |
diff --git a/content/browser/service_worker/service_worker_quota_client.h b/content/browser/service_worker/service_worker_quota_client.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..efaec8fe92a3a224d648eef0923a01214210aa9e |
--- /dev/null |
+++ b/content/browser/service_worker/service_worker_quota_client.h |
@@ -0,0 +1,48 @@ |
+// Copyright (c) 2014 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_QUOTA_CLIENT_H_ |
+#define CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_QUOTA_CLIENT_H_ |
+ |
+#include "storage/browser/quota/quota_client.h" |
jsbell
2014/10/08 19:26:41
nit: include order
dmurph
2014/10/11 00:02:26
Done.
|
+#include "content/common/content_export.h" |
+ |
+namespace content { |
+class ServiceWorkerContextWrapper; |
+ |
+class ServiceWorkerQuotaClient : public storage::QuotaClient { |
+ public: |
+ virtual ~ServiceWorkerQuotaClient(); |
+ |
+ |
jsbell
2014/10/08 19:26:41
nit: remove extra blank line
dmurph
2014/10/11 00:02:26
Done.
|
+ // QuotaClient method overrides |
+ virtual ID id() const OVERRIDE; |
jsbell
2014/10/08 19:26:41
nit: 'OVERRIDE' -> 'override'
dmurph
2014/10/11 00:02:26
Done.
|
+ virtual void OnQuotaManagerDestroyed() OVERRIDE; |
+ virtual void GetOriginUsage(const GURL& origin, |
+ storage::StorageType type, |
+ const GetUsageCallback& callback) OVERRIDE; |
+ virtual void GetOriginsForType(storage::StorageType type, |
+ const GetOriginsCallback& callback) OVERRIDE; |
+ virtual void GetOriginsForHost(storage::StorageType type, |
+ const std::string& host, |
+ const GetOriginsCallback& callback) OVERRIDE; |
+ virtual void DeleteOriginData(const GURL& origin, |
+ storage::StorageType type, |
+ const DeletionCallback& callback) OVERRIDE; |
+ virtual bool DoesSupport(storage::StorageType type) const OVERRIDE; |
+ |
+ private: |
+ friend class content::ServiceWorkerContextWrapper; |
michaeln
2014/10/08 23:09:15
is the content:: qualifier needed?
dmurph
2014/10/11 00:02:26
Done.
|
+ |
+ CONTENT_EXPORT |
+ explicit ServiceWorkerQuotaClient(ServiceWorkerContextWrapper* context); |
+ |
+ ServiceWorkerContextWrapper* context_; |
+ |
+ DISALLOW_COPY_AND_ASSIGN(ServiceWorkerQuotaClient); |
+}; |
+ |
+} // namespace content |
+ |
+#endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_QUOTA_CLIENT_H_ |