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

Unified Diff: webkit/fileapi/file_system_quota_manager.cc

Issue 6609009: Remove FileSystemQuotaManager class (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: test fix Created 9 years, 10 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
« no previous file with comments | « webkit/fileapi/file_system_quota_manager.h ('k') | webkit/fileapi/file_system_quota_manager_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/fileapi/file_system_quota_manager.cc
diff --git a/webkit/fileapi/file_system_quota_manager.cc b/webkit/fileapi/file_system_quota_manager.cc
deleted file mode 100644
index 69ff70610ac866e467b8e0779eec240aca8c596b..0000000000000000000000000000000000000000
--- a/webkit/fileapi/file_system_quota_manager.cc
+++ /dev/null
@@ -1,38 +0,0 @@
-// Copyright (c) 2010 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "webkit/fileapi/file_system_quota_manager.h"
-
-#include "base/file_path.h"
-#include "base/file_util_proxy.h"
-#include "base/ref_counted.h"
-#include "base/scoped_callback_factory.h"
-#include "webkit/quota/special_storage_policy.h"
-
-namespace fileapi {
-
-const int64 FileSystemQuotaManager::kUnknownSize = -1;
-
-FileSystemQuotaManager::FileSystemQuotaManager(
- bool allow_file_access_from_files,
- bool unlimited_quota,
- quota::SpecialStoragePolicy* special_storage_policy)
- : allow_file_access_from_files_(allow_file_access_from_files),
- unlimited_quota_(unlimited_quota),
- special_storage_policy_(special_storage_policy) {
-}
-
-FileSystemQuotaManager::~FileSystemQuotaManager() {}
-
-bool FileSystemQuotaManager::CheckOriginQuota(const GURL& origin, int64) {
- // If allow-file-access-from-files flag is explicitly given and the scheme
- // is file, or if unlimited quota for this process was explicitly requested,
- // return true.
- return unlimited_quota_ ||
- (allow_file_access_from_files_ && origin.SchemeIsFile()) ||
- (special_storage_policy_.get() &&
- special_storage_policy_->IsStorageUnlimited(origin));
-}
-
-} // namespace fileapi
« no previous file with comments | « webkit/fileapi/file_system_quota_manager.h ('k') | webkit/fileapi/file_system_quota_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698