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

Side by Side Diff: third_party/WebKit/Source/platform/v8_inspector/V8DebuggerImpl.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 /* 1 /*
2 * Copyright (c) 2010, Google Inc. All rights reserved. 2 * Copyright (c) 2010, Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 125
126 // V8Debugger implementation 126 // V8Debugger implementation
127 std::unique_ptr<V8InspectorSession> connect(int contextGroupId, protocol::Fr ontendChannel*, V8InspectorSessionClient*, const String16* state) override; 127 std::unique_ptr<V8InspectorSession> connect(int contextGroupId, protocol::Fr ontendChannel*, V8InspectorSessionClient*, const String16* state) override;
128 void contextCreated(const V8ContextInfo&) override; 128 void contextCreated(const V8ContextInfo&) override;
129 void contextDestroyed(v8::Local<v8::Context>) override; 129 void contextDestroyed(v8::Local<v8::Context>) override;
130 void resetContextGroup(int contextGroupId) override; 130 void resetContextGroup(int contextGroupId) override;
131 void willExecuteScript(v8::Local<v8::Context>, int scriptId) override; 131 void willExecuteScript(v8::Local<v8::Context>, int scriptId) override;
132 void didExecuteScript(v8::Local<v8::Context>) override; 132 void didExecuteScript(v8::Local<v8::Context>) override;
133 void idleStarted() override; 133 void idleStarted() override;
134 void idleFinished() override; 134 void idleFinished() override;
135 void exceptionThrown(int contextGroupId, const String16& errorMessage, const String16& url, unsigned lineNumber, unsigned columnNumber, std::unique_ptr<V8St ackTrace>, int scriptId) override; 135 unsigned exceptionThrown(v8::Local<v8::Context>, const String16& message, v8 ::Local<v8::Value> exception, const String16& detailedMessage, const String16& u rl, unsigned lineNumber, unsigned columnNumber, std::unique_ptr<V8StackTrace>, i nt scriptId) override;
136 unsigned promiseRejected(v8::Local<v8::Context>, const String16& errorMessag e, v8::Local<v8::Value> exception, const String16& url, unsigned lineNumber, uns igned columnNumber, std::unique_ptr<V8StackTrace>, int scriptId) override; 136 void exceptionRevoked(v8::Local<v8::Context>, unsigned exceptionId, const St ring16& message) override;
137 void promiseRejectionRevoked(v8::Local<v8::Context>, unsigned promiseRejecti onId) override;
138 std::unique_ptr<V8StackTrace> createStackTrace(v8::Local<v8::StackTrace>) ov erride; 137 std::unique_ptr<V8StackTrace> createStackTrace(v8::Local<v8::StackTrace>) ov erride;
139 std::unique_ptr<V8StackTrace> captureStackTrace(bool fullStack) override; 138 std::unique_ptr<V8StackTrace> captureStackTrace(bool fullStack) override;
140 void asyncTaskScheduled(const String16& taskName, void* task, bool recurring ) override; 139 void asyncTaskScheduled(const String16& taskName, void* task, bool recurring ) override;
141 void asyncTaskCanceled(void* task) override; 140 void asyncTaskCanceled(void* task) override;
142 void asyncTaskStarted(void* task) override; 141 void asyncTaskStarted(void* task) override;
143 void asyncTaskFinished(void* task) override; 142 void asyncTaskFinished(void* task) override;
144 void allAsyncTasksCanceled() override; 143 void allAsyncTasksCanceled() override;
145 144
146 using ContextByIdMap = protocol::HashMap<int, std::unique_ptr<InspectedConte xt>>; 145 using ContextByIdMap = protocol::HashMap<int, std::unique_ptr<InspectedConte xt>>;
147 void discardInspectedContext(int contextGroupId, int contextId); 146 void discardInspectedContext(int contextGroupId, int contextId);
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
201 int m_maxAsyncCallStackDepth; 200 int m_maxAsyncCallStackDepth;
202 std::vector<void*> m_currentTasks; 201 std::vector<void*> m_currentTasks;
203 std::vector<std::unique_ptr<V8StackTraceImpl>> m_currentStacks; 202 std::vector<std::unique_ptr<V8StackTraceImpl>> m_currentStacks;
204 protocol::HashMap<V8DebuggerAgentImpl*, int> m_maxAsyncCallStackDepthMap; 203 protocol::HashMap<V8DebuggerAgentImpl*, int> m_maxAsyncCallStackDepthMap;
205 }; 204 };
206 205
207 } // namespace blink 206 } // namespace blink
208 207
209 208
210 #endif // V8DebuggerImpl_h 209 #endif // V8DebuggerImpl_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698