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

Unified Diff: content/child/quota_dispatcher.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
« no previous file with comments | « content/child/quota_dispatcher.h ('k') | content/child/web_database_observer_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/quota_dispatcher.cc
diff --git a/content/child/quota_dispatcher.cc b/content/child/quota_dispatcher.cc
index 7f47d66219976237e05b515ea3fda73d1968d753..51d0007d14aa7835d1c22f8913479a2b2660dc0f 100644
--- a/content/child/quota_dispatcher.cc
+++ b/content/child/quota_dispatcher.cc
@@ -19,8 +19,8 @@
using blink::WebStorageQuotaCallbacks;
using blink::WebStorageQuotaError;
using blink::WebStorageQuotaType;
-using quota::QuotaStatusCode;
-using quota::StorageType;
+using storage::QuotaStatusCode;
+using storage::StorageType;
namespace content {
@@ -43,7 +43,7 @@ class WebStorageQuotaDispatcherCallback : public QuotaDispatcher::Callback {
virtual void DidGrantStorageQuota(int64 usage, int64 granted_quota) OVERRIDE {
callbacks_.didGrantStorageQuota(usage, granted_quota);
}
- virtual void DidFail(quota::QuotaStatusCode error) OVERRIDE {
+ virtual void DidFail(storage::QuotaStatusCode error) OVERRIDE {
callbacks_.didFail(static_cast<WebStorageQuotaError>(error));
}
@@ -69,7 +69,7 @@ QuotaDispatcher::QuotaDispatcher(ThreadSafeSender* thread_safe_sender,
QuotaDispatcher::~QuotaDispatcher() {
IDMap<Callback, IDMapOwnPointer>::iterator iter(&pending_quota_callbacks_);
while (!iter.IsAtEnd()) {
- iter.GetCurrentValue()->DidFail(quota::kQuotaErrorAbort);
+ iter.GetCurrentValue()->DidFail(storage::kQuotaErrorAbort);
iter.Advance();
}
@@ -175,14 +175,18 @@ void QuotaDispatcher::DidFail(
pending_quota_callbacks_.Remove(request_id);
}
-COMPILE_ASSERT(int(blink::WebStorageQuotaTypeTemporary) == \
- int(quota::kStorageTypeTemporary), mismatching_enums);
-COMPILE_ASSERT(int(blink::WebStorageQuotaTypePersistent) == \
- int(quota::kStorageTypePersistent), mismatching_enums);
-
-COMPILE_ASSERT(int(blink::WebStorageQuotaErrorNotSupported) == \
- int(quota::kQuotaErrorNotSupported), mismatching_enums);
-COMPILE_ASSERT(int(blink::WebStorageQuotaErrorAbort) == \
- int(quota::kQuotaErrorAbort), mismatching_enums);
+COMPILE_ASSERT(int(blink::WebStorageQuotaTypeTemporary) ==
+ int(storage::kStorageTypeTemporary),
+ mismatching_enums);
+COMPILE_ASSERT(int(blink::WebStorageQuotaTypePersistent) ==
+ int(storage::kStorageTypePersistent),
+ mismatching_enums);
+
+COMPILE_ASSERT(int(blink::WebStorageQuotaErrorNotSupported) ==
+ int(storage::kQuotaErrorNotSupported),
+ mismatching_enums);
+COMPILE_ASSERT(int(blink::WebStorageQuotaErrorAbort) ==
+ int(storage::kQuotaErrorAbort),
+ mismatching_enums);
} // namespace content
« no previous file with comments | « content/child/quota_dispatcher.h ('k') | content/child/web_database_observer_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698