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 25 matching lines...) Expand all Loading... |
36 namespace InspectorInstrumentation { | 36 namespace InspectorInstrumentation { |
37 | 37 |
38 bool isDebuggerPausedImpl(InstrumentingAgents*); | 38 bool isDebuggerPausedImpl(InstrumentingAgents*); |
39 bool collectingHTMLParseErrorsImpl(InstrumentingAgents*); | 39 bool collectingHTMLParseErrorsImpl(InstrumentingAgents*); |
40 PassOwnPtr<ScriptSourceCode> preprocessImpl(InstrumentingAgents*, LocalFrame*, c
onst ScriptSourceCode&); | 40 PassOwnPtr<ScriptSourceCode> preprocessImpl(InstrumentingAgents*, LocalFrame*, c
onst ScriptSourceCode&); |
41 String preprocessEventListenerImpl(InstrumentingAgents*, LocalFrame*, const Stri
ng& source, const String& url, const String& functionName); | 41 String preprocessEventListenerImpl(InstrumentingAgents*, LocalFrame*, const Stri
ng& source, const String& url, const String& functionName); |
42 void appendAsyncCallStack(ExecutionContext*, ScriptCallStack*); | 42 void appendAsyncCallStack(ExecutionContext*, ScriptCallStack*); |
43 | 43 |
44 bool canvasAgentEnabled(ExecutionContext*); | 44 bool canvasAgentEnabled(ExecutionContext*); |
45 bool consoleAgentEnabled(ExecutionContext*); | 45 bool consoleAgentEnabled(ExecutionContext*); |
46 bool timelineAgentEnabled(ExecutionContext*); | |
47 | 46 |
48 inline bool isDebuggerPaused(LocalFrame* frame) | 47 inline bool isDebuggerPaused(LocalFrame* frame) |
49 { | 48 { |
50 FAST_RETURN_IF_NO_FRONTENDS(false); | 49 FAST_RETURN_IF_NO_FRONTENDS(false); |
51 if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsFor(frame)
) | 50 if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsFor(frame)
) |
52 return isDebuggerPausedImpl(instrumentingAgents); | 51 return isDebuggerPausedImpl(instrumentingAgents); |
53 return false; | 52 return false; |
54 } | 53 } |
55 | 54 |
56 inline bool collectingHTMLParseErrors(Page* page) | 55 inline bool collectingHTMLParseErrors(Page* page) |
(...skipping 18 matching lines...) Expand all Loading... |
75 if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsFor(frame)
) | 74 if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsFor(frame)
) |
76 return preprocessImpl(instrumentingAgents, frame, sourceCode); | 75 return preprocessImpl(instrumentingAgents, frame, sourceCode); |
77 return PassOwnPtr<ScriptSourceCode>(); | 76 return PassOwnPtr<ScriptSourceCode>(); |
78 } | 77 } |
79 | 78 |
80 } // namespace InspectorInstrumentation | 79 } // namespace InspectorInstrumentation |
81 | 80 |
82 } // namespace blink | 81 } // namespace blink |
83 | 82 |
84 #endif // !defined(InspectorInstrumentationCustom_inl_h) | 83 #endif // !defined(InspectorInstrumentationCustom_inl_h) |
OLD | NEW |