#include "src/inspector/v8-debugger-script.h"
#include "src/base/memory.h"
#include "src/inspector/inspected-context.h"
#include "src/inspector/protocol/Debugger.h"
#include "src/inspector/string-util.h"
#include "src/inspector/v8-debugger-agent-impl.h"
#include "src/inspector/v8-inspector-impl.h"
#include "src/utils/sha-256.h"
namespace v8_inspector {
namespace {
const char kGlobalDebuggerScriptHandleLabel[] = …;
String16 calculateHash(v8::Isolate* isolate, v8::Local<v8::String> source) { … }
class ActualScript : public V8DebuggerScript { … };
}
std::unique_ptr<V8DebuggerScript> V8DebuggerScript::Create(
v8::Isolate* isolate, v8::Local<v8::debug::Script> scriptObj,
bool isLiveEdit, V8DebuggerAgentImpl* agent, V8InspectorClient* client) { … }
V8DebuggerScript::V8DebuggerScript(v8::Isolate* isolate, String16 id,
String16 url, String16 embedderName)
: … { … }
V8DebuggerScript::~V8DebuggerScript() = default;
void V8DebuggerScript::setSourceURL(const String16& sourceURL) { … }
#if V8_ENABLE_WEBASSEMBLY
void V8DebuggerScript::removeWasmBreakpoint(int id) { … }
#endif
}