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

Unified Diff: webkit/tools/test_shell/simple_appcache_system.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: webkit/tools/test_shell/simple_appcache_system.cc
===================================================================
--- webkit/tools/test_shell/simple_appcache_system.cc (revision 53710)
+++ webkit/tools/test_shell/simple_appcache_system.cc (working copy)
@@ -59,16 +59,17 @@
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 @@
}
}
+ 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,

Powered by Google App Engine
This is Rietveld 408576698