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

Side by Side Diff: third_party/WebKit/Source/platform/v8_inspector/V8DebuggerAgentImpl.h

Issue 2012753003: DevTools: consolidate protocol generators for front-end, backend and type builder. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 V8DebuggerAgentImpl_h 5 #ifndef V8DebuggerAgentImpl_h
6 #define V8DebuggerAgentImpl_h 6 #define V8DebuggerAgentImpl_h
7 7
8 #include "platform/inspector_protocol/Backend.h"
9 #include "platform/inspector_protocol/Collections.h" 8 #include "platform/inspector_protocol/Collections.h"
10 #include "platform/inspector_protocol/Frontend.h"
11 #include "platform/inspector_protocol/String16.h" 9 #include "platform/inspector_protocol/String16.h"
10 #include "platform/inspector_protocol/TypeBuilder.h"
12 #include "platform/v8_inspector/V8DebuggerImpl.h" 11 #include "platform/v8_inspector/V8DebuggerImpl.h"
13 12
14 namespace blink { 13 namespace blink {
15 14
16 class JavaScriptCallFrame; 15 class JavaScriptCallFrame;
17 class PromiseTracker; 16 class PromiseTracker;
18 class V8InspectorSessionImpl; 17 class V8InspectorSessionImpl;
19 class V8Regex; 18 class V8Regex;
20 class V8StackTraceImpl; 19 class V8StackTraceImpl;
21 20
(...skipping 13 matching lines...) Expand all
35 RequestStepOut, 34 RequestStepOut,
36 RequestStepFrame 35 RequestStepFrame
37 }; 36 };
38 37
39 enum BreakpointSource { 38 enum BreakpointSource {
40 UserBreakpointSource, 39 UserBreakpointSource,
41 DebugCommandBreakpointSource, 40 DebugCommandBreakpointSource,
42 MonitorCommandBreakpointSource 41 MonitorCommandBreakpointSource
43 }; 42 };
44 43
45 V8DebuggerAgentImpl(V8InspectorSessionImpl*, protocol::Debugger::Frontend*, protocol::DictionaryValue* state); 44 V8DebuggerAgentImpl(V8InspectorSessionImpl*, protocol::FrontendChannel*, pro tocol::DictionaryValue* state);
46 ~V8DebuggerAgentImpl() override; 45 ~V8DebuggerAgentImpl() override;
47 void restore(); 46 void restore();
48 47
49 // Part of the protocol. 48 // Part of the protocol.
50 void enable(ErrorString*) override; 49 void enable(ErrorString*) override;
51 void disable(ErrorString*) override; 50 void disable(ErrorString*) override;
52 void setBreakpointsActive(ErrorString*, bool active) override; 51 void setBreakpointsActive(ErrorString*, bool active) override;
53 void setSkipAllPauses(ErrorString*, bool skipped) override; 52 void setSkipAllPauses(ErrorString*, bool skipped) override;
54 void setBreakpointByUrl(ErrorString*, 53 void setBreakpointByUrl(ErrorString*,
55 int lineNumber, 54 int lineNumber,
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
200 NoStep = 0, 199 NoStep = 0,
201 StepInto, 200 StepInto,
202 StepOver, 201 StepOver,
203 StepOut 202 StepOut
204 }; 203 };
205 204
206 V8DebuggerImpl* m_debugger; 205 V8DebuggerImpl* m_debugger;
207 V8InspectorSessionImpl* m_session; 206 V8InspectorSessionImpl* m_session;
208 bool m_enabled; 207 bool m_enabled;
209 protocol::DictionaryValue* m_state; 208 protocol::DictionaryValue* m_state;
210 protocol::Debugger::Frontend* m_frontend; 209 protocol::Debugger::Frontend m_frontend;
211 v8::Isolate* m_isolate; 210 v8::Isolate* m_isolate;
212 v8::Global<v8::Context> m_pausedContext; 211 v8::Global<v8::Context> m_pausedContext;
213 JavaScriptCallFrames m_pausedCallFrames; 212 JavaScriptCallFrames m_pausedCallFrames;
214 ScriptsMap m_scripts; 213 ScriptsMap m_scripts;
215 BreakpointIdToDebuggerBreakpointIdsMap m_breakpointIdToDebuggerBreakpointIds ; 214 BreakpointIdToDebuggerBreakpointIdsMap m_breakpointIdToDebuggerBreakpointIds ;
216 DebugServerBreakpointToBreakpointIdAndSourceMap m_serverBreakpoints; 215 DebugServerBreakpointToBreakpointIdAndSourceMap m_serverBreakpoints;
217 String16 m_continueToLocationBreakpointId; 216 String16 m_continueToLocationBreakpointId;
218 String16 m_breakReason; 217 String16 m_breakReason;
219 std::unique_ptr<protocol::DictionaryValue> m_breakAuxData; 218 std::unique_ptr<protocol::DictionaryValue> m_breakAuxData;
220 DebuggerStep m_scheduledDebuggerStep; 219 DebuggerStep m_scheduledDebuggerStep;
(...skipping 14 matching lines...) Expand all
235 protocol::Vector<void*> m_currentTasks; 234 protocol::Vector<void*> m_currentTasks;
236 protocol::Vector<std::unique_ptr<V8StackTraceImpl>> m_currentStacks; 235 protocol::Vector<std::unique_ptr<V8StackTraceImpl>> m_currentStacks;
237 std::unique_ptr<V8Regex> m_blackboxPattern; 236 std::unique_ptr<V8Regex> m_blackboxPattern;
238 protocol::HashMap<String16, protocol::Vector<std::pair<int, int>>> m_blackbo xedPositions; 237 protocol::HashMap<String16, protocol::Vector<std::pair<int, int>>> m_blackbo xedPositions;
239 }; 238 };
240 239
241 } // namespace blink 240 } // namespace blink
242 241
243 242
244 #endif // V8DebuggerAgentImpl_h 243 #endif // V8DebuggerAgentImpl_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698