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

Unified Diff: third_party/WebKit/Source/platform/v8_inspector/V8RuntimeAgentImpl.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/V8RuntimeAgentImpl.h
diff --git a/third_party/WebKit/Source/platform/v8_inspector/V8RuntimeAgentImpl.h b/third_party/WebKit/Source/platform/v8_inspector/V8RuntimeAgentImpl.h
index caad78d6eb27b8b297ab5fdd21ab2cf1335b8c47..aada97a4e37bf5a2f50bc5b2368379caabcca3a4 100644
--- a/third_party/WebKit/Source/platform/v8_inspector/V8RuntimeAgentImpl.h
+++ b/third_party/WebKit/Source/platform/v8_inspector/V8RuntimeAgentImpl.h
@@ -32,8 +32,11 @@
#define V8RuntimeAgentImpl_h
#include "platform/inspector_protocol/Allocator.h"
+#include "platform/inspector_protocol/Backend.h"
#include "platform/inspector_protocol/Frontend.h"
-#include "platform/v8_inspector/public/V8RuntimeAgent.h"
+#include "platform/inspector_protocol/String16.h"
+
+#include <v8.h>
namespace blink {
@@ -49,17 +52,12 @@ class DictionaryValue;
using protocol::Maybe;
-class V8RuntimeAgentImpl : public V8RuntimeAgent {
+class V8RuntimeAgentImpl : public protocol::Backend::Runtime {
PROTOCOL_DISALLOW_COPY(V8RuntimeAgentImpl);
public:
- explicit V8RuntimeAgentImpl(V8InspectorSessionImpl*);
+ V8RuntimeAgentImpl(V8InspectorSessionImpl*, protocol::Frontend::Runtime*, protocol::DictionaryValue* state);
~V8RuntimeAgentImpl() override;
-
- // State management methods.
- void setInspectorState(protocol::DictionaryValue*) override;
- void setFrontend(protocol::Frontend::Runtime*) override;
- void clearFrontend() override;
- void restore() override;
+ void restore();
// Part of the protocol.
void enable(ErrorString*) override;

Powered by Google App Engine
This is Rietveld 408576698