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

Side by Side Diff: third_party/WebKit/Source/core/inspector/InspectorSession.h

Issue 2199943004: [DevTools] Rename V8Debugger to V8Inspector. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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 unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef InspectorSession_h 5 #ifndef InspectorSession_h
6 #define InspectorSession_h 6 #define InspectorSession_h
7 7
8 #include "core/CoreExport.h" 8 #include "core/CoreExport.h"
9 #include "platform/heap/Handle.h" 9 #include "platform/heap/Handle.h"
10 #include "platform/inspector_protocol/DispatcherBase.h" 10 #include "platform/inspector_protocol/DispatcherBase.h"
11 #include "platform/inspector_protocol/FrontendChannel.h" 11 #include "platform/inspector_protocol/FrontendChannel.h"
12 #include "platform/inspector_protocol/Values.h" 12 #include "platform/inspector_protocol/Values.h"
13 #include "platform/v8_inspector/public/V8InspectorSessionClient.h" 13 #include "platform/v8_inspector/public/V8InspectorSessionClient.h"
14 #include "wtf/Forward.h" 14 #include "wtf/Forward.h"
15 #include "wtf/Vector.h" 15 #include "wtf/Vector.h"
16 #include "wtf/text/WTFString.h" 16 #include "wtf/text/WTFString.h"
17 17
18 namespace blink { 18 namespace blink {
19 19
20 class ExecutionContext; 20 class ExecutionContext;
21 class InspectorAgent; 21 class InspectorAgent;
22 class InstrumentingAgents; 22 class InstrumentingAgents;
23 class LocalFrame; 23 class LocalFrame;
24 class V8Debugger; 24 class V8Inspector;
25 class V8InspectorSession; 25 class V8InspectorSession;
26 26
27 class CORE_EXPORT InspectorSession 27 class CORE_EXPORT InspectorSession
28 : public GarbageCollectedFinalized<InspectorSession> 28 : public GarbageCollectedFinalized<InspectorSession>
29 , public V8InspectorSessionClient 29 , public V8InspectorSessionClient
30 , public protocol::FrontendChannel { 30 , public protocol::FrontendChannel {
31 WTF_MAKE_NONCOPYABLE(InspectorSession); 31 WTF_MAKE_NONCOPYABLE(InspectorSession);
32 public: 32 public:
33 class Client { 33 class Client {
34 public: 34 public:
35 virtual void sendProtocolMessage(int sessionId, int callId, const String & response, const String& state) = 0; 35 virtual void sendProtocolMessage(int sessionId, int callId, const String & response, const String& state) = 0;
36 virtual void resumeStartup() { } 36 virtual void resumeStartup() { }
37 virtual ~Client() {} 37 virtual ~Client() {}
38 }; 38 };
39 39
40 InspectorSession(Client*, InstrumentingAgents*, int sessionId, bool autoFlus h, V8Debugger*, int contextGroupId, const String* savedState); 40 InspectorSession(Client*, InstrumentingAgents*, int sessionId, bool autoFlus h, V8Inspector*, int contextGroupId, const String* savedState);
41 ~InspectorSession() override; 41 ~InspectorSession() override;
42 int sessionId() { return m_sessionId; } 42 int sessionId() { return m_sessionId; }
43 V8InspectorSession* v8Session() { return m_v8Session.get(); } 43 V8InspectorSession* v8Session() { return m_v8Session.get(); }
44 44
45 void append(InspectorAgent*); 45 void append(InspectorAgent*);
46 void restore(); 46 void restore();
47 void dispose(); 47 void dispose();
48 void didCommitLoadForLocalFrame(LocalFrame*); 48 void didCommitLoadForLocalFrame(LocalFrame*);
49 void dispatchProtocolMessage(const String& method, const String& message); 49 void dispatchProtocolMessage(const String& method, const String& message);
50 void flushProtocolNotifications() override; 50 void flushProtocolNotifications() override;
(...skipping 17 matching lines...) Expand all
68 std::unique_ptr<protocol::UberDispatcher> m_inspectorBackendDispatcher; 68 std::unique_ptr<protocol::UberDispatcher> m_inspectorBackendDispatcher;
69 std::unique_ptr<protocol::DictionaryValue> m_state; 69 std::unique_ptr<protocol::DictionaryValue> m_state;
70 HeapVector<Member<InspectorAgent>> m_agents; 70 HeapVector<Member<InspectorAgent>> m_agents;
71 Vector<protocol::String16> m_notificationQueue; 71 Vector<protocol::String16> m_notificationQueue;
72 String m_lastSentState; 72 String m_lastSentState;
73 }; 73 };
74 74
75 } // namespace blink 75 } // namespace blink
76 76
77 #endif // !defined(InspectorSession_h) 77 #endif // !defined(InspectorSession_h)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698