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

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

Issue 2351803002: Switching ExtensionSpecialStoragePolicy::IsStorageDurable to use DurableStoragePermissionContext. (Closed)
Patch Set: Switching IsStorageDurable() to use DurableStoragePermissionContext. Created 4 years, 2 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 31412c715993bedb4709985ed5e11616793c0333..1bab3a7a88943a9c9d82c614a44ad30b80e7f917 100644
--- a/chrome/browser/extensions/extension_special_storage_policy.h
+++ b/chrome/browser/extensions/extension_special_storage_policy.h
@@ -9,6 +9,7 @@
#include <string>
#include "base/synchronization/lock.h"
+#include "chrome/browser/profiles/profile.h"
#include "extensions/common/extension_set.h"
#include "storage/browser/quota/special_storage_policy.h"
#include "url/gurl.h"
@@ -30,8 +31,7 @@ class Extension;
// to determine which origins have these rights.
class ExtensionSpecialStoragePolicy : public storage::SpecialStoragePolicy {
public:
- explicit ExtensionSpecialStoragePolicy(
- content_settings::CookieSettings* cookie_settings);
+ explicit ExtensionSpecialStoragePolicy(Profile* profile);
// storage::SpecialStoragePolicy methods used by storage subsystems and the
// browsing data remover. These methods are safe to call on any thread.
@@ -94,7 +94,9 @@ class ExtensionSpecialStoragePolicy : public storage::SpecialStoragePolicy {
SpecialCollection file_handler_extensions_;
SpecialCollection isolated_extensions_;
SpecialCollection content_capabilities_unlimited_extensions_;
+
scoped_refptr<content_settings::CookieSettings> cookie_settings_;
+ Profile* profile_;
};
#endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SPECIAL_STORAGE_POLICY_H_

Powered by Google App Engine
This is Rietveld 408576698