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

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

Issue 1129473003: DevTools: respond with error when Debugger command is sent to disabled debugger agent (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased Created 5 years, 7 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 194 matching lines...) Expand 10 before | Expand all | Expand 10 after
205 virtual InjectedScript injectedScriptForEval(ErrorString*, const int* execut ionContextId) = 0; 205 virtual InjectedScript injectedScriptForEval(ErrorString*, const int* execut ionContextId) = 0;
206 206
207 virtual void enable(); 207 virtual void enable();
208 virtual void disable(); 208 virtual void disable();
209 SkipPauseRequest didPause(ScriptState*, const ScriptValue& callFrames, const ScriptValue& exception, const Vector<String>& hitBreakpoints, bool isPromiseRej ection) final; 209 SkipPauseRequest didPause(ScriptState*, const ScriptValue& callFrames, const ScriptValue& exception, const Vector<String>& hitBreakpoints, bool isPromiseRej ection) final;
210 void didContinue() final; 210 void didContinue() final;
211 void reset(); 211 void reset();
212 void resetModifiedSources(); 212 void resetModifiedSources();
213 213
214 private: 214 private:
215 bool checkEnabled(ErrorString*);
216
215 SkipPauseRequest shouldSkipExceptionPause(); 217 SkipPauseRequest shouldSkipExceptionPause();
216 SkipPauseRequest shouldSkipStepPause(); 218 SkipPauseRequest shouldSkipStepPause();
217 219
218 void schedulePauseOnNextStatementIfSteppingInto(); 220 void schedulePauseOnNextStatementIfSteppingInto();
219 void cancelPauseOnNextStatement(); 221 void cancelPauseOnNextStatement();
220 void addMessageToConsole(MessageSource, MessageType); 222 void addMessageToConsole(MessageSource, MessageType);
221 223
222 PassRefPtr<TypeBuilder::Array<TypeBuilder::Debugger::CallFrame> > currentCal lFrames(); 224 PassRefPtr<TypeBuilder::Array<TypeBuilder::Debugger::CallFrame> > currentCal lFrames();
223 PassRefPtr<TypeBuilder::Debugger::StackTrace> currentAsyncStackTrace(); 225 PassRefPtr<TypeBuilder::Debugger::StackTrace> currentAsyncStackTrace();
224 226
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
303 int m_currentAsyncOperationId; 305 int m_currentAsyncOperationId;
304 bool m_pendingTraceAsyncOperationCompleted; 306 bool m_pendingTraceAsyncOperationCompleted;
305 bool m_startingStepIntoAsync; 307 bool m_startingStepIntoAsync;
306 WillBeHeapVector<RawPtrWillBeMember<AsyncCallTrackingListener>> m_asyncCallT rackingListeners; 308 WillBeHeapVector<RawPtrWillBeMember<AsyncCallTrackingListener>> m_asyncCallT rackingListeners;
307 }; 309 };
308 310
309 } // namespace blink 311 } // namespace blink
310 312
311 313
312 #endif // InspectorDebuggerAgent_h 314 #endif // InspectorDebuggerAgent_h
OLDNEW
« no previous file with comments | « Source/core/inspector/InspectorDOMDebuggerAgent.cpp ('k') | Source/core/inspector/InspectorDebuggerAgent.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698