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

Side by Side Diff: Source/core/inspector/InspectorInstrumentation.idl

Issue 177773002: Support Promises instrumentation on backend. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fix in printing NULL parent promises Created 6 years, 10 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) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 * returnValue: C++ return value. Only "void" and "InspectorInstrumentationCook ie" are supported. 55 * returnValue: C++ return value. Only "void" and "InspectorInstrumentationCook ie" are supported.
56 * 56 *
57 * methodName: C++ name for the public instrumentation method and agents method s. 57 * methodName: C++ name for the public instrumentation method and agents method s.
58 * 58 *
59 * paramList: C++ parameter list with optional names. Names will be deduced fro m types if omitted but you have to 59 * paramList: C++ parameter list with optional names. Names will be deduced fro m types if omitted but you have to
60 * specify explicit names for multiple parameters of the same type. 60 * specify explicit names for multiple parameters of the same type.
61 */ 61 */
62 62
63 interface InspectorInstrumentation { 63 interface InspectorInstrumentation {
64 64
65 #include <v8.h>
aandrey 2014/02/25 12:36:07 introduce new interface InspectorPromiseInstrument
Alexandra Mikhaylova 2014/02/26 14:08:41 Done.
66 #include "bindings/v8/custom/V8PromiseCustom.h"
65 #include "core/dom/PseudoElement.h" 67 #include "core/dom/PseudoElement.h"
66 68
67 [Page, Inspector, PageDebugger, PageRuntime] 69 [Page, Inspector, PageDebugger, PageRuntime]
68 void didClearWindowObjectInMainWorld([Keep] Frame*); 70 void didClearWindowObjectInMainWorld([Keep] Frame*);
69 71
70 [DOMDebugger, Inline=FastReturn] 72 [DOMDebugger, Inline=FastReturn]
71 void willInsertDOMNode([Keep] Node* parent); 73 void willInsertDOMNode([Keep] Node* parent);
72 74
73 [DOM, DOMDebugger, Inline=FastReturn] 75 [DOM, DOMDebugger, Inline=FastReturn]
74 void didInsertDOMNode([Keep] Node*); 76 void didInsertDOMNode([Keep] Node*);
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
204 206
205 [Debugger, Inline=FastReturn] 207 [Debugger, Inline=FastReturn]
206 void didPostPromiseTask([Keep] ExecutionContext*, ExecutionContextTask*, boo l isResolved); 208 void didPostPromiseTask([Keep] ExecutionContext*, ExecutionContextTask*, boo l isResolved);
207 209
208 [Debugger, Inline=FastReturn] 210 [Debugger, Inline=FastReturn]
209 InspectorInstrumentationCookie willPerformPromiseTask([Keep] ExecutionContex t*, ExecutionContextTask*); 211 InspectorInstrumentationCookie willPerformPromiseTask([Keep] ExecutionContex t*, ExecutionContextTask*);
210 212
211 [Debugger, Inline=FastReturn] 213 [Debugger, Inline=FastReturn]
212 void didPerformPromiseTask(const InspectorInstrumentationCookie&); 214 void didPerformPromiseTask(const InspectorInstrumentationCookie&);
213 215
216 [Debugger, Inline=FastReturn]
217 void addPromise([Keep] ExecutionContext*, v8::Handle<v8::Object> promise, v8 ::Handle<v8::Object> parentPromise, V8PromiseCustom::PromiseState state);
218
219 [Debugger, Inline=FastReturn]
220 void updatePromiseParent([Keep] ExecutionContext*, v8::Handle<v8::Object> pr omise, v8::Handle<v8::Object> newParentPromise);
aandrey 2014/02/25 12:36:07 newParentPromise -> parent
Alexandra Mikhaylova 2014/02/26 14:08:41 I've done some renaming.
221
222 [Debugger, Inline=FastReturn]
223 void updatePromiseState([Keep] ExecutionContext*, v8::Handle<v8::Object> pro mise, V8PromiseCustom::PromiseState newState);
224
214 [Timeline, Inline=FastReturn] 225 [Timeline, Inline=FastReturn]
215 InspectorInstrumentationCookie willEvaluateScript([Keep] Frame*, const Strin g& url, int lineNumber); 226 InspectorInstrumentationCookie willEvaluateScript([Keep] Frame*, const Strin g& url, int lineNumber);
216 227
217 [Timeline, Inline=FastReturn] 228 [Timeline, Inline=FastReturn]
218 void didEvaluateScript(const InspectorInstrumentationCookie&); 229 void didEvaluateScript(const InspectorInstrumentationCookie&);
219 230
220 [PageRuntime, Inline=FastReturn] 231 [PageRuntime, Inline=FastReturn]
221 void didCreateIsolatedContext([Keep] Frame*, ScriptState*, SecurityOrigin*); 232 void didCreateIsolatedContext([Keep] Frame*, ScriptState*, SecurityOrigin*);
222 233
223 [DOMDebugger, Debugger, Timeline, Inline=FastReturn] 234 [DOMDebugger, Debugger, Timeline, Inline=FastReturn]
(...skipping 305 matching lines...) Expand 10 before | Expand all | Expand 10 after
529 interface InspectorCanvasInstrumentation { 540 interface InspectorCanvasInstrumentation {
530 541
531 #include "bindings/v8/ScriptObject.h" 542 #include "bindings/v8/ScriptObject.h"
532 543
533 [Canvas] 544 [Canvas]
534 ScriptObject wrapCanvas2DRenderingContextForInstrumentation(Document*, const ScriptObject&); 545 ScriptObject wrapCanvas2DRenderingContextForInstrumentation(Document*, const ScriptObject&);
535 546
536 [Canvas] 547 [Canvas]
537 ScriptObject wrapWebGLRenderingContextForInstrumentation(Document*, const Sc riptObject&); 548 ScriptObject wrapWebGLRenderingContextForInstrumentation(Document*, const Sc riptObject&);
538 } 549 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698