summaryrefslogtreecommitdiffstats
path: root/webkit/fileapi/file_system_context.cc
diff options
context:
space:
mode:
Diffstat (limited to 'webkit/fileapi/file_system_context.cc')
-rw-r--r--webkit/fileapi/file_system_context.cc13
1 files changed, 2 insertions, 11 deletions
diff --git a/webkit/fileapi/file_system_context.cc b/webkit/fileapi/file_system_context.cc
index 5007fff..6cb97e9 100644
--- a/webkit/fileapi/file_system_context.cc
+++ b/webkit/fileapi/file_system_context.cc
@@ -15,6 +15,7 @@ namespace fileapi {
FileSystemContext::FileSystemContext(
scoped_refptr<base::MessageLoopProxy> file_message_loop,
scoped_refptr<base::MessageLoopProxy> io_message_loop,
+ scoped_refptr<quota::SpecialStoragePolicy> special_storage_policy,
const FilePath& profile_path,
bool is_incognito,
bool allow_file_access,
@@ -24,7 +25,7 @@ FileSystemContext::FileSystemContext(
path_manager_(new FileSystemPathManager(
file_message_loop, profile_path, is_incognito, allow_file_access)),
quota_manager_(new FileSystemQuotaManager(
- allow_file_access, unlimited_quota)),
+ allow_file_access, unlimited_quota, special_storage_policy)),
usage_tracker_(new FileSystemUsageTracker(
file_message_loop, profile_path, is_incognito)) {
}
@@ -45,16 +46,6 @@ void FileSystemContext::DeleteDataForOriginOnFileThread(
file_util::Delete(path_for_origin, true /* recursive */);
}
-void FileSystemContext::SetOriginQuotaUnlimited(const GURL& url) {
- DCHECK(io_message_loop_->BelongsToCurrentThread());
- quota_manager()->SetOriginQuotaUnlimited(url);
-}
-
-void FileSystemContext::ResetOriginQuotaUnlimited(const GURL& url) {
- DCHECK(io_message_loop_->BelongsToCurrentThread());
- quota_manager()->ResetOriginQuotaUnlimited(url);
-}
-
void FileSystemContext::DeleteOnCorrectThread() const {
if (!io_message_loop_->BelongsToCurrentThread()) {
io_message_loop_->DeleteSoon(FROM_HERE, this);