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

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: 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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 class ScriptDebugServer; 64 class ScriptDebugServer;
65 class ScriptRegexp; 65 class ScriptRegexp;
66 class ScriptSourceCode; 66 class ScriptSourceCode;
67 class ScriptValue; 67 class ScriptValue;
68 class ThreadableLoaderClient; 68 class ThreadableLoaderClient;
69 class XMLHttpRequest; 69 class XMLHttpRequest;
70 70
71 typedef String ErrorString; 71 typedef String ErrorString;
72 72
73 class InspectorDebuggerAgent : public InspectorBaseAgent<InspectorDebuggerAgent> , public ScriptDebugListener, public InspectorBackendDispatcher::DebuggerCommand Handler { 73 class InspectorDebuggerAgent : public InspectorBaseAgent<InspectorDebuggerAgent> , public ScriptDebugListener, public InspectorBackendDispatcher::DebuggerCommand Handler {
74 WTF_MAKE_NONCOPYABLE(InspectorDebuggerAgent); WTF_MAKE_FAST_ALLOCATED; 74 WTF_MAKE_NONCOPYABLE(InspectorDebuggerAgent);
75 WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED;
75 public: 76 public:
76 enum BreakpointSource { 77 enum BreakpointSource {
77 UserBreakpointSource, 78 UserBreakpointSource,
78 DebugCommandBreakpointSource, 79 DebugCommandBreakpointSource,
79 MonitorCommandBreakpointSource 80 MonitorCommandBreakpointSource
80 }; 81 };
81 82
82 static const char backtraceObjectGroup[]; 83 static const char backtraceObjectGroup[];
83 84
84 virtual ~InspectorDebuggerAgent(); 85 virtual ~InspectorDebuggerAgent();
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
217 String sourceMapURLForScript(const Script&); 218 String sourceMapURLForScript(const Script&);
218 219
219 String scriptURL(JavaScriptCallFrame*); 220 String scriptURL(JavaScriptCallFrame*);
220 221
221 ScriptValue resolveCallFrame(ErrorString*, const String* callFrameId); 222 ScriptValue resolveCallFrame(ErrorString*, const String* callFrameId);
222 223
223 typedef HashMap<String, Script> ScriptsMap; 224 typedef HashMap<String, Script> ScriptsMap;
224 typedef HashMap<String, Vector<String> > BreakpointIdToDebugServerBreakpoint IdsMap; 225 typedef HashMap<String, Vector<String> > BreakpointIdToDebugServerBreakpoint IdsMap;
225 typedef HashMap<String, std::pair<String, BreakpointSource> > DebugServerBre akpointToBreakpointIdAndSourceMap; 226 typedef HashMap<String, std::pair<String, BreakpointSource> > DebugServerBre akpointToBreakpointIdAndSourceMap;
226 227
227 InjectedScriptManager* m_injectedScriptManager; 228 InjectedScriptManager* m_injectedScriptManager;
keishi 2014/06/11 14:10:54 SAFE: InjectedScriptManager is owned by InspectorC
228 InspectorFrontend::Debugger* m_frontend; 229 InspectorFrontend::Debugger* m_frontend;
keishi 2014/06/11 14:10:54 SAFE: InspectorFrontend::Debugger is part of Inspe
229 RefPtr<ScriptState> m_pausedScriptState; 230 RefPtr<ScriptState> m_pausedScriptState;
230 ScriptValue m_currentCallStack; 231 ScriptValue m_currentCallStack;
231 ScriptsMap m_scripts; 232 ScriptsMap m_scripts;
232 BreakpointIdToDebugServerBreakpointIdsMap m_breakpointIdToDebugServerBreakpo intIds; 233 BreakpointIdToDebugServerBreakpointIdsMap m_breakpointIdToDebugServerBreakpo intIds;
233 DebugServerBreakpointToBreakpointIdAndSourceMap m_serverBreakpoints; 234 DebugServerBreakpointToBreakpointIdAndSourceMap m_serverBreakpoints;
234 String m_continueToLocationBreakpointId; 235 String m_continueToLocationBreakpointId;
235 InspectorFrontend::Debugger::Reason::Enum m_breakReason; 236 InspectorFrontend::Debugger::Reason::Enum m_breakReason;
236 RefPtr<JSONObject> m_breakAuxData; 237 RefPtr<JSONObject> m_breakAuxData;
237 bool m_javaScriptPauseScheduled; 238 bool m_javaScriptPauseScheduled;
238 bool m_debuggerStepScheduled; 239 bool m_debuggerStepScheduled;
239 bool m_pausingOnNativeEvent; 240 bool m_pausingOnNativeEvent;
240 Listener* m_listener; 241 Listener* m_listener;
241 242
242 int m_skippedStepInCount; 243 int m_skippedStepInCount;
243 int m_minFrameCountForSkip; 244 int m_minFrameCountForSkip;
244 bool m_skipAllPauses; 245 bool m_skipAllPauses;
245 OwnPtr<ScriptRegexp> m_cachedSkipStackRegExp; 246 OwnPtr<ScriptRegexp> m_cachedSkipStackRegExp;
246 AsyncCallStackTracker m_asyncCallStackTracker; 247 AsyncCallStackTracker m_asyncCallStackTracker;
247 }; 248 };
248 249
249 } // namespace WebCore 250 } // namespace WebCore
250 251
251 252
252 #endif // !defined(InspectorDebuggerAgent_h) 253 #endif // !defined(InspectorDebuggerAgent_h)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698