summaryrefslogtreecommitdiffstats
path: root/webkit/appcache/appcache_interfaces.h
diff options
context:
space:
mode:
authormichaeln@chromium.org <michaeln@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-06-18 02:02:05 +0000
committermichaeln@chromium.org <michaeln@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-06-18 02:02:05 +0000
commit53c570b58354034db920c09d711ed7d9b3429f30 (patch)
treecec472d625b0fb5cfd338197ab60766c43b37627 /webkit/appcache/appcache_interfaces.h
parent2980fdcdf74dd4c25c8718f12f3f147d2581177d (diff)
downloadchromium_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 'webkit/appcache/appcache_interfaces.h')
-rw-r--r--webkit/appcache/appcache_interfaces.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/webkit/appcache/appcache_interfaces.h b/webkit/appcache/appcache_interfaces.h
index 5f1c369..a57ba67 100644
--- a/webkit/appcache/appcache_interfaces.h
+++ b/webkit/appcache/appcache_interfaces.h
@@ -44,6 +44,12 @@ enum EventID {
OBSOLETE_EVENT
};
+enum LogLevel {
+ LOG_INFO,
+ LOG_WARNING,
+ LOG_ERROR,
+};
+
// Interface used by backend (browser-process) to talk to frontend (renderer).
class AppCacheFrontend {
public:
@@ -57,7 +63,8 @@ class AppCacheFrontend {
const GURL& url,
int num_total, int num_complete) = 0;
virtual void OnContentBlocked(int host_id) = 0;
-
+ virtual void OnLogMessage(int host_id, LogLevel log_level,
+ const std::string& message) = 0;
virtual ~AppCacheFrontend() {}
};