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

Unified Diff: chrome/browser/appcache/appcache_dispatcher_host.cc

Issue 3009005: Chrome side of changes required to populate appcache resource list.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 5 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: chrome/browser/appcache/appcache_dispatcher_host.cc
===================================================================
--- chrome/browser/appcache/appcache_dispatcher_host.cc (revision 53710)
+++ chrome/browser/appcache/appcache_dispatcher_host.cc (working copy)
@@ -61,6 +61,7 @@
IPC_BEGIN_MESSAGE_MAP_EX(AppCacheDispatcherHost, msg, *msg_ok)
IPC_MESSAGE_HANDLER(AppCacheMsg_RegisterHost, OnRegisterHost);
IPC_MESSAGE_HANDLER(AppCacheMsg_UnregisterHost, OnUnregisterHost);
+ IPC_MESSAGE_HANDLER(AppCacheMsg_GetResourceList, OnGetResourceList);
IPC_MESSAGE_HANDLER(AppCacheMsg_SelectCache, OnSelectCache);
IPC_MESSAGE_HANDLER(AppCacheMsg_SelectCacheForWorker,
OnSelectCacheForWorker);
@@ -102,8 +103,7 @@
ReceivedBadMessage(AppCacheMsg_SelectCache::ID);
}
} else {
- frontend_proxy_.OnCacheSelected(
- host_id, appcache::kNoCacheId, appcache::UNCACHED);
+ frontend_proxy_.OnCacheSelected(host_id, appcache::AppCacheInfo());
}
}
@@ -115,8 +115,7 @@
ReceivedBadMessage(AppCacheMsg_SelectCacheForWorker::ID);
}
} else {
- frontend_proxy_.OnCacheSelected(
- host_id, appcache::kNoCacheId, appcache::UNCACHED);
+ frontend_proxy_.OnCacheSelected(host_id, appcache::AppCacheInfo());
}
}
@@ -126,8 +125,7 @@
if (!backend_impl_.SelectCacheForSharedWorker(host_id, appcache_id))
ReceivedBadMessage(AppCacheMsg_SelectCacheForSharedWorker::ID);
} else {
- frontend_proxy_.OnCacheSelected(
- host_id, appcache::kNoCacheId, appcache::UNCACHED);
+ frontend_proxy_.OnCacheSelected(host_id, appcache::AppCacheInfo());
}
}
@@ -142,6 +140,12 @@
}
}
+void AppCacheDispatcherHost::OnGetResourceList(
+ int host_id, std::vector<appcache::AppCacheResourceInfo>* params) {
+ if (appcache_service_.get())
+ backend_impl_.GetResourceList(host_id, params);
+}
+
void AppCacheDispatcherHost::OnGetStatus(int host_id,
IPC::Message* reply_msg) {
if (pending_reply_msg_.get()) {

Powered by Google App Engine
This is Rietveld 408576698