2018-04-19 17:44:42 +02:00
|
|
|
diff --git third_party/blink/public/platform/platform.h third_party/blink/public/platform/platform.h
|
2024-11-14 23:07:03 +01:00
|
|
|
index f2be7de2e13b7..4708b9ee705b3 100644
|
2018-04-19 17:44:42 +02:00
|
|
|
--- third_party/blink/public/platform/platform.h
|
|
|
|
+++ third_party/blink/public/platform/platform.h
|
2024-11-14 23:07:03 +01:00
|
|
|
@@ -812,6 +812,11 @@ class BLINK_PLATFORM_EXPORT Platform {
|
2023-04-04 20:00:13 +02:00
|
|
|
}
|
2023-01-30 18:43:54 +01:00
|
|
|
#endif
|
2018-04-19 17:44:42 +02:00
|
|
|
|
|
|
|
+ // DevTools ------------------------------------------------------------
|
|
|
|
+
|
|
|
|
+ virtual void DevToolsAgentAttached() {}
|
|
|
|
+ virtual void DevToolsAgentDetached() {}
|
|
|
|
+
|
2018-11-03 02:15:09 +01:00
|
|
|
private:
|
2022-09-26 21:30:45 +02:00
|
|
|
static void InitializeMainThreadCommon(
|
2024-11-14 23:07:03 +01:00
|
|
|
std::unique_ptr<MainThread> main_thread);
|
2018-11-03 02:15:09 +01:00
|
|
|
diff --git third_party/blink/renderer/core/inspector/devtools_session.cc third_party/blink/renderer/core/inspector/devtools_session.cc
|
2024-11-14 23:07:03 +01:00
|
|
|
index 128bb7d84c392..dd4f22aee9a52 100644
|
2018-11-03 02:15:09 +01:00
|
|
|
--- third_party/blink/renderer/core/inspector/devtools_session.cc
|
|
|
|
+++ third_party/blink/renderer/core/inspector/devtools_session.cc
|
2024-07-29 19:09:20 +02:00
|
|
|
@@ -16,6 +16,7 @@
|
2023-01-30 18:43:54 +01:00
|
|
|
#include "base/task/sequenced_task_runner.h"
|
|
|
|
#include "base/task/single_thread_task_runner.h"
|
2024-02-22 19:36:15 +01:00
|
|
|
#include "base/trace_event/trace_event.h"
|
2018-10-24 22:37:39 +02:00
|
|
|
+#include "third_party/blink/public/platform/platform.h"
|
2018-11-03 02:15:09 +01:00
|
|
|
#include "third_party/blink/renderer/bindings/core/v8/script_controller.h"
|
|
|
|
#include "third_party/blink/renderer/core/frame/local_frame.h"
|
2019-09-04 17:13:32 +02:00
|
|
|
#include "third_party/blink/renderer/core/inspector/devtools_agent.h"
|
2024-08-26 14:44:25 +02:00
|
|
|
@@ -173,6 +174,7 @@ DevToolsSession::DevToolsSession(
|
2018-11-03 02:15:09 +01:00
|
|
|
for (wtf_size_t i = 0; i < agents_.size(); i++)
|
|
|
|
agents_[i]->Restore();
|
|
|
|
}
|
2018-10-24 22:37:39 +02:00
|
|
|
+ Platform::Current()->DevToolsAgentAttached();
|
|
|
|
}
|
|
|
|
|
2018-11-03 02:15:09 +01:00
|
|
|
DevToolsSession::~DevToolsSession() {
|
2024-08-26 14:44:25 +02:00
|
|
|
@@ -218,6 +220,7 @@ void DevToolsSession::Detach() {
|
2018-11-03 02:15:09 +01:00
|
|
|
agents_.clear();
|
|
|
|
v8_session_.reset();
|
|
|
|
agent_->client_->DebuggerTaskFinished();
|
2018-10-24 22:37:39 +02:00
|
|
|
+ Platform::Current()->DevToolsAgentDetached();
|
|
|
|
}
|
|
|
|
|
2023-01-30 18:43:54 +01:00
|
|
|
void DevToolsSession::DetachFromV8() {
|