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

Side by Side Diff: Source/core/inspector/InspectorDebuggerAgent.h

Issue 307943002: Oilpan: Prepare moving InspectorController and InspectorAgents to oilpan. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased Created 6 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 | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2010 Apple Inc. All rights reserved. 2 * Copyright (C) 2010 Apple Inc. All rights reserved.
3 * Copyright (C) 2010-2011 Google Inc. All rights reserved. 3 * Copyright (C) 2010-2011 Google Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 8 *
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 class ScriptDebugServer; 65 class ScriptDebugServer;
66 class ScriptRegexp; 66 class ScriptRegexp;
67 class ScriptSourceCode; 67 class ScriptSourceCode;
68 class ScriptValue; 68 class ScriptValue;
69 class ThreadableLoaderClient; 69 class ThreadableLoaderClient;
70 class XMLHttpRequest; 70 class XMLHttpRequest;
71 71
72 typedef String ErrorString; 72 typedef String ErrorString;
73 73
74 class InspectorDebuggerAgent : public InspectorBaseAgent<InspectorDebuggerAgent> , public ScriptDebugListener, public InspectorBackendDispatcher::DebuggerCommand Handler { 74 class InspectorDebuggerAgent : public InspectorBaseAgent<InspectorDebuggerAgent> , public ScriptDebugListener, public InspectorBackendDispatcher::DebuggerCommand Handler {
75 WTF_MAKE_NONCOPYABLE(InspectorDebuggerAgent); WTF_MAKE_FAST_ALLOCATED; 75 WTF_MAKE_NONCOPYABLE(InspectorDebuggerAgent);
76 WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED;
76 public: 77 public:
77 enum BreakpointSource { 78 enum BreakpointSource {
78 UserBreakpointSource, 79 UserBreakpointSource,
79 DebugCommandBreakpointSource, 80 DebugCommandBreakpointSource,
80 MonitorCommandBreakpointSource 81 MonitorCommandBreakpointSource
81 }; 82 };
82 83
83 static const char backtraceObjectGroup[]; 84 static const char backtraceObjectGroup[];
84 85
85 virtual ~InspectorDebuggerAgent(); 86 virtual ~InspectorDebuggerAgent();
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
220 String sourceMapURLForScript(const Script&); 221 String sourceMapURLForScript(const Script&);
221 222
222 String scriptURL(JavaScriptCallFrame*); 223 String scriptURL(JavaScriptCallFrame*);
223 224
224 ScriptValue resolveCallFrame(ErrorString*, const String* callFrameId); 225 ScriptValue resolveCallFrame(ErrorString*, const String* callFrameId);
225 226
226 typedef HashMap<String, Script> ScriptsMap; 227 typedef HashMap<String, Script> ScriptsMap;
227 typedef HashMap<String, Vector<String> > BreakpointIdToDebugServerBreakpoint IdsMap; 228 typedef HashMap<String, Vector<String> > BreakpointIdToDebugServerBreakpoint IdsMap;
228 typedef HashMap<String, std::pair<String, BreakpointSource> > DebugServerBre akpointToBreakpointIdAndSourceMap; 229 typedef HashMap<String, std::pair<String, BreakpointSource> > DebugServerBre akpointToBreakpointIdAndSourceMap;
229 230
231 // FIXME: Oilpan: Move InjectedScriptManager to heap in follow-up CL.
230 InjectedScriptManager* m_injectedScriptManager; 232 InjectedScriptManager* m_injectedScriptManager;
231 InspectorFrontend::Debugger* m_frontend; 233 InspectorFrontend::Debugger* m_frontend;
232 RefPtr<ScriptState> m_pausedScriptState; 234 RefPtr<ScriptState> m_pausedScriptState;
233 ScriptValue m_currentCallStack; 235 ScriptValue m_currentCallStack;
234 ScriptsMap m_scripts; 236 ScriptsMap m_scripts;
235 BreakpointIdToDebugServerBreakpointIdsMap m_breakpointIdToDebugServerBreakpo intIds; 237 BreakpointIdToDebugServerBreakpointIdsMap m_breakpointIdToDebugServerBreakpo intIds;
236 DebugServerBreakpointToBreakpointIdAndSourceMap m_serverBreakpoints; 238 DebugServerBreakpointToBreakpointIdAndSourceMap m_serverBreakpoints;
237 String m_continueToLocationBreakpointId; 239 String m_continueToLocationBreakpointId;
238 InspectorFrontend::Debugger::Reason::Enum m_breakReason; 240 InspectorFrontend::Debugger::Reason::Enum m_breakReason;
239 RefPtr<JSONObject> m_breakAuxData; 241 RefPtr<JSONObject> m_breakAuxData;
240 bool m_javaScriptPauseScheduled; 242 bool m_javaScriptPauseScheduled;
241 bool m_debuggerStepScheduled; 243 bool m_debuggerStepScheduled;
242 bool m_pausingOnNativeEvent; 244 bool m_pausingOnNativeEvent;
243 Listener* m_listener; 245 Listener* m_listener;
haraken 2014/06/17 14:06:17 You can make InspectorDebuggerAgent::Listener a GC
keishi 2014/06/18 12:31:07 Done.
244 246
245 int m_skippedStepInCount; 247 int m_skippedStepInCount;
246 int m_minFrameCountForSkip; 248 int m_minFrameCountForSkip;
247 bool m_skipAllPauses; 249 bool m_skipAllPauses;
248 OwnPtr<ScriptRegexp> m_cachedSkipStackRegExp; 250 OwnPtr<ScriptRegexp> m_cachedSkipStackRegExp;
249 AsyncCallStackTracker m_asyncCallStackTracker; 251 AsyncCallStackTracker m_asyncCallStackTracker;
250 }; 252 };
251 253
252 } // namespace WebCore 254 } // namespace WebCore
253 255
254 256
255 #endif // !defined(InspectorDebuggerAgent_h) 257 #endif // !defined(InspectorDebuggerAgent_h)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698