| 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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 bool consoleAgentEnabled(ExecutionContext*); | 47 bool consoleAgentEnabled(ExecutionContext*); |
| 48 | 48 |
| 49 inline bool isDebuggerPaused(LocalFrame* frame) | 49 inline bool isDebuggerPaused(LocalFrame* frame) |
| 50 { | 50 { |
| 51 FAST_RETURN_IF_NO_FRONTENDS(false); | 51 FAST_RETURN_IF_NO_FRONTENDS(false); |
| 52 if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsFor(frame)
) | 52 if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsFor(frame)
) |
| 53 return isDebuggerPausedImpl(instrumentingAgents); | 53 return isDebuggerPausedImpl(instrumentingAgents); |
| 54 return false; | 54 return false; |
| 55 } | 55 } |
| 56 | 56 |
| 57 inline bool collectingHTMLParseErrors(Document* document) | 57 inline bool collectingHTMLParseErrors(Page* page) |
| 58 { | 58 { |
| 59 FAST_RETURN_IF_NO_FRONTENDS(false); | 59 FAST_RETURN_IF_NO_FRONTENDS(false); |
| 60 if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsFor(docume
nt)) | 60 if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsFor(page)) |
| 61 return collectingHTMLParseErrorsImpl(instrumentingAgents); | 61 return collectingHTMLParseErrorsImpl(instrumentingAgents); |
| 62 return false; | 62 return false; |
| 63 } | 63 } |
| 64 | 64 |
| 65 inline String preprocessEventListener(LocalFrame* frame, const String& source, c
onst String& url, const String& functionName) | 65 inline String preprocessEventListener(LocalFrame* frame, const String& source, c
onst String& url, const String& functionName) |
| 66 { | 66 { |
| 67 FAST_RETURN_IF_NO_FRONTENDS(source); | 67 FAST_RETURN_IF_NO_FRONTENDS(source); |
| 68 if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsFor(frame)
) | 68 if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsFor(frame)
) |
| 69 return preprocessEventListenerImpl(instrumentingAgents, frame, source, u
rl, functionName); | 69 return preprocessEventListenerImpl(instrumentingAgents, frame, source, u
rl, functionName); |
| 70 return source; | 70 return source; |
| 71 } | 71 } |
| 72 | 72 |
| 73 inline ScriptSourceCode preprocess(LocalFrame* frame, const ScriptSourceCode& so
urceCode) | 73 inline ScriptSourceCode preprocess(LocalFrame* frame, const ScriptSourceCode& so
urceCode) |
| 74 { | 74 { |
| 75 FAST_RETURN_IF_NO_FRONTENDS(ScriptSourceCode()); | 75 FAST_RETURN_IF_NO_FRONTENDS(ScriptSourceCode()); |
| 76 if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsFor(frame)
) | 76 if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsFor(frame)
) |
| 77 return preprocessImpl(instrumentingAgents, frame, sourceCode); | 77 return preprocessImpl(instrumentingAgents, frame, sourceCode); |
| 78 return ScriptSourceCode(); | 78 return ScriptSourceCode(); |
| 79 } | 79 } |
| 80 | 80 |
| 81 } // namespace InspectorInstrumentation | 81 } // namespace InspectorInstrumentation |
| 82 | 82 |
| 83 } // namespace blink | 83 } // namespace blink |
| 84 | 84 |
| 85 #endif // InspectorInstrumentationCustom_inl_h | 85 #endif // InspectorInstrumentationCustom_inl_h |
| OLD | NEW |