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

Side by Side Diff: third_party/WebKit/Source/core/probe/CoreProbes.pidl

Issue 2797253005: Revert of [instrumentation] Turn inspector override "probes" return values into output parameters. (Closed)
Patch Set: Created 3 years, 8 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 24 matching lines...) Expand all
35 * The code below is not a correct IDL but a mix of IDL and C++. 35 * The code below is not a correct IDL but a mix of IDL and C++.
36 * 36 *
37 * The syntax for an instrumentation method is as follows: 37 * The syntax for an instrumentation method is as follows:
38 * 38 *
39 * returnValue methodName([paramAttr1] param1, [paramAttr2] param2, ...) 39 * returnValue methodName([paramAttr1] param1, [paramAttr2] param2, ...)
40 * 40 *
41 * Where: 41 * Where:
42 * paramAttr - optional attribute controlling the parameters handling (one att ribute per parameter max). 42 * paramAttr - optional attribute controlling the parameters handling (one att ribute per parameter max).
43 * Keep - pass first parameter (used to access the CoreProbeSink instance) to agents. 43 * Keep - pass first parameter (used to access the CoreProbeSink instance) to agents.
44 * 44 *
45 * returnValue: "void" for instant probes. 45 * returnValue: C++ return value. Only "void" and "bool" are supported.
46 * Omitted for the scoped probes. 46 * Omitted for the scoped probes.
47 * 47 *
48 * methodName: C++ name for the public instrumentation method and agents metho ds. 48 * methodName: C++ name for the public instrumentation method and agents metho ds.
49 * 49 *
50 * paramList: C++ parameter list with optional names. Names will be deduced fr om types if omitted but you have to 50 * paramList: C++ parameter list with optional names. Names will be deduced fr om types if omitted but you have to
51 * specify explicit names for multiple parameters of the same type. 51 * specify explicit names for multiple parameters of the same type.
52 * 52 *
53 * Parameters with type PassRefPtr<T> are converted to raw pointers, 53 * Parameters with type PassRefPtr<T> are converted to raw pointers,
54 * so reference will not be passed or released until all agents are notified. 54 * so reference will not be passed or released until all agents are notified.
55 */ 55 */
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 void didRunJavaScriptDialog(LocalFrame* frame, bool result); 149 void didRunJavaScriptDialog(LocalFrame* frame, bool result);
150 void documentWriteFetchScript([Keep] Document*); 150 void documentWriteFetchScript([Keep] Document*);
151 void didChangeViewport(LocalFrame* document); 151 void didChangeViewport(LocalFrame* document);
152 void breakableLocation(ExecutionContext* context, const char* name); 152 void breakableLocation(ExecutionContext* context, const char* name);
153 RecalculateStyle(Document* document); 153 RecalculateStyle(Document* document);
154 UpdateLayout(Document*); 154 UpdateLayout(Document*);
155 ExecuteScript([Keep] ExecutionContext* context); 155 ExecuteScript([Keep] ExecutionContext* context);
156 CallFunction([Keep] ExecutionContext* context, v8::Local<v8::Function> functio n, int depth = 0); 156 CallFunction([Keep] ExecutionContext* context, v8::Local<v8::Function> functio n, int depth = 0);
157 UserCallback([Keep] ExecutionContext* context, const char* name, const AtomicS tring& atomicName, bool recurring, EventTarget* eventTarget = nullptr); 157 UserCallback([Keep] ExecutionContext* context, const char* name, const AtomicS tring& atomicName, bool recurring, EventTarget* eventTarget = nullptr);
158 ParseHTML(Document* document, HTMLDocumentParser* parser); 158 ParseHTML(Document* document, HTMLDocumentParser* parser);
159 void forcePseudoState([Keep] Element* element, CSSSelector::PseudoType pseudoS tate, bool* result);
160 void shouldWaitForDebuggerOnWorkerStart(ExecutionContext* context, bool* resul t);
161 void shouldForceCORSPreflight(Document*, bool* result);
162 void shouldBlockRequest(LocalFrame*, const ResourceRequest&, bool* result);
163 } 159 }
160
161 interface InspectorOverrides {
162 bool forcePseudoState([Keep] Element* element, CSSSelector::PseudoType pseudoS tate);
163 bool shouldWaitForDebuggerOnWorkerStart(ExecutionContext* context);
164 bool shouldForceCORSPreflight(Document*);
165 bool shouldBlockRequest(LocalFrame*, const ResourceRequest&);
166 }
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/probe/CoreProbes.h ('k') | third_party/WebKit/Source/core/workers/WorkerInspectorProxy.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698