summaryrefslogtreecommitdiffstats
path: root/webkit/quota
diff options
context:
space:
mode:
Diffstat (limited to 'webkit/quota')
-rw-r--r--webkit/quota/special_storage_policy.cc13
-rw-r--r--webkit/quota/special_storage_policy.h6
-rw-r--r--webkit/quota/webkit_quota.gypi27
3 files changed, 46 insertions, 0 deletions
diff --git a/webkit/quota/special_storage_policy.cc b/webkit/quota/special_storage_policy.cc
new file mode 100644
index 0000000..c428346
--- /dev/null
+++ b/webkit/quota/special_storage_policy.cc
@@ -0,0 +1,13 @@
+// Copyright (c) 2011 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.
+
+#include "webkit/quota/special_storage_policy.h"
+
+namespace quota {
+
+SpecialStoragePolicy::SpecialStoragePolicy() {}
+
+SpecialStoragePolicy::~SpecialStoragePolicy() {}
+
+} // namespace quota
diff --git a/webkit/quota/special_storage_policy.h b/webkit/quota/special_storage_policy.h
index 1f17dac..90526f0 100644
--- a/webkit/quota/special_storage_policy.h
+++ b/webkit/quota/special_storage_policy.h
@@ -19,11 +19,17 @@ namespace quota {
class SpecialStoragePolicy
: public base::RefCountedThreadSafe<SpecialStoragePolicy> {
public:
+ SpecialStoragePolicy();
+
// Protected storage is not subject to removal by the browsing data remover.
virtual bool IsStorageProtected(const GURL& origin) = 0;
// Unlimited storage is not subject to 'quotas'.
virtual bool IsStorageUnlimited(const GURL& origin) = 0;
+
+ protected:
+ friend class base::RefCountedThreadSafe<SpecialStoragePolicy>;
+ virtual ~SpecialStoragePolicy();
};
} // namespace quota
diff --git a/webkit/quota/webkit_quota.gypi b/webkit/quota/webkit_quota.gypi
new file mode 100644
index 0000000..b738d43
--- /dev/null
+++ b/webkit/quota/webkit_quota.gypi
@@ -0,0 +1,27 @@
+# Copyright (c) 2011 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.
+
+{
+ 'targets': [
+ {
+ 'target_name': 'quota',
+ 'type': '<(library)',
+ 'msvs_guid': '36A9AAD2-10DD-42CF-BF51-3CC79D26FCB4',
+ 'dependencies': [
+ '<(DEPTH)/base/base.gyp:base',
+ ],
+ 'sources': [
+ 'special_storage_policy.cc',
+ 'special_storage_policy.h',
+ ],
+ 'conditions': [
+ ['inside_chromium_build==0', {
+ 'dependencies': [
+ '<(DEPTH)/webkit/support/setup_third_party.gyp:third_party_headers',
+ ],
+ }],
+ ],
+ },
+ ],
+}