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

Unified Diff: public/web/WebViewClient.h

Issue 18822004: Extension Error Piping - Blink: WebKit Side (Closed) Base URL: https://chromium.googlesource.com/chromium/blink@master
Patch Set: Created 7 years, 5 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: public/web/WebViewClient.h
diff --git a/public/web/WebViewClient.h b/public/web/WebViewClient.h
index d26c424f7350ae6d9d597d003866803ab3ed6c22..e084b2f919a6d7f5c3710cc401a608f7600ef8eb 100644
--- a/public/web/WebViewClient.h
+++ b/public/web/WebViewClient.h
@@ -35,6 +35,7 @@
#include "../platform/WebGraphicsContext3D.h"
#include "../platform/WebString.h"
#include "WebAccessibilityNotification.h"
+#include "WebConsoleMessage.h"
#include "WebContentDetectionResult.h"
#include "WebDragOperation.h"
#include "WebEditingAction.h"
@@ -131,6 +132,12 @@ public:
virtual void didAddMessageToConsole(
const WebConsoleMessage&, const WebString& sourceName, unsigned sourceLine) { }
+ // Whether or not we should report a detailed message from the given source.
+ virtual bool shouldReportDetailedMessage(const WebString& source) { return false; }
+
+ // Report a detailed message from a Javascript [Log|Error|Exception].
+ virtual void reportDetailedMessage(const WebString& source, WebConsoleMessage::Level level, const WebString& message, const WebString& jsonStackTrace) { }
+
// Called when script in the page calls window.print(). If frame is
// non-null, then it selects a particular frame, including its
// children, to print. Otherwise, the main frame and its children
« Source/WebKit/chromium/src/ChromeClientImpl.h ('K') | « Source/core/page/PageConsole.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698