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

Unified Diff: content/browser/appcache/appcache_storage_impl.cc

Issue 492873002: Collapse fileapi, webkit_blob, webkit_database, quota, and webkit_common namespaces into single sto… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix chromeos build Created 6 years, 4 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: content/browser/appcache/appcache_storage_impl.cc
diff --git a/content/browser/appcache/appcache_storage_impl.cc b/content/browser/appcache/appcache_storage_impl.cc
index beb60cdb48cf75c7ed4630cc20793dc623ac4930..59cc5817ec918b6c1321e2d3f2fc5e04cb7df067 100644
--- a/content/browser/appcache/appcache_storage_impl.cc
+++ b/content/browser/appcache/appcache_storage_impl.cc
@@ -73,7 +73,7 @@ bool DeleteGroupAndRelatedRecords(AppCacheDatabase* database,
// (|force_keep_session_state| is false), deletes session-only appcache data.
void ClearSessionOnlyOrigins(
AppCacheDatabase* database,
- scoped_refptr<quota::SpecialStoragePolicy> special_storage_policy,
+ scoped_refptr<storage::SpecialStoragePolicy> special_storage_policy,
bool force_keep_session_state) {
scoped_ptr<AppCacheDatabase> database_to_delete(database);
@@ -591,8 +591,9 @@ class AppCacheStorageImpl::StoreGroupAndCacheTask : public StoreOrLoadTask {
AppCache* newest_cache);
void GetQuotaThenSchedule();
- void OnQuotaCallback(
- quota::QuotaStatusCode status, int64 usage, int64 quota);
+ void OnQuotaCallback(storage::QuotaStatusCode status,
+ int64 usage,
+ int64 quota);
// DatabaseTask:
virtual void Run() OVERRIDE;
@@ -629,7 +630,7 @@ AppCacheStorageImpl::StoreGroupAndCacheTask::StoreGroupAndCacheTask(
}
void AppCacheStorageImpl::StoreGroupAndCacheTask::GetQuotaThenSchedule() {
- quota::QuotaManager* quota_manager = NULL;
+ storage::QuotaManager* quota_manager = NULL;
if (storage_->service()->quota_manager_proxy()) {
quota_manager =
storage_->service()->quota_manager_proxy()->quota_manager();
@@ -647,14 +648,17 @@ void AppCacheStorageImpl::StoreGroupAndCacheTask::GetQuotaThenSchedule() {
// We have to ask the quota manager for the value.
storage_->pending_quota_queries_.insert(this);
quota_manager->GetUsageAndQuota(
- group_record_.origin, quota::kStorageTypeTemporary,
+ group_record_.origin,
+ storage::kStorageTypeTemporary,
base::Bind(&StoreGroupAndCacheTask::OnQuotaCallback, this));
}
void AppCacheStorageImpl::StoreGroupAndCacheTask::OnQuotaCallback(
- quota::QuotaStatusCode status, int64 usage, int64 quota) {
+ storage::QuotaStatusCode status,
+ int64 usage,
+ int64 quota) {
if (storage_) {
- if (status == quota::kQuotaStatusOk)
+ if (status == storage::kQuotaStatusOk)
space_available_ = std::max(static_cast<int64>(0), quota - usage);
else
space_available_ = 0;
« no previous file with comments | « content/browser/appcache/appcache_storage.cc ('k') | content/browser/appcache/appcache_storage_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698