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

Side by Side Diff: third_party/WebKit/Source/core/inspector/ThreadDebugger.h

Issue 2170263002: [DevTools] Pass error object when reporting exceptions. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: worklets! Created 4 years, 4 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 unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef ThreadDebugger_h 5 #ifndef ThreadDebugger_h
6 #define ThreadDebugger_h 6 #define ThreadDebugger_h
7 7
8 #include "core/CoreExport.h" 8 #include "core/CoreExport.h"
9 #include "core/inspector/ConsoleTypes.h" 9 #include "core/inspector/ConsoleTypes.h"
10 #include "platform/Timer.h" 10 #include "platform/Timer.h"
(...skipping 22 matching lines...) Expand all
33 static void didExecuteScript(v8::Isolate*); 33 static void didExecuteScript(v8::Isolate*);
34 static void idleStarted(v8::Isolate*); 34 static void idleStarted(v8::Isolate*);
35 static void idleFinished(v8::Isolate*); 35 static void idleFinished(v8::Isolate*);
36 36
37 void asyncTaskScheduled(const String& taskName, void* task, bool recurring); 37 void asyncTaskScheduled(const String& taskName, void* task, bool recurring);
38 void asyncTaskCanceled(void* task); 38 void asyncTaskCanceled(void* task);
39 void allAsyncTasksCanceled(); 39 void allAsyncTasksCanceled();
40 void asyncTaskStarted(void* task); 40 void asyncTaskStarted(void* task);
41 void asyncTaskFinished(void* task); 41 void asyncTaskFinished(void* task);
42 unsigned promiseRejected(v8::Local<v8::Context>, const String16& errorMessag e, v8::Local<v8::Value> exception, std::unique_ptr<SourceLocation>); 42 unsigned promiseRejected(v8::Local<v8::Context>, const String16& errorMessag e, v8::Local<v8::Value> exception, std::unique_ptr<SourceLocation>);
43 void promiseRejectionRevoked(v8::Local<v8::Context>, unsigned promiseRejecti onId);
43 44
44 // V8DebuggerClient implementation. 45 // V8DebuggerClient implementation.
45 void beginUserGesture() override; 46 void beginUserGesture() override;
46 void endUserGesture() override; 47 void endUserGesture() override;
47 String16 valueSubtype(v8::Local<v8::Value>) override; 48 String16 valueSubtype(v8::Local<v8::Value>) override;
48 bool formatAccessorsAsProperties(v8::Local<v8::Value>) override; 49 bool formatAccessorsAsProperties(v8::Local<v8::Value>) override;
49 bool isExecutionAllowed() override; 50 bool isExecutionAllowed() override;
50 double currentTimeMS() override; 51 double currentTimeMS() override;
51 bool isInspectableHeapObject(v8::Local<v8::Object>) override; 52 bool isInspectableHeapObject(v8::Local<v8::Object>) override;
52 void installAdditionalCommandLineAPI(v8::Local<v8::Context>, v8::Local<v8::O bject>) override; 53 void installAdditionalCommandLineAPI(v8::Local<v8::Context>, v8::Local<v8::O bject>) override;
(...skipping 25 matching lines...) Expand all
78 79
79 Vector<std::unique_ptr<Timer<ThreadDebugger>>> m_timers; 80 Vector<std::unique_ptr<Timer<ThreadDebugger>>> m_timers;
80 Vector<V8DebuggerClient::TimerCallback> m_timerCallbacks; 81 Vector<V8DebuggerClient::TimerCallback> m_timerCallbacks;
81 Vector<void*> m_timerData; 82 Vector<void*> m_timerData;
82 std::unique_ptr<UserGestureIndicator> m_userGestureIndicator; 83 std::unique_ptr<UserGestureIndicator> m_userGestureIndicator;
83 }; 84 };
84 85
85 } // namespace blink 86 } // namespace blink
86 87
87 #endif // ThreadDebugger_h 88 #endif // ThreadDebugger_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698