Index: chrome/browser/extensions/extension_function.h |
diff --git a/chrome/browser/extensions/extension_function.h b/chrome/browser/extensions/extension_function.h |
index e489d7f6b362b0a7c47875b353a2d9257af586b0..5c009f1e17f089984ebcfe3a067b2e7fe8842a33 100644 |
--- a/chrome/browser/extensions/extension_function.h |
+++ b/chrome/browser/extensions/extension_function.h |
@@ -20,6 +20,7 @@ |
#include "content/public/browser/notification_observer.h" |
#include "content/public/browser/notification_registrar.h" |
#include "content/public/browser/render_view_host_observer.h" |
+#include "content/public/common/console_message_level.h" |
#include "ipc/ipc_message.h" |
class Browser; |
@@ -316,6 +317,10 @@ class UIThreadExtensionFunction : public ExtensionFunction { |
const extensions::WindowController* window_controller) const; |
protected: |
+ // Emits a message to the extension's devtools console. |
+ void WriteToConsole(content::ConsoleMessageLevel level, |
+ const std::string& message); |
+ |
friend struct content::BrowserThread::DeleteOnThread< |
content::BrowserThread::UI>; |
friend class base::DeleteHelper<UIThreadExtensionFunction>; |