| Index: third_party/WebKit/Source/platform/v8_inspector/V8DebuggerImpl.h
|
| diff --git a/third_party/WebKit/Source/platform/v8_inspector/V8DebuggerImpl.h b/third_party/WebKit/Source/platform/v8_inspector/V8DebuggerImpl.h
|
| index b62a2a003a5661c92e7d894864f5c8dca0ae2c7e..2e814195ed65341ee5b416fb15ed94f4394018c5 100644
|
| --- a/third_party/WebKit/Source/platform/v8_inspector/V8DebuggerImpl.h
|
| +++ b/third_party/WebKit/Source/platform/v8_inspector/V8DebuggerImpl.h
|
| @@ -47,6 +47,7 @@ using protocol::Maybe;
|
|
|
| struct ScriptBreakpoint;
|
| class InspectedContext;
|
| +class V8ConsoleMessageStorage;
|
| class V8DebuggerAgentImpl;
|
| class V8InspectorSessionImpl;
|
| class V8RuntimeAgentImpl;
|
| @@ -57,6 +58,8 @@ public:
|
| V8DebuggerImpl(v8::Isolate*, V8DebuggerClient*);
|
| ~V8DebuggerImpl() override;
|
|
|
| + static int contextId(v8::Local<v8::Context>);
|
| +
|
| bool enabled() const;
|
|
|
| String16 setBreakpoint(const String16& sourceID, const ScriptBreakpoint&, int* actualLineNumber, int* actualColumnNumber, bool interstatementLocation);
|
| @@ -106,6 +109,10 @@ public:
|
| v8::Local<v8::Script> compileInternalScript(v8::Local<v8::Context>, v8::Local<v8::String>, const String16& fileName);
|
| v8::Local<v8::Context> regexContext();
|
|
|
| + void enableStackCapturingIfNeeded();
|
| + void disableStackCapturingIfNeeded();
|
| + V8ConsoleMessageStorage* ensureConsoleMessageStorage(int contextGroupId);
|
| +
|
| // V8Debugger implementation
|
| std::unique_ptr<V8InspectorSession> connect(int contextGroupId, protocol::FrontendChannel*, V8InspectorSessionClient*, const String16* state) override;
|
| void contextCreated(const V8ContextInfo&) override;
|
| @@ -115,8 +122,15 @@ public:
|
| void didExecuteScript(v8::Local<v8::Context>) override;
|
| void idleStarted() override;
|
| void idleFinished() override;
|
| + bool addConsoleMessage(int contextGroupId, MessageSource, MessageLevel, const String16& message, const String16& url, unsigned lineNumber, unsigned columnNumber, std::unique_ptr<V8StackTrace>, int scriptId, const String16& requestIdentifier) override;
|
| + void logToConsole(v8::Local<v8::Context>, const String16& message, protocol::Vector<v8::Local<v8::Value>>* arguments) override;
|
| + unsigned promiseRejected(v8::Local<v8::Context>, const String16& errorMessage, v8::Local<v8::Value> reason, const String16& url, unsigned lineNumber, unsigned columnNumber, std::unique_ptr<V8StackTrace>, int scriptId) override;
|
| + void promiseRejectionRevoked(v8::Local<v8::Context>, unsigned promiseRejectionId) override;
|
| + protocol::Vector<unsigned> consoleMessageArgumentCounts(int contextGroupId) override;
|
| std::unique_ptr<V8StackTrace> createStackTrace(v8::Local<v8::StackTrace>) override;
|
| - std::unique_ptr<V8StackTrace> captureStackTrace(size_t maxStackSize) override;
|
| + std::unique_ptr<V8StackTrace> captureStackTrace(bool fullStack) override;
|
| + void muteConsole() override { m_muteConsoleCount++; }
|
| + void unmuteConsole() override { m_muteConsoleCount--; }
|
|
|
| using ContextByIdMap = protocol::HashMap<int, std::unique_ptr<InspectedContext>>;
|
| void discardInspectedContext(int contextGroupId, int contextId);
|
| @@ -153,6 +167,11 @@ private:
|
| ContextsByGroupMap m_contexts;
|
| using SessionMap = protocol::HashMap<int, V8InspectorSessionImpl*>;
|
| SessionMap m_sessions;
|
| + using ConsoleStorageMap = protocol::HashMap<int, std::unique_ptr<V8ConsoleMessageStorage>>;
|
| + ConsoleStorageMap m_consoleStorageMap;
|
| + int m_capturingStackTracesCount;
|
| + int m_muteConsoleCount;
|
| + unsigned m_lastConsoleMessageId;
|
| int m_enabledAgentsCount;
|
| bool m_breakpointsActivated;
|
| v8::Global<v8::Object> m_debuggerScript;
|
|
|