diff options
author | michaeln@chromium.org <michaeln@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-06-18 02:02:05 +0000 |
---|---|---|
committer | michaeln@chromium.org <michaeln@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-06-18 02:02:05 +0000 |
commit | 53c570b58354034db920c09d711ed7d9b3429f30 (patch) | |
tree | cec472d625b0fb5cfd338197ab60766c43b37627 /chrome/browser/appcache | |
parent | 2980fdcdf74dd4c25c8718f12f3f147d2581177d (diff) | |
download | chromium_src-53c570b58354034db920c09d711ed7d9b3429f30.zip chromium_src-53c570b58354034db920c09d711ed7d9b3429f30.tar.gz chromium_src-53c570b58354034db920c09d711ed7d9b3429f30.tar.bz2 |
AppCache: add plumbing to deliver logging messages to the renderer process. These messages will be plumbed thru to the console output for the page associated with 'host_id'.BUG=13685TEST=none
Review URL: http://codereview.chromium.org/2861007
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@50197 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/appcache')
-rw-r--r-- | chrome/browser/appcache/appcache_frontend_proxy.cc | 6 | ||||
-rw-r--r-- | chrome/browser/appcache/appcache_frontend_proxy.h | 2 |
2 files changed, 8 insertions, 0 deletions
diff --git a/chrome/browser/appcache/appcache_frontend_proxy.cc b/chrome/browser/appcache/appcache_frontend_proxy.cc index 89822d0..fe39029 100644 --- a/chrome/browser/appcache/appcache_frontend_proxy.cc +++ b/chrome/browser/appcache/appcache_frontend_proxy.cc @@ -29,6 +29,12 @@ void AppCacheFrontendProxy::OnProgressEventRaised( host_ids, url, num_total, num_complete)); } +void AppCacheFrontendProxy::OnLogMessage(int host_id, + appcache::LogLevel log_level, + const std::string& message) { + sender_->Send(new AppCacheMsg_LogMessage(host_id, log_level, message)); +} + void AppCacheFrontendProxy::OnContentBlocked(int host_id) { sender_->Send(new AppCacheMsg_ContentBlocked(host_id)); } diff --git a/chrome/browser/appcache/appcache_frontend_proxy.h b/chrome/browser/appcache/appcache_frontend_proxy.h index 2b6bc2e..90b9446 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 OnLogMessage(int host_id, appcache::LogLevel log_level, + const std::string& message); virtual void OnContentBlocked(int host_id); private: |