OLD | NEW |
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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 V8InspectorClient* client() { return m_client; } | 60 V8InspectorClient* client() { return m_client; } |
61 V8Debugger* debugger() { return m_debugger.get(); } | 61 V8Debugger* debugger() { return m_debugger.get(); } |
62 | 62 |
63 v8::MaybeLocal<v8::Value> runCompiledScript(v8::Local<v8::Context>, v8::Loca
l<v8::Script>); | 63 v8::MaybeLocal<v8::Value> runCompiledScript(v8::Local<v8::Context>, v8::Loca
l<v8::Script>); |
64 v8::MaybeLocal<v8::Value> callFunction(v8::Local<v8::Function>, v8::Local<v8
::Context>, v8::Local<v8::Value> receiver, int argc, v8::Local<v8::Value> info[]
); | 64 v8::MaybeLocal<v8::Value> callFunction(v8::Local<v8::Function>, v8::Local<v8
::Context>, v8::Local<v8::Value> receiver, int argc, v8::Local<v8::Value> info[]
); |
65 v8::MaybeLocal<v8::Value> compileAndRunInternalScript(v8::Local<v8::Context>
, v8::Local<v8::String>); | 65 v8::MaybeLocal<v8::Value> compileAndRunInternalScript(v8::Local<v8::Context>
, v8::Local<v8::String>); |
66 v8::Local<v8::Script> compileScript(v8::Local<v8::Context>, v8::Local<v8::St
ring>, const String16& fileName, bool markAsInternal); | 66 v8::Local<v8::Script> compileScript(v8::Local<v8::Context>, v8::Local<v8::St
ring>, const String16& fileName, bool markAsInternal); |
67 v8::Local<v8::Context> regexContext(); | 67 v8::Local<v8::Context> regexContext(); |
68 | 68 |
69 // V8Inspector implementation. | 69 // V8Inspector implementation. |
70 std::unique_ptr<V8InspectorSession> connect(int contextGroupId, protocol::Fr
ontendChannel*, const String16* state) override; | 70 std::unique_ptr<V8InspectorSession> connect(int contextGroupId, protocol::Fr
ontendChannel*, const StringView& state) override; |
71 void contextCreated(const V8ContextInfo&) override; | 71 void contextCreated(const V8ContextInfo&) override; |
72 void contextDestroyed(v8::Local<v8::Context>) override; | 72 void contextDestroyed(v8::Local<v8::Context>) override; |
73 void resetContextGroup(int contextGroupId) override; | 73 void resetContextGroup(int contextGroupId) override; |
74 void willExecuteScript(v8::Local<v8::Context>, int scriptId) override; | 74 void willExecuteScript(v8::Local<v8::Context>, int scriptId) override; |
75 void didExecuteScript(v8::Local<v8::Context>) override; | 75 void didExecuteScript(v8::Local<v8::Context>) override; |
76 void idleStarted() override; | 76 void idleStarted() override; |
77 void idleFinished() override; | 77 void idleFinished() override; |
78 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; | 78 unsigned exceptionThrown(v8::Local<v8::Context>, const StringView& message,
v8::Local<v8::Value> exception, const StringView& detailedMessage, const StringV
iew& url, unsigned lineNumber, unsigned columnNumber, std::unique_ptr<V8StackTra
ce>, int scriptId) override; |
79 void exceptionRevoked(v8::Local<v8::Context>, unsigned exceptionId, const St
ring16& message) override; | 79 void exceptionRevoked(v8::Local<v8::Context>, unsigned exceptionId, const St
ringView& message) override; |
80 std::unique_ptr<V8StackTrace> createStackTrace(v8::Local<v8::StackTrace>) ov
erride; | 80 std::unique_ptr<V8StackTrace> createStackTrace(v8::Local<v8::StackTrace>) ov
erride; |
81 std::unique_ptr<V8StackTrace> captureStackTrace(bool fullStack) override; | 81 std::unique_ptr<V8StackTrace> captureStackTrace(bool fullStack) override; |
82 void asyncTaskScheduled(const String16& taskName, void* task, bool recurring
) override; | 82 void asyncTaskScheduled(const StringView& taskName, void* task, bool recurri
ng) override; |
83 void asyncTaskCanceled(void* task) override; | 83 void asyncTaskCanceled(void* task) override; |
84 void asyncTaskStarted(void* task) override; | 84 void asyncTaskStarted(void* task) override; |
85 void asyncTaskFinished(void* task) override; | 85 void asyncTaskFinished(void* task) override; |
86 void allAsyncTasksCanceled() override; | 86 void allAsyncTasksCanceled() override; |
87 | 87 |
88 unsigned nextExceptionId() { return ++m_lastExceptionId; } | 88 unsigned nextExceptionId() { return ++m_lastExceptionId; } |
89 void enableStackCapturingIfNeeded(); | 89 void enableStackCapturingIfNeeded(); |
90 void disableStackCapturingIfNeeded(); | 90 void disableStackCapturingIfNeeded(); |
91 void muteExceptions(int contextGroupId); | 91 void muteExceptions(int contextGroupId); |
92 void unmuteExceptions(int contextGroupId); | 92 void unmuteExceptions(int contextGroupId); |
(...skipping 25 matching lines...) Expand all Loading... |
118 SessionMap m_sessions; | 118 SessionMap m_sessions; |
119 | 119 |
120 using ConsoleStorageMap = protocol::HashMap<int, std::unique_ptr<V8ConsoleMe
ssageStorage>>; | 120 using ConsoleStorageMap = protocol::HashMap<int, std::unique_ptr<V8ConsoleMe
ssageStorage>>; |
121 ConsoleStorageMap m_consoleStorageMap; | 121 ConsoleStorageMap m_consoleStorageMap; |
122 }; | 122 }; |
123 | 123 |
124 } // namespace v8_inspector | 124 } // namespace v8_inspector |
125 | 125 |
126 | 126 |
127 #endif // V8InspectorImpl_h | 127 #endif // V8InspectorImpl_h |
OLD | NEW |