diff options
author | kkanetkar@chromium.org <kkanetkar@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-07-28 03:14:37 +0000 |
---|---|---|
committer | kkanetkar@chromium.org <kkanetkar@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-07-28 03:14:37 +0000 |
commit | ec5c192817606b55ad99edb256997b70eea41b85 (patch) | |
tree | 16e863d9b1fa02f029c050b028177b7c984da6eb /chrome/browser/appcache/appcache_dispatcher_host.cc | |
parent | 16d35b25ec19b82c13dc7cd24f744951cc12fad0 (diff) | |
download | chromium_src-ec5c192817606b55ad99edb256997b70eea41b85.zip chromium_src-ec5c192817606b55ad99edb256997b70eea41b85.tar.gz chromium_src-ec5c192817606b55ad99edb256997b70eea41b85.tar.bz2 |
Chrome side of changes required to populate appcache resource list.
BUG = 2821005
TEST = Manually navigate.
Review URL: http://codereview.chromium.org/3009005
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@53902 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/appcache/appcache_dispatcher_host.cc')
-rw-r--r-- | chrome/browser/appcache/appcache_dispatcher_host.cc | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/chrome/browser/appcache/appcache_dispatcher_host.cc b/chrome/browser/appcache/appcache_dispatcher_host.cc index b3a7bb0..e37784f 100644 --- a/chrome/browser/appcache/appcache_dispatcher_host.cc +++ b/chrome/browser/appcache/appcache_dispatcher_host.cc @@ -61,6 +61,7 @@ bool AppCacheDispatcherHost::OnMessageReceived(const IPC::Message& msg, 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 @@ void AppCacheDispatcherHost::OnSelectCache( 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 @@ void AppCacheDispatcherHost::OnSelectCacheForWorker( 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 @@ void AppCacheDispatcherHost::OnSelectCacheForSharedWorker( 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::OnMarkAsForeignEntry( } } +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()) { |