summaryrefslogtreecommitdiffstats
path: root/chrome/browser/appcache
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 /chrome/browser/appcache
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 'chrome/browser/appcache')
-rw-r--r--chrome/browser/appcache/appcache_frontend_proxy.cc7
-rw-r--r--chrome/browser/appcache/appcache_frontend_proxy.h2
2 files changed, 9 insertions, 0 deletions
diff --git a/chrome/browser/appcache/appcache_frontend_proxy.cc b/chrome/browser/appcache/appcache_frontend_proxy.cc
index ded44a1..78ec85d 100644
--- a/chrome/browser/appcache/appcache_frontend_proxy.cc
+++ b/chrome/browser/appcache/appcache_frontend_proxy.cc
@@ -29,6 +29,13 @@ void AppCacheFrontendProxy::OnProgressEventRaised(
host_ids, url, num_total, num_complete));
}
+void AppCacheFrontendProxy::OnErrorEventRaised(
+ const std::vector<int>& host_ids,
+ const std::string& message) {
+ sender_->Send(new AppCacheMsg_ErrorEventRaised(
+ host_ids, message));
+}
+
void AppCacheFrontendProxy::OnLogMessage(int host_id,
appcache::LogLevel log_level,
const std::string& message) {
diff --git a/chrome/browser/appcache/appcache_frontend_proxy.h b/chrome/browser/appcache/appcache_frontend_proxy.h
index 1476580..becbdee 100644
--- a/chrome/browser/appcache/appcache_frontend_proxy.h
+++ b/chrome/browser/appcache/appcache_frontend_proxy.h
@@ -27,6 +27,8 @@ class AppCacheFrontendProxy : public appcache::AppCacheFrontend {
virtual void OnProgressEventRaised(const std::vector<int>& host_ids,
const GURL& url,
int num_total, int num_complete);
+ virtual void OnErrorEventRaised(const std::vector<int>& host_ids,
+ const std::string& message);
virtual void OnLogMessage(int host_id, appcache::LogLevel log_level,
const std::string& message);
virtual void OnContentBlocked(int host_id,