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

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: Address review comments + track Promise result 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 184 matching lines...) Expand 10 before | Expand all | Expand 10 after
195 195
196 [Debugger, Inline=FastReturn] 196 [Debugger, Inline=FastReturn]
197 void didClearAllMutationRecords([Keep] ExecutionContext*, MutationObserver*) ; 197 void didClearAllMutationRecords([Keep] ExecutionContext*, MutationObserver*) ;
198 198
199 [Debugger, Inline=FastReturn] 199 [Debugger, Inline=FastReturn]
200 void willDeliverMutationRecords([Keep] ExecutionContext*, MutationObserver*) ; 200 void willDeliverMutationRecords([Keep] ExecutionContext*, MutationObserver*) ;
201 201
202 [Debugger, Inline=FastReturn] 202 [Debugger, Inline=FastReturn]
203 void didDeliverMutationRecords(ExecutionContext*); 203 void didDeliverMutationRecords(ExecutionContext*);
204 204
205 [Debugger, Inline=FastReturn]
206 void didPostPromiseTask([Keep] ExecutionContext*, ExecutionContextTask*, boo l isResolved);
207
208 [Debugger, Inline=FastReturn]
209 InspectorInstrumentationCookie willPerformPromiseTask([Keep] ExecutionContex t*, ExecutionContextTask*);
210
211 [Debugger, Inline=FastReturn]
212 void didPerformPromiseTask(const InspectorInstrumentationCookie&);
213
214 [Timeline, Inline=FastReturn] 205 [Timeline, Inline=FastReturn]
215 InspectorInstrumentationCookie willEvaluateScript([Keep] Frame*, const Strin g& url, int lineNumber); 206 InspectorInstrumentationCookie willEvaluateScript([Keep] Frame*, const Strin g& url, int lineNumber);
216 207
217 [Timeline, Inline=FastReturn] 208 [Timeline, Inline=FastReturn]
218 void didEvaluateScript(const InspectorInstrumentationCookie&); 209 void didEvaluateScript(const InspectorInstrumentationCookie&);
219 210
220 [PageRuntime, Inline=FastReturn] 211 [PageRuntime, Inline=FastReturn]
221 void didCreateIsolatedContext([Keep] Frame*, ScriptState*, SecurityOrigin*); 212 void didCreateIsolatedContext([Keep] Frame*, ScriptState*, SecurityOrigin*);
222 213
223 [DOMDebugger, Debugger, Timeline, Inline=FastReturn] 214 [DOMDebugger, Debugger, Timeline, Inline=FastReturn]
(...skipping 305 matching lines...) Expand 10 before | Expand all | Expand 10 after
529 interface InspectorCanvasInstrumentation { 520 interface InspectorCanvasInstrumentation {
530 521
531 #include "bindings/v8/ScriptObject.h" 522 #include "bindings/v8/ScriptObject.h"
532 523
533 [Canvas] 524 [Canvas]
534 ScriptObject wrapCanvas2DRenderingContextForInstrumentation(Document*, const ScriptObject&); 525 ScriptObject wrapCanvas2DRenderingContextForInstrumentation(Document*, const ScriptObject&);
535 526
536 [Canvas] 527 [Canvas]
537 ScriptObject wrapWebGLRenderingContextForInstrumentation(Document*, const Sc riptObject&); 528 ScriptObject wrapWebGLRenderingContextForInstrumentation(Document*, const Sc riptObject&);
538 } 529 }
530
531
532 interface InspectorPromiseInstrumentation {
533
534 #include <v8.h>
535 #include "bindings/v8/custom/V8PromiseCustom.h"
536
537 [Debugger, Inline=FastReturn]
538 void didPostPromiseTask([Keep] ExecutionContext*, ExecutionContextTask*, boo l isResolved);
539
540 [Debugger, Inline=FastReturn]
541 InspectorInstrumentationCookie willPerformPromiseTask([Keep] ExecutionContex t*, ExecutionContextTask*);
542
543 [Debugger, Inline=FastReturn]
544 void didPerformPromiseTask(const InspectorInstrumentationCookie&);
545
546 [Debugger, Inline=FastReturn]
547 void addPromise([Keep] ExecutionContext*, v8::Handle<v8::Object> promise, v8 ::Handle<v8::Object> parentPromise, V8PromiseCustom::PromiseState state = V8Prom iseCustom::Pending);
aandrey 2014/02/26 16:11:30 addPromise -> didCreatePromise
Alexandra Mikhaylova 2014/02/28 13:52:05 Done.
548
549 [Debugger, Inline=FastReturn]
550 void setPromiseParent([Keep] ExecutionContext*, v8::Handle<v8::Object> promi se, v8::Handle<v8::Object> parentPromise);
aandrey 2014/02/26 16:11:30 didUpdatePromiseParent
Alexandra Mikhaylova 2014/02/28 13:52:05 Done.
551
552 [Debugger, Inline=FastReturn]
553 void setPromiseStateAndResult([Keep] ExecutionContext*, v8::Handle<v8::Objec t> promise, v8::Handle<v8::Value> result, V8PromiseCustom::PromiseState state);
aandrey 2014/02/26 16:11:30 didUpdatePromiseState
Alexandra Mikhaylova 2014/02/28 13:52:05 Done.
554 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698