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

Unified Diff: third_party/WebKit/Source/platform/v8_inspector/V8ProfilerAgentImpl.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/V8ProfilerAgentImpl.h
diff --git a/third_party/WebKit/Source/platform/v8_inspector/V8ProfilerAgentImpl.h b/third_party/WebKit/Source/platform/v8_inspector/V8ProfilerAgentImpl.h
index cb52d40fe458f61db73828c1f4b5872a12a78900..ef208d9b04c1dd9236513033cd733c3f224aae8f 100644
--- a/third_party/WebKit/Source/platform/v8_inspector/V8ProfilerAgentImpl.h
+++ b/third_party/WebKit/Source/platform/v8_inspector/V8ProfilerAgentImpl.h
@@ -6,9 +6,9 @@
#define V8ProfilerAgentImpl_h
#include "platform/inspector_protocol/Allocator.h"
+#include "platform/inspector_protocol/Backend.h"
#include "platform/inspector_protocol/Frontend.h"
#include "platform/inspector_protocol/String16.h"
-#include "platform/v8_inspector/public/V8ProfilerAgent.h"
namespace v8 {
class Isolate;
@@ -18,18 +18,14 @@ namespace blink {
class V8InspectorSessionImpl;
-class V8ProfilerAgentImpl : public V8ProfilerAgent {
+class V8ProfilerAgentImpl : public protocol::Backend::Profiler {
PROTOCOL_DISALLOW_COPY(V8ProfilerAgentImpl);
public:
- explicit V8ProfilerAgentImpl(V8InspectorSessionImpl*);
+ V8ProfilerAgentImpl(V8InspectorSessionImpl*, protocol::Frontend::Profiler*, protocol::DictionaryValue* state);
~V8ProfilerAgentImpl() override;
bool enabled() const { return m_enabled; }
-
- void setInspectorState(protocol::DictionaryValue* state) override { m_state = state; }
- void setFrontend(protocol::Frontend::Profiler* frontend) override { m_frontend = frontend; }
- void clearFrontend() override;
- void restore() override;
+ void restore();
void enable(ErrorString*) override;
void disable(ErrorString*) override;

Powered by Google App Engine
This is Rietveld 408576698