| OLD | NEW |
| 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 Loading... |
| 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 InspectorInstrumentation
Agents instance) to agents. | 47 * Keep - pass first parameter (used to access the CoreProbeSink 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 CoreProbes { |
| 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 | 67 #define PROBE_EXPORT CORE_EXPORT |
| 68 | 68 |
| 69 class ConsoleMessage; | 69 class ConsoleMessage; |
| 70 class HTMLDocumentParser; | 70 class HTMLDocumentParser; |
| (...skipping 287 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 358 | 358 |
| 359 [Worker] | 359 [Worker] |
| 360 bool shouldWaitForDebuggerOnWorkerStart(ExecutionContext* context); | 360 bool shouldWaitForDebuggerOnWorkerStart(ExecutionContext* context); |
| 361 | 361 |
| 362 [Network] | 362 [Network] |
| 363 bool shouldForceCORSPreflight(Document*); | 363 bool shouldForceCORSPreflight(Document*); |
| 364 | 364 |
| 365 [Network] | 365 [Network] |
| 366 bool shouldBlockRequest(LocalFrame*, const ResourceRequest&); | 366 bool shouldBlockRequest(LocalFrame*, const ResourceRequest&); |
| 367 } | 367 } |
| OLD | NEW |