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

Unified Diff: webkit/tools/test_shell/simple_appcache_system.cc

Issue 6667057: Loading from the "most appropiate" appcache. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 9 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
« no previous file with comments | « webkit/appcache/web_application_cache_host_impl.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/tools/test_shell/simple_appcache_system.cc
===================================================================
--- webkit/tools/test_shell/simple_appcache_system.cc (revision 78411)
+++ webkit/tools/test_shell/simple_appcache_system.cc (working copy)
@@ -199,6 +199,18 @@
}
}
+ virtual void SetSpawningHostId(int host_id, int spawning_host_id) {
+ if (system_->is_ui_thread()) {
+ system_->io_message_loop()->PostTask(FROM_HERE, NewRunnableMethod(
+ this, &SimpleBackendProxy::SetSpawningHostId,
+ host_id, spawning_host_id));
+ } else if (system_->is_io_thread()) {
+ system_->backend_impl_->SetSpawningHostId(host_id, spawning_host_id);
+ } else {
+ NOTREACHED();
+ }
+ }
+
virtual void SelectCache(int host_id,
const GURL& document_url,
const int64 cache_document_was_loaded_from,
« no previous file with comments | « webkit/appcache/web_application_cache_host_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698