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

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

Issue 133003003: Make ErrorConsole catch errors from Extension WebContents Views (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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_web_contents_observer.h
diff --git a/chrome/browser/extensions/extension_web_contents_observer.h b/chrome/browser/extensions/extension_web_contents_observer.h
index 49b1b006934e994c781120d2a5f0b73f320579aa..819d8541aec650560083e8e4fa89690b9830af70 100644
--- a/chrome/browser/extensions/extension_web_contents_observer.h
+++ b/chrome/browser/extensions/extension_web_contents_observer.h
@@ -5,8 +5,11 @@
#ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_WEB_CONTENTS_OBSERVER_H_
#define CHROME_BROWSER_EXTENSIONS_EXTENSION_WEB_CONTENTS_OBSERVER_H_
+#include "base/basictypes.h"
+#include "base/strings/string16.h"
#include "content/public/browser/web_contents_observer.h"
#include "content/public/browser/web_contents_user_data.h"
+#include "extensions/common/stack_frame.h"
namespace content {
class BrowserContext;
@@ -36,6 +39,11 @@ class ExtensionWebContentsObserver
virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;
void OnPostMessage(int port_id, const Message& message);
+ void OnDetailedConsoleMessageAdded(const base::string16& message,
+ const base::string16& source,
+ const StackTrace& stack_trace,
+ int32 severity_level);
+
// Gets the extension or app (if any) that is associated with a RVH.
const Extension* GetExtension(content::RenderViewHost* render_view_host);

Powered by Google App Engine
This is Rietveld 408576698