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 /webkit/tools | |
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 'webkit/tools')
-rw-r--r-- | webkit/tools/test_shell/simple_appcache_system.cc | 25 |
1 files changed, 20 insertions, 5 deletions
diff --git a/webkit/tools/test_shell/simple_appcache_system.cc b/webkit/tools/test_shell/simple_appcache_system.cc index 9706f48..c23604a 100644 --- a/webkit/tools/test_shell/simple_appcache_system.cc +++ b/webkit/tools/test_shell/simple_appcache_system.cc @@ -59,16 +59,17 @@ class SimpleFrontendProxy void clear_appcache_system() { system_ = NULL; } - virtual void OnCacheSelected(int host_id, int64 cache_id , - appcache::Status status) { + virtual void OnCacheSelected(int host_id, + const appcache::AppCacheInfo& info) { if (!system_) return; if (system_->is_io_thread()) system_->ui_message_loop()->PostTask(FROM_HERE, NewRunnableMethod( this, &SimpleFrontendProxy::OnCacheSelected, - host_id, cache_id, status)); - else if (system_->is_ui_thread()) - system_->frontend_impl_.OnCacheSelected(host_id, cache_id, status); + host_id, info)); + else if (system_->is_ui_thread()) { + system_->frontend_impl_.OnCacheSelected(host_id, info); + } else NOTREACHED(); } @@ -213,6 +214,20 @@ class SimpleBackendProxy } } + virtual void GetResourceList( + int host_id, + std::vector<appcache::AppCacheResourceInfo>* resource_infos) { + if (system_->is_ui_thread()) { + system_->io_message_loop()->PostTask(FROM_HERE, NewRunnableMethod( + this, &SimpleBackendProxy::GetResourceList, + host_id, resource_infos)); + } else if (system_->is_io_thread()) { + system_->backend_impl_->GetResourceList(host_id, resource_infos); + } else { + NOTREACHED(); + } + } + virtual void SelectCacheForWorker( int host_id, int parent_process_id, |