Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(491)

Unified Diff: chrome/browser/extensions/extension_function.h

Issue 11818010: Make chrome.alarms API accept non-integers and too-short delays. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: After discussion, switch to 1-minute minimum alarm time Created 7 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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>;

Powered by Google App Engine
This is Rietveld 408576698