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

Unified Diff: webkit/quota/quota_types.h

Issue 10916313: Cleanup: quota::HostUsageCallback and quota::HostQuotaCallback do not need to pass host and type as… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 3 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: webkit/quota/quota_types.h
diff --git a/webkit/quota/quota_types.h b/webkit/quota/quota_types.h
index a66a9ca13bf3c0e698e5ad56444cfca47388dfe2..76ccefab2d899d449020b1ddec4912e1a4558f94 100644
--- a/webkit/quota/quota_types.h
+++ b/webkit/quota/quota_types.h
@@ -48,9 +48,7 @@ typedef base::Callback<void(QuotaStatusCode status,
int64 quota)> QuotaCallback;
// TODO(kinuko,nhiroki): HostUsageCallback could be probably replaced with
// simple Callback<void(int64)> callback by binding host and type with Bind.
-typedef base::Callback<void(const std::string& host,
- StorageType type,
- int64 host_usage)> HostUsageCallback;
+typedef base::Callback<void(int64 host_usage)> HostUsageCallback;
kinuko 2012/09/17 19:15:42 Now this callback type doesn't necessarily be call
calvinlo 2012/09/18 05:59:18 Done.
typedef base::Callback<void(QuotaStatusCode status,
const std::string& host,
StorageType type,
@@ -228,9 +226,8 @@ class CallbackQueueMap3
}
};
-typedef CallbackQueueMap3<HostUsageCallback, std::string,
kinuko 2012/09/17 19:15:42 I guess we can probably remove CallbackQueueMap3 n
calvinlo 2012/09/18 05:59:18 Done.
- const std::string&,
- StorageType, int64> HostUsageCallbackMap;
+typedef CallbackQueueMap1<HostUsageCallback, std::string, int64>
+ HostUsageCallbackMap;
} // namespace quota

Powered by Google App Engine
This is Rietveld 408576698