summaryrefslogtreecommitdiffstats
path: root/chrome/browser/extensions/extension_special_storage_policy.h
diff options
context:
space:
mode:
authormarja@chromium.org <marja@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-08-19 17:07:05 +0000
committermarja@chromium.org <marja@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-08-19 17:07:05 +0000
commit7c5048cb78980caeb134eec8748ab892df2237fb (patch)
tree8e47680be239803476b42edc67ed7b2bcb0acb64 /chrome/browser/extensions/extension_special_storage_policy.h
parent02c16bd0c8331530943c35ab08f4c805bb56feba (diff)
downloadchromium_src-7c5048cb78980caeb134eec8748ab892df2237fb.zip
chromium_src-7c5048cb78980caeb134eec8748ab892df2237fb.tar.gz
chromium_src-7c5048cb78980caeb134eec8748ab892df2237fb.tar.bz2
Session-only local storage cleared on exit.
BUG=47049 TEST=DOMStorageTest.SessionOnly Review URL: http://codereview.chromium.org/7619010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@97469 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/extensions/extension_special_storage_policy.h')
-rw-r--r--chrome/browser/extensions/extension_special_storage_policy.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/chrome/browser/extensions/extension_special_storage_policy.h b/chrome/browser/extensions/extension_special_storage_policy.h
index b31407c..8ce9d30 100644
--- a/chrome/browser/extensions/extension_special_storage_policy.h
+++ b/chrome/browser/extensions/extension_special_storage_policy.h
@@ -14,18 +14,21 @@
#include "webkit/quota/special_storage_policy.h"
class Extension;
+class HostContentSettingsMap;
// Special rights are granted to 'extensions' and 'applications'. The
// storage subsystems and the browsing data remover query this interface
// to determine which origins have these rights.
class ExtensionSpecialStoragePolicy : public quota::SpecialStoragePolicy {
public:
- ExtensionSpecialStoragePolicy();
+ explicit ExtensionSpecialStoragePolicy(
+ HostContentSettingsMap* host_content_settings_map);
// SpecialStoragePolicy methods used by storage subsystems and the browsing
// data remover. These methods are safe to call on any thread.
virtual bool IsStorageProtected(const GURL& origin);
virtual bool IsStorageUnlimited(const GURL& origin);
+ virtual bool IsStorageSessionOnly(const GURL& origin);
virtual bool IsFileHandler(const std::string& extension_id);
// Methods used by the ExtensionService to populate this class.
@@ -61,6 +64,7 @@ class ExtensionSpecialStoragePolicy : public quota::SpecialStoragePolicy {
SpecialCollection protected_apps_;
SpecialCollection unlimited_extensions_;
SpecialCollection file_handler_extensions_;
+ scoped_refptr<HostContentSettingsMap> host_content_settings_map_;
};
#endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SPECIAL_STORAGE_POLICY_H_