| 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 23 matching lines...) Expand all Loading... |
| 34 #include "bindings/core/v8/ScriptSourceCode.h" | 34 #include "bindings/core/v8/ScriptSourceCode.h" |
| 35 | 35 |
| 36 namespace blink { | 36 namespace blink { |
| 37 | 37 |
| 38 namespace InspectorInstrumentation { | 38 namespace InspectorInstrumentation { |
| 39 | 39 |
| 40 bool isDebuggerPausedImpl(InstrumentingAgents*); | 40 bool isDebuggerPausedImpl(InstrumentingAgents*); |
| 41 bool collectingHTMLParseErrorsImpl(InstrumentingAgents*); | 41 bool collectingHTMLParseErrorsImpl(InstrumentingAgents*); |
| 42 void appendAsyncCallStack(ExecutionContext*, ScriptCallStack*); | 42 void appendAsyncCallStack(ExecutionContext*, ScriptCallStack*); |
| 43 | 43 |
| 44 bool canvasAgentEnabled(ExecutionContext*); | |
| 45 bool consoleAgentEnabled(ExecutionContext*); | 44 bool consoleAgentEnabled(ExecutionContext*); |
| 46 | 45 |
| 47 inline bool isDebuggerPaused(LocalFrame* frame) | 46 inline bool isDebuggerPaused(LocalFrame* frame) |
| 48 { | 47 { |
| 49 FAST_RETURN_IF_NO_FRONTENDS(false); | 48 FAST_RETURN_IF_NO_FRONTENDS(false); |
| 50 if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsFor(frame)
) | 49 if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsFor(frame)
) |
| 51 return isDebuggerPausedImpl(instrumentingAgents); | 50 return isDebuggerPausedImpl(instrumentingAgents); |
| 52 return false; | 51 return false; |
| 53 } | 52 } |
| 54 | 53 |
| 55 inline bool collectingHTMLParseErrors(Document* document) | 54 inline bool collectingHTMLParseErrors(Document* document) |
| 56 { | 55 { |
| 57 FAST_RETURN_IF_NO_FRONTENDS(false); | 56 FAST_RETURN_IF_NO_FRONTENDS(false); |
| 58 if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsFor(docume
nt)) | 57 if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsFor(docume
nt)) |
| 59 return collectingHTMLParseErrorsImpl(instrumentingAgents); | 58 return collectingHTMLParseErrorsImpl(instrumentingAgents); |
| 60 return false; | 59 return false; |
| 61 } | 60 } |
| 62 | 61 |
| 63 } // namespace InspectorInstrumentation | 62 } // namespace InspectorInstrumentation |
| 64 | 63 |
| 65 } // namespace blink | 64 } // namespace blink |
| 66 | 65 |
| 67 #endif // InspectorInstrumentationCustom_inl_h | 66 #endif // InspectorInstrumentationCustom_inl_h |
| OLD | NEW |