summaryrefslogtreecommitdiffstats
path: root/webkit/tools
diff options
context:
space:
mode:
authormichaeln@chromium.org <michaeln@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-07-14 02:31:55 +0000
committermichaeln@chromium.org <michaeln@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-07-14 02:31:55 +0000
commit097dde28cb2f5967871351232406ebb7ec317ad3 (patch)
treeb935d8d1a54c4dcfb0c9e06b89436af70359190e /webkit/tools
parent42061043c5f2186fb42fa9bef37c3ae3115e2fd3 (diff)
downloadchromium_src-097dde28cb2f5967871351232406ebb7ec317ad3.zip
chromium_src-097dde28cb2f5967871351232406ebb7ec317ad3.tar.gz
chromium_src-097dde28cb2f5967871351232406ebb7ec317ad3.tar.bz2
New javascript console logging related to the appcache.
* Log an error message when an update job results in an error. * Log info messages for progress events and other update status changed events. * Consistently use "Application Cache" in the console messages. TEST=existing unit tests apply for functional correctness, manual testing to see the new console output BUG=none Review URL: http://codereview.chromium.org/2910007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@52270 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/tools')
-rw-r--r--webkit/tools/test_shell/simple_appcache_system.cc15
1 files changed, 15 insertions, 0 deletions
diff --git a/webkit/tools/test_shell/simple_appcache_system.cc b/webkit/tools/test_shell/simple_appcache_system.cc
index b8e60e4..9706f48 100644
--- a/webkit/tools/test_shell/simple_appcache_system.cc
+++ b/webkit/tools/test_shell/simple_appcache_system.cc
@@ -115,6 +115,21 @@ class SimpleFrontendProxy
NOTREACHED();
}
+ virtual void OnErrorEventRaised(const std::vector<int>& host_ids,
+ const std::string& message) {
+ if (!system_)
+ return;
+ if (system_->is_io_thread())
+ system_->ui_message_loop()->PostTask(FROM_HERE, NewRunnableMethod(
+ this, &SimpleFrontendProxy::OnErrorEventRaised,
+ host_ids, message));
+ else if (system_->is_ui_thread())
+ system_->frontend_impl_.OnErrorEventRaised(
+ host_ids, message);
+ else
+ NOTREACHED();
+ }
+
virtual void OnLogMessage(int host_id,
appcache::LogLevel log_level,
const std::string& message) {