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

Unified Diff: storage/browser/quota/special_storage_policy.h

Issue 1164073005: Allow script to request durable storage permission (chrome side) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebased onto content setting patch Created 5 years, 6 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: storage/browser/quota/special_storage_policy.h
diff --git a/storage/browser/quota/special_storage_policy.h b/storage/browser/quota/special_storage_policy.h
index d164e94281229c3ef7568d1d875f16a821903c83..5c865e2d308992ebe3581c8153f2c7ac02c58de1 100644
--- a/storage/browser/quota/special_storage_policy.h
+++ b/storage/browser/quota/special_storage_policy.h
@@ -62,6 +62,8 @@ class STORAGE_EXPORT SpecialStoragePolicy
// Returns true if some origins are only allowed session-only storage.
virtual bool HasSessionOnlyOrigins() = 0;
+ virtual bool IsStorageDurable(const GURL& origin) = 0;
+
// Adds/removes an observer, the policy does not take
// ownership of the observer. Should only be called on the IO thread.
void AddObserver(Observer* observer);
« content/renderer/durable_dispatcher.cc ('K') | « storage/browser/quota/quota_database.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698