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

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

Issue 2861007: AppCache: add plumbing to deliver logging messages to renderer process. These... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 6 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 50126)
+++ webkit/tools/test_shell/simple_appcache_system.cc (working copy)
@@ -115,6 +115,22 @@
NOTREACHED();
}
+ virtual void OnLogMessage(int host_id,
+ appcache::LogLevel log_level,
+ const std::string& message) {
+ if (!system_)
+ return;
+ if (system_->is_io_thread())
+ system_->ui_message_loop()->PostTask(FROM_HERE, NewRunnableMethod(
+ this, &SimpleFrontendProxy::OnLogMessage,
+ host_id, log_level, message));
+ else if (system_->is_ui_thread())
+ system_->frontend_impl_.OnLogMessage(
+ host_id, log_level, message);
+ else
+ NOTREACHED();
+ }
+
virtual void OnContentBlocked(int host_id) {}
private:
« 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