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

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: Addressed comments, added checks in DOMDebugger 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 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 void setVariableValue(ErrorString*, int in_scopeNumber, const String& in_var iableName, const RefPtr<JSONObject>& in_newValue, const String* in_callFrame, co nst String* in_functionObjectId) final; 134 void setVariableValue(ErrorString*, int in_scopeNumber, const String& in_var iableName, const RefPtr<JSONObject>& in_newValue, const String* in_callFrame, co nst String* in_functionObjectId) final;
135 void skipStackFrames(ErrorString*, const String* pattern, const bool* skipCo ntentScripts) final; 135 void skipStackFrames(ErrorString*, const String* pattern, const bool* skipCo ntentScripts) final;
136 void setAsyncCallStackDepth(ErrorString*, int depth) final; 136 void setAsyncCallStackDepth(ErrorString*, int depth) final;
137 void enablePromiseTracker(ErrorString*, const bool* captureStacks) final; 137 void enablePromiseTracker(ErrorString*, const bool* captureStacks) final;
138 void disablePromiseTracker(ErrorString*) final; 138 void disablePromiseTracker(ErrorString*) final;
139 void getPromiseById(ErrorString*, int promiseId, const String* objectGroup, RefPtr<TypeBuilder::Runtime::RemoteObject>& promise) final; 139 void getPromiseById(ErrorString*, int promiseId, const String* objectGroup, RefPtr<TypeBuilder::Runtime::RemoteObject>& promise) final;
140 void flushAsyncOperationEvents(ErrorString*) final; 140 void flushAsyncOperationEvents(ErrorString*) final;
141 void setAsyncOperationBreakpoint(ErrorString*, int operationId) final; 141 void setAsyncOperationBreakpoint(ErrorString*, int operationId) final;
142 void removeAsyncOperationBreakpoint(ErrorString*, int operationId) final; 142 void removeAsyncOperationBreakpoint(ErrorString*, int operationId) final;
143 143
144 bool checkEnabled(ErrorString*) override;
144 void schedulePauseOnNextStatement(InspectorFrontend::Debugger::Reason::Enum breakReason, PassRefPtr<JSONObject> data); 145 void schedulePauseOnNextStatement(InspectorFrontend::Debugger::Reason::Enum breakReason, PassRefPtr<JSONObject> data);
145 void didFireTimer(); 146 void didFireTimer();
146 void didHandleEvent(); 147 void didHandleEvent();
147 bool canBreakProgram(); 148 bool canBreakProgram();
148 void breakProgram(InspectorFrontend::Debugger::Reason::Enum breakReason, Pas sRefPtr<JSONObject> data); 149 void breakProgram(InspectorFrontend::Debugger::Reason::Enum breakReason, Pas sRefPtr<JSONObject> data);
149 void scriptExecutionBlockedByCSP(const String& directiveText); 150 void scriptExecutionBlockedByCSP(const String& directiveText);
150 void willCallFunction(ExecutionContext*, const DevToolsFunctionInfo&); 151 void willCallFunction(ExecutionContext*, const DevToolsFunctionInfo&);
151 void didCallFunction(); 152 void didCallFunction();
152 void willEvaluateScript(LocalFrame*, const String& url, int lineNumber); 153 void willEvaluateScript(LocalFrame*, const String& url, int lineNumber);
153 void didEvaluateScript(); 154 void didEvaluateScript();
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
303 int m_currentAsyncOperationId; 304 int m_currentAsyncOperationId;
304 bool m_pendingTraceAsyncOperationCompleted; 305 bool m_pendingTraceAsyncOperationCompleted;
305 bool m_startingStepIntoAsync; 306 bool m_startingStepIntoAsync;
306 WillBeHeapVector<RawPtrWillBeMember<AsyncCallTrackingListener>> m_asyncCallT rackingListeners; 307 WillBeHeapVector<RawPtrWillBeMember<AsyncCallTrackingListener>> m_asyncCallT rackingListeners;
307 }; 308 };
308 309
309 } // namespace blink 310 } // namespace blink
310 311
311 312
312 #endif // InspectorDebuggerAgent_h 313 #endif // InspectorDebuggerAgent_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698