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

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

Issue 2760363002: [instrumentation] Generalize instrumentation to be used beyond the core layer (Closed)
Patch Set: Created 3 years, 9 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 26 matching lines...) Expand all
37 * The syntax for an instrumentation method is as follows: 37 * The syntax for an instrumentation method is as follows:
38 * 38 *
39 * [methodAttributes] returnValue methodName([paramAttr1] param1, [paramAttr2] param2, ...) 39 * [methodAttributes] returnValue methodName([paramAttr1] param1, [paramAttr2] param2, ...)
40 * 40 *
41 * Where: 41 * Where:
42 * methodAttributes - optional list of method attributes. 42 * methodAttributes - optional list of method attributes.
43 * Attributes without "=" are the names of the agents to be invoked. 43 * Attributes without "=" are the names of the agents to be invoked.
44 * Examples: DOM, Page, Debugger. 44 * Examples: DOM, Page, Debugger.
45 * 45 *
46 * paramAttr - optional attribute controlling the parameters handling (one attr ibute per parameter max). 46 * paramAttr - optional attribute controlling the parameters handling (one attr ibute per parameter max).
47 * Keep - pass first parameter (used to access the InstrumentingAgents inst ance) to agents. 47 * Keep - pass first parameter (used to access the InspectorInstrumentation Agents instance) to agents.
48 * 48 *
49 * returnValue: C++ return value. Only "void" and "bool" are supported. 49 * returnValue: C++ return value. Only "void" and "bool" are supported.
50 * 50 *
51 * methodName: C++ name for the public instrumentation method and agents method s. 51 * methodName: C++ name for the public instrumentation method and agents method s.
52 * 52 *
53 * paramList: C++ parameter list with optional names. Names will be deduced fro m types if omitted but you have to 53 * paramList: C++ parameter list with optional names. Names will be deduced fro m types if omitted but you have to
54 * specify explicit names for multiple parameters of the same type. 54 * specify explicit names for multiple parameters of the same type.
55 * 55 *
56 * Parameters with type PassRefPtr<T> are converted to raw pointers, 56 * Parameters with type PassRefPtr<T> are converted to raw pointers,
57 * so reference will not be passed or released until all agents are notified. 57 * so reference will not be passed or released until all agents are notified.
58 */ 58 */
59 59
60 interface InspectorInstrumentation { 60 interface InspectorInstrumentation {
61 61
62 #include "core/animation/Animation.h" 62 #include "core/animation/Animation.h"
63 #include "core/dom/CharacterData.h" 63 #include "core/dom/CharacterData.h"
64 #include "core/dom/PseudoElement.h" 64 #include "core/dom/PseudoElement.h"
65 #include "core/html/HTMLSlotElement.h" 65 #include "core/html/HTMLSlotElement.h"
66 66
67 #define PROBE_EXPORT CORE_EXPORT
68
67 class ConsoleMessage; 69 class ConsoleMessage;
68 class HTMLDocumentParser; 70 class HTMLDocumentParser;
69 class ThreadableLoaderClient; 71 class ThreadableLoaderClient;
70 class WebSocketHandshakeRequest; 72 class WebSocketHandshakeRequest;
71 class WebSocketHandshakeResponse; 73 class WebSocketHandshakeResponse;
72 class WorkerInspectorProxy; 74 class WorkerInspectorProxy;
73 class XMLHttpRequest; 75 class XMLHttpRequest;
74 76
75 [Page, Animation] 77 [Page, Animation]
76 void didClearDocumentOfWindowObject([Keep] LocalFrame*); 78 void didClearDocumentOfWindowObject([Keep] LocalFrame*);
(...skipping 264 matching lines...) Expand 10 before | Expand all | Expand 10 after
341 CallFunction([Keep] ExecutionContext* context, v8::Local<v8::Function> funct ion, int depth = 0); 343 CallFunction([Keep] ExecutionContext* context, v8::Local<v8::Function> funct ion, int depth = 0);
342 344
343 [Performance, DOMDebugger] 345 [Performance, DOMDebugger]
344 UserCallback([Keep] ExecutionContext* context, const char* name, const Atomi cString& atomicName, bool recurring, EventTarget* eventTarget = nullptr); 346 UserCallback([Keep] ExecutionContext* context, const char* name, const Atomi cString& atomicName, bool recurring, EventTarget* eventTarget = nullptr);
345 347
346 [TraceEvents] 348 [TraceEvents]
347 ParseHTML(Document* document, HTMLDocumentParser* parser); 349 ParseHTML(Document* document, HTMLDocumentParser* parser);
348 } 350 }
349 351
350 interface InspectorOverrides { 352 interface InspectorOverrides {
353
354 #define PROBE_EXPORT CORE_EXPORT
pfeldman 2017/03/22 01:39:28 This is codegen config.
alph 2017/03/22 22:09:16 An upcoming patch will introduce a config. Current
355
351 [CSS] 356 [CSS]
352 bool forcePseudoState([Keep] Element* element, CSSSelector::PseudoType pseud oState); 357 bool forcePseudoState([Keep] Element* element, CSSSelector::PseudoType pseud oState);
353 358
354 [Worker] 359 [Worker]
355 bool shouldWaitForDebuggerOnWorkerStart(ExecutionContext* context); 360 bool shouldWaitForDebuggerOnWorkerStart(ExecutionContext* context);
356 361
357 [Network] 362 [Network]
358 bool shouldForceCORSPreflight(Document*); 363 bool shouldForceCORSPreflight(Document*);
359 364
360 [Network] 365 [Network]
361 bool shouldBlockRequest(LocalFrame*, const ResourceRequest&); 366 bool shouldBlockRequest(LocalFrame*, const ResourceRequest&);
362 } 367 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698