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

Unified Diff: Source/core/dom/ExecutionContext.h

Issue 376213002: DevTools: Make FrameConsole methods accept ConsoleMessage objects. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@scriptFailedToParse
Patch Set: Created 6 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: Source/core/dom/ExecutionContext.h
diff --git a/Source/core/dom/ExecutionContext.h b/Source/core/dom/ExecutionContext.h
index 4f3abcd9a3df1083591e0686f4865cd09792e34b..4082e871e4928e613f2e2824692e82271a48f500 100644
--- a/Source/core/dom/ExecutionContext.h
+++ b/Source/core/dom/ExecutionContext.h
@@ -54,6 +54,7 @@ class ScriptState;
class PublicURLManager;
class SecurityOrigin;
class ScriptCallStack;
+class ConsoleMessage;
class ExecutionContext
: public WillBeGarbageCollectedMixin
@@ -83,10 +84,10 @@ public:
KURL contextCompleteURL(const String& url) const { return virtualCompleteURL(url); }
bool shouldSanitizeScriptError(const String& sourceURL, AccessControlStatus);
- void reportException(PassRefPtrWillBeRawPtr<ErrorEvent>, PassRefPtrWillBeRawPtr<ScriptCallStack>, AccessControlStatus);
+ void reportException(PassRefPtrWillBeRawPtr<ErrorEvent>, PassRefPtr<ConsoleMessage>);
- void addConsoleMessage(MessageSource, MessageLevel, const String& message, const String& sourceURL, unsigned lineNumber);
- void addConsoleMessage(MessageSource, MessageLevel, const String& message, ScriptState* = 0);
+ void addConsoleMessage(MessageSource, MessageLevel, const String& message, const String& sourceURL = String(), unsigned lineNumber = 0);
+ void addConsoleMessage(MessageSource, MessageLevel, const String& message, PassRefPtr<ScriptCallStack>);
PublicURLManager& publicURLManager();

Powered by Google App Engine
This is Rietveld 408576698