Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(10)

Unified Diff: third_party/WebKit/Source/platform/v8_inspector/V8HeapProfilerAgentImpl.h

Issue 1967933002: [DevTools] Dispatch messages to V8InspectorSession directly. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@1936593002
Patch Set: rebased Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/platform/v8_inspector/V8HeapProfilerAgentImpl.h
diff --git a/third_party/WebKit/Source/platform/v8_inspector/V8HeapProfilerAgentImpl.h b/third_party/WebKit/Source/platform/v8_inspector/V8HeapProfilerAgentImpl.h
index e3aed9abd80486f1c7928d7c1e167102f09b61db..859478de78e6fff394a571bc20d8026ec0573fd9 100644
--- a/third_party/WebKit/Source/platform/v8_inspector/V8HeapProfilerAgentImpl.h
+++ b/third_party/WebKit/Source/platform/v8_inspector/V8HeapProfilerAgentImpl.h
@@ -6,7 +6,9 @@
#define V8HeapProfilerAgentImpl_h
#include "platform/inspector_protocol/Allocator.h"
-#include "platform/v8_inspector/public/V8HeapProfilerAgent.h"
+#include "platform/inspector_protocol/Backend.h"
+#include "platform/inspector_protocol/Frontend.h"
+#include "platform/inspector_protocol/String16.h"
namespace blink {
@@ -14,16 +16,12 @@ class V8InspectorSessionImpl;
using protocol::Maybe;
-class V8HeapProfilerAgentImpl : public V8HeapProfilerAgent {
+class V8HeapProfilerAgentImpl : public protocol::Backend::HeapProfiler {
PROTOCOL_DISALLOW_COPY(V8HeapProfilerAgentImpl);
public:
- explicit V8HeapProfilerAgentImpl(V8InspectorSessionImpl*);
+ V8HeapProfilerAgentImpl(V8InspectorSessionImpl*, protocol::Frontend::HeapProfiler*, protocol::DictionaryValue* state);
~V8HeapProfilerAgentImpl() override;
-
- void setInspectorState(protocol::DictionaryValue* state) override { m_state = state; }
- void setFrontend(protocol::Frontend::HeapProfiler* frontend) override { m_frontend = frontend; }
- void clearFrontend() override;
- void restore() override;
+ void restore();
void collectGarbage(ErrorString*) override;

Powered by Google App Engine
This is Rietveld 408576698