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

Unified Diff: chrome/browser/extensions/extension_special_storage_policy.h

Issue 10375021: Move Extension into extensions namespace (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Take 6 Created 8 years, 7 months 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: chrome/browser/extensions/extension_special_storage_policy.h
diff --git a/chrome/browser/extensions/extension_special_storage_policy.h b/chrome/browser/extensions/extension_special_storage_policy.h
index 22a6c98f0bd1284b90bb2337af2081be4b2add48..c2c86658029d79c5eaba6d6285026365ac5e9a13 100644
--- a/chrome/browser/extensions/extension_special_storage_policy.h
+++ b/chrome/browser/extensions/extension_special_storage_policy.h
@@ -14,7 +14,10 @@
#include "webkit/quota/special_storage_policy.h"
class CookieSettings;
+
+namespace extensions {
class Extension;
+}
// Special rights are granted to 'extensions' and 'applications'. The
// storage subsystems and the browsing data remover query this interface
@@ -32,8 +35,8 @@ class ExtensionSpecialStoragePolicy : public quota::SpecialStoragePolicy {
virtual bool HasSessionOnlyOrigins() OVERRIDE;
// Methods used by the ExtensionService to populate this class.
- void GrantRightsForExtension(const Extension* extension);
- void RevokeRightsForExtension(const Extension* extension);
+ void GrantRightsForExtension(const extensions::Extension* extension);
+ void RevokeRightsForExtension(const extensions::Extension* extension);
void RevokeRightsForAllExtensions();
protected:
@@ -47,13 +50,14 @@ class ExtensionSpecialStoragePolicy : public quota::SpecialStoragePolicy {
bool Contains(const GURL& origin);
bool ContainsExtension(const std::string& extension_id);
- void Add(const Extension* extension);
- void Remove(const Extension* extension);
+ void Add(const extensions::Extension* extension);
+ void Remove(const extensions::Extension* extension);
void Clear();
private:
typedef std::map<GURL, bool> CachedResults;
- typedef std::map<std::string, scoped_refptr<const Extension> > Extensions;
+ typedef std::map<std::string, scoped_refptr<const extensions::Extension> >
+ Extensions;
Extensions extensions_;
CachedResults cached_results_;
};
« no previous file with comments | « chrome/browser/extensions/extension_sorting_unittest.cc ('k') | chrome/browser/extensions/extension_special_storage_policy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698