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

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

Issue 529723002: [WIP] Protocol for sending information about Promises to frontend. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Address comments + REBASE Created 6 years, 3 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 /* 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 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 const bool* generatePreview, 139 const bool* generatePreview,
140 RefPtr<TypeBuilder::Runtime::RemoteObject>& result, 140 RefPtr<TypeBuilder::Runtime::RemoteObject>& result,
141 TypeBuilder::OptOutput<bool>* wasThrown, 141 TypeBuilder::OptOutput<bool>* wasThrown,
142 RefPtr<TypeBuilder::Debugger::ExceptionDetails>&) OVERRIDE FINAL; 142 RefPtr<TypeBuilder::Debugger::ExceptionDetails>&) OVERRIDE FINAL;
143 virtual void compileScript(ErrorString*, const String& expression, const Str ing& sourceURL, const int* executionContextId, TypeBuilder::OptOutput<TypeBuilde r::Debugger::ScriptId>*, RefPtr<TypeBuilder::Debugger::ExceptionDetails>&) OVERR IDE; 143 virtual void compileScript(ErrorString*, const String& expression, const Str ing& sourceURL, const int* executionContextId, TypeBuilder::OptOutput<TypeBuilde r::Debugger::ScriptId>*, RefPtr<TypeBuilder::Debugger::ExceptionDetails>&) OVERR IDE;
144 virtual void runScript(ErrorString*, const TypeBuilder::Debugger::ScriptId&, const int* executionContextId, const String* objectGroup, const bool* doNotPaus eOnExceptionsAndMuteConsole, RefPtr<TypeBuilder::Runtime::RemoteObject>& result, RefPtr<TypeBuilder::Debugger::ExceptionDetails>&) OVERRIDE; 144 virtual void runScript(ErrorString*, const TypeBuilder::Debugger::ScriptId&, const int* executionContextId, const String* objectGroup, const bool* doNotPaus eOnExceptionsAndMuteConsole, RefPtr<TypeBuilder::Runtime::RemoteObject>& result, RefPtr<TypeBuilder::Debugger::ExceptionDetails>&) OVERRIDE;
145 virtual void setOverlayMessage(ErrorString*, const String*) OVERRIDE; 145 virtual void setOverlayMessage(ErrorString*, const String*) OVERRIDE;
146 virtual void setVariableValue(ErrorString*, int in_scopeNumber, const String & in_variableName, const RefPtr<JSONObject>& in_newValue, const String* in_callF rame, const String* in_functionObjectId) OVERRIDE FINAL; 146 virtual void setVariableValue(ErrorString*, int in_scopeNumber, const String & in_variableName, const RefPtr<JSONObject>& in_newValue, const String* in_callF rame, const String* in_functionObjectId) OVERRIDE FINAL;
147 virtual void skipStackFrames(ErrorString*, const String* pattern, const bool * skipContentScripts) OVERRIDE FINAL; 147 virtual void skipStackFrames(ErrorString*, const String* pattern, const bool * skipContentScripts) OVERRIDE FINAL;
148 virtual void setAsyncCallStackDepth(ErrorString*, int depth) OVERRIDE FINAL; 148 virtual void setAsyncCallStackDepth(ErrorString*, int depth) OVERRIDE FINAL;
149 virtual void enablePromiseTracker(ErrorString*) OVERRIDE FINAL;
150 virtual void disablePromiseTracker(ErrorString*) OVERRIDE FINAL;
151 virtual void getPromises(ErrorString*, RefPtr<TypeBuilder::Array<TypeBuilder ::Debugger::PromiseDetails> >& promises) OVERRIDE FINAL;
149 152
150 void schedulePauseOnNextStatement(InspectorFrontend::Debugger::Reason::Enum breakReason, PassRefPtr<JSONObject> data); 153 void schedulePauseOnNextStatement(InspectorFrontend::Debugger::Reason::Enum breakReason, PassRefPtr<JSONObject> data);
151 void didInstallTimer(ExecutionContext*, int timerId, int timeout, bool singl eShot); 154 void didInstallTimer(ExecutionContext*, int timerId, int timeout, bool singl eShot);
152 void didRemoveTimer(ExecutionContext*, int timerId); 155 void didRemoveTimer(ExecutionContext*, int timerId);
153 bool willFireTimer(ExecutionContext*, int timerId); 156 bool willFireTimer(ExecutionContext*, int timerId);
154 void didFireTimer(); 157 void didFireTimer();
155 void didRequestAnimationFrame(Document*, int callbackId); 158 void didRequestAnimationFrame(Document*, int callbackId);
156 void didCancelAnimationFrame(Document*, int callbackId); 159 void didCancelAnimationFrame(Document*, int callbackId);
157 bool willFireAnimationFrame(Document*, int callbackId); 160 bool willFireAnimationFrame(Document*, int callbackId);
158 void didFireAnimationFrame(); 161 void didFireAnimationFrame();
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
269 bool m_skipContentScripts; 272 bool m_skipContentScripts;
270 OwnPtr<ScriptRegexp> m_cachedSkipStackRegExp; 273 OwnPtr<ScriptRegexp> m_cachedSkipStackRegExp;
271 OwnPtrWillBeMember<AsyncCallStackTracker> m_asyncCallStackTracker; 274 OwnPtrWillBeMember<AsyncCallStackTracker> m_asyncCallStackTracker;
272 PromiseTracker m_promiseTracker; 275 PromiseTracker m_promiseTracker;
273 }; 276 };
274 277
275 } // namespace blink 278 } // namespace blink
276 279
277 280
278 #endif // !defined(InspectorDebuggerAgent_h) 281 #endif // !defined(InspectorDebuggerAgent_h)
OLDNEW
« no previous file with comments | « LayoutTests/inspector/sources/debugger/promise-tracker-expected.txt ('k') | Source/core/inspector/InspectorDebuggerAgent.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698