Chromium Code Reviews

Unified Diff: content/browser/cache_storage/cache_storage_dispatcher_host.cc

Issue 2416713002: Write out CacheStorageCache size to index file. (Closed)
Patch Set: Consolidated observer methods, renames, cleanup, etc. Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Index: content/browser/cache_storage/cache_storage_dispatcher_host.cc
diff --git a/content/browser/cache_storage/cache_storage_dispatcher_host.cc b/content/browser/cache_storage/cache_storage_dispatcher_host.cc
index ba584c7a92e80be723e322dc118d4a33d638fb85..a76f061549daa82884834e485712de17b2992ee8 100644
--- a/content/browser/cache_storage/cache_storage_dispatcher_host.cc
+++ b/content/browser/cache_storage/cache_storage_dispatcher_host.cc
@@ -389,10 +389,10 @@ void CacheStorageDispatcherHost::OnCacheStorageDeleteCallback(
void CacheStorageDispatcherHost::OnCacheStorageKeysCallback(
int thread_id,
int request_id,
- const std::vector<std::string>& strings) {
+ const std::list<CacheStorage::CacheMetadata>& cache_metadata) {
std::vector<base::string16> string16s;
- for (size_t i = 0, max = strings.size(); i < max; ++i)
- string16s.push_back(base::UTF8ToUTF16(strings[i]));
+ for (const auto& metadata : cache_metadata)
+ string16s.push_back(base::UTF8ToUTF16(metadata.name));
Send(new CacheStorageMsg_CacheStorageKeysSuccess(thread_id, request_id,
string16s));
}

Powered by Google App Engine