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

Unified Diff: third_party/WebKit/Source/core/inspector/InspectorConsoleAgent.h

Issue 1924663006: [DevTools] Move API methods from V8RuntimeAgent to V8InspectorSession. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@debugger-into-session
Patch Set: rebased Created 4 years, 8 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/core/inspector/InspectorConsoleAgent.h
diff --git a/third_party/WebKit/Source/core/inspector/InspectorConsoleAgent.h b/third_party/WebKit/Source/core/inspector/InspectorConsoleAgent.h
index c63eade189dd1d3a5ca00524640094c5aebdf3fa..5587c4696bd9c2429cee852e88622242e66190d1 100644
--- a/third_party/WebKit/Source/core/inspector/InspectorConsoleAgent.h
+++ b/third_party/WebKit/Source/core/inspector/InspectorConsoleAgent.h
@@ -34,12 +34,11 @@ namespace blink {
class ConsoleMessage;
class ConsoleMessageStorage;
-class V8RuntimeAgent;
+class V8InspectorSession;
class CORE_EXPORT InspectorConsoleAgent : public InspectorBaseAgent<InspectorConsoleAgent, protocol::Frontend::Console>, public protocol::Backend::Console {
WTF_MAKE_NONCOPYABLE(InspectorConsoleAgent);
public:
- InspectorConsoleAgent(V8RuntimeAgent*);
~InspectorConsoleAgent() override;
void enable(ErrorString*) override;
@@ -52,13 +51,14 @@ public:
virtual void consoleMessagesCleared();
protected:
+ explicit InspectorConsoleAgent(V8InspectorSession*);
void sendConsoleMessageToFrontend(ConsoleMessage*, bool generatePreview);
virtual ConsoleMessageStorage* messageStorage() = 0;
virtual void enableStackCapturingIfNeeded() = 0;
virtual void disableStackCapturingIfNeeded() = 0;
- V8RuntimeAgent* m_runtimeAgent;
+ V8InspectorSession* m_v8Session;
bool m_enabled;
};

Powered by Google App Engine
This is Rietveld 408576698