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

Unified Diff: third_party/WebKit/Source/core/inspector/ThreadDebugger.h

Issue 2139543002: [DevTools] Report console API calls through Runtime. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebased Created 4 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: third_party/WebKit/Source/core/inspector/ThreadDebugger.h
diff --git a/third_party/WebKit/Source/core/inspector/ThreadDebugger.h b/third_party/WebKit/Source/core/inspector/ThreadDebugger.h
index e613af24fcabb0b68808f5c2913ef6dd26a9563f..d224227004a591a53fc72301e02413eea6c3d773 100644
--- a/third_party/WebKit/Source/core/inspector/ThreadDebugger.h
+++ b/third_party/WebKit/Source/core/inspector/ThreadDebugger.h
@@ -18,7 +18,8 @@
namespace blink {
class ConsoleMessage;
-class WorkerThread;
+class ExecutionContext;
+class SourceLocation;
class CORE_EXPORT ThreadDebugger : public V8DebuggerClient {
WTF_MAKE_NONCOPYABLE(ThreadDebugger);
@@ -37,6 +38,7 @@ public:
void allAsyncTasksCanceled();
void asyncTaskStarted(void* task);
void asyncTaskFinished(void* task);
+ unsigned promiseRejected(v8::Local<v8::Context>, const String16& errorMessage, v8::Local<v8::Value> exception, std::unique_ptr<SourceLocation>);
// V8DebuggerClient implementation.
void beginUserGesture() override;
@@ -57,6 +59,7 @@ public:
V8Debugger* debugger() const { return m_debugger.get(); }
virtual bool isWorker() { return true; }
+ virtual void reportConsoleMessage(ExecutionContext*, ConsoleMessage*) = 0;
protected:
void createFunctionProperty(v8::Local<v8::Context>, v8::Local<v8::Object>, const char* name, v8::FunctionCallback, const char* description);

Powered by Google App Engine
This is Rietveld 408576698