| 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 a8e7637f303e259cb9701854583c27f775138862..e24f364943ce52405356cee7a1ffe1a7fe6dd2d6 100644
|
| --- a/third_party/WebKit/Source/platform/v8_inspector/V8DebuggerImpl.h
|
| +++ b/third_party/WebKit/Source/platform/v8_inspector/V8DebuggerImpl.h
|
| @@ -40,6 +40,7 @@
|
|
|
| #include <v8-debug.h>
|
| #include <v8.h>
|
| +#include <vector>
|
|
|
| namespace blink {
|
|
|
| @@ -81,13 +82,13 @@ public:
|
| void stepOutOfFunction();
|
| void clearStepping();
|
|
|
| - bool setScriptSource(const String16& sourceID, const String16& newContent, bool preview, ErrorString*, Maybe<protocol::Debugger::SetScriptSourceError>*, JavaScriptCallFrames* newCallFrames, Maybe<bool>* stackChanged);
|
| + bool setScriptSource(const String16& sourceID, v8::Local<v8::String> newSource, bool preview, ErrorString*, Maybe<protocol::Debugger::SetScriptSourceError>*, JavaScriptCallFrames* newCallFrames, Maybe<bool>* stackChanged);
|
| JavaScriptCallFrames currentCallFrames(int limit = 0);
|
|
|
| // Each script inherits debug data from v8::Context where it has been compiled.
|
| // Only scripts whose debug data matches |contextGroupId| will be reported.
|
| // Passing 0 will result in reporting all scripts.
|
| - void getCompiledScripts(int contextGroupId, protocol::Vector<V8DebuggerParsedScript>&);
|
| + void getCompiledScripts(int contextGroupId, std::vector<std::unique_ptr<V8DebuggerScript>>&);
|
| void debuggerAgentEnabled();
|
| void debuggerAgentDisabled();
|
|
|
| @@ -144,7 +145,7 @@ private:
|
| v8::Local<v8::Context> debuggerContext() const;
|
| void clearBreakpoints();
|
|
|
| - V8DebuggerParsedScript createParsedScript(v8::Local<v8::Object> sourceObject, bool success);
|
| + std::unique_ptr<V8DebuggerScript> createScript(v8::Local<v8::Object> sourceObject);
|
|
|
| static void breakProgramCallback(const v8::FunctionCallbackInfo<v8::Value>&);
|
| void handleProgramBreak(v8::Local<v8::Context> pausedContext, v8::Local<v8::Object> executionState, v8::Local<v8::Value> exception, v8::Local<v8::Array> hitBreakpoints, bool isPromiseRejection = false);
|
|
|