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 21 matching lines...) Expand all Loading... |
32 #define InspectorInstrumentationCustom_inl_h | 32 #define InspectorInstrumentationCustom_inl_h |
33 | 33 |
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 PassOwnPtr<ScriptSourceCode> preprocessImpl(InstrumentingAgents*, LocalFrame*, c
onst ScriptSourceCode&); | 42 ScriptSourceCode preprocessImpl(InstrumentingAgents*, LocalFrame*, const ScriptS
ourceCode&); |
43 String preprocessEventListenerImpl(InstrumentingAgents*, LocalFrame*, const Stri
ng& source, const String& url, const String& functionName); | 43 String preprocessEventListenerImpl(InstrumentingAgents*, LocalFrame*, const Stri
ng& source, const String& url, const String& functionName); |
44 void appendAsyncCallStack(ExecutionContext*, ScriptCallStack*); | 44 void appendAsyncCallStack(ExecutionContext*, ScriptCallStack*); |
45 | 45 |
46 bool canvasAgentEnabled(ExecutionContext*); | 46 bool canvasAgentEnabled(ExecutionContext*); |
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)
) |
(...skipping 10 matching lines...) Expand all Loading... |
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 PassOwnPtr<ScriptSourceCode> preprocess(LocalFrame* frame, const ScriptSo
urceCode& sourceCode) | 73 inline ScriptSourceCode preprocess(LocalFrame* frame, const ScriptSourceCode& so
urceCode) |
74 { | 74 { |
75 FAST_RETURN_IF_NO_FRONTENDS(PassOwnPtr<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 PassOwnPtr<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 // !defined(InspectorInstrumentationCustom_inl_h) | 85 #endif // InspectorInstrumentationCustom_inl_h |
OLD | NEW |