class CookieSettings;
+namespace content {
+class BrowserContext;
+}
+
namespace extensions {
class Extension;
}
// storage::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) OVERRIDE;
- virtual bool IsStorageUnlimited(const GURL& origin) OVERRIDE;
- virtual bool IsStorageSessionOnly(const GURL& origin) OVERRIDE;
- virtual bool CanQueryDiskSize(const GURL& origin) OVERRIDE;
- virtual bool IsFileHandler(const std::string& extension_id) OVERRIDE;
- virtual bool HasIsolatedStorage(const GURL& origin) OVERRIDE;
- virtual bool HasSessionOnlyOrigins() OVERRIDE;
+ bool IsStorageProtected(const GURL& origin) override;
+ bool IsStorageUnlimited(const GURL& origin) override;
+ bool IsStorageSessionOnly(const GURL& origin) override;
+ bool CanQueryDiskSize(const GURL& origin) override;
+ bool IsFileHandler(const std::string& extension_id) override;
+ bool HasIsolatedStorage(const GURL& origin) override;
+ bool HasSessionOnlyOrigins() override;
// Methods used by the ExtensionService to populate this class.
- void GrantRightsForExtension(const extensions::Extension* extension);
+ void GrantRightsForExtension(const extensions::Extension* extension,
+ content::BrowserContext* browser_context);
void RevokeRightsForExtension(const extensions::Extension* extension);
void RevokeRightsForAllExtensions();
const GURL& origin);
protected:
- virtual ~ExtensionSpecialStoragePolicy();
+ ~ExtensionSpecialStoragePolicy() override;
private:
class SpecialCollection {