Chromium Code Reviews| Index: content/public/browser/web_contents_observer.h |
| diff --git a/content/public/browser/web_contents_observer.h b/content/public/browser/web_contents_observer.h |
| index d46f3152968ece8a631fbf7250443e37f7857a12..eb0417cb2f1f4b02ce08e928e3f433acbc9580f0 100644 |
| --- a/content/public/browser/web_contents_observer.h |
| +++ b/content/public/browser/web_contents_observer.h |
| @@ -5,6 +5,7 @@ |
| #ifndef CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_OBSERVER_H_ |
| #define CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_OBSERVER_H_ |
| +#include "base/logging.h" |
| #include "base/process/kill.h" |
| #include "base/process/process_handle.h" |
| #include "content/common/content_export.h" |
| @@ -265,6 +266,14 @@ class CONTENT_EXPORT WebContentsObserver : public IPC::Listener, |
| // Invoked when a user cancels a before unload dialog. |
| virtual void BeforeUnloadDialogCancelled() {} |
| + // Invoked when a message is added to the console. This includes errors, logs, |
| + // warnings, and exceptions. |
| + virtual void OnMessageAddedToConsole(const base::string16& source, |
|
Jói
2013/08/25 16:36:43
Perhaps the semantics of |source| and |stack_trace
Devlin
2013/08/26 16:32:34
Done.
|
| + const base::string16& message, |
| + const base::string16& stack_trace, |
| + int32 line_number, |
| + logging::LogSeverity level) {} |
| + |
| // IPC::Listener implementation. |
| virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; |