OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 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 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
124 } | 124 } |
125 } | 125 } |
126 | 126 |
127 bool collectingHTMLParseErrorsImpl(InstrumentingAgents* instrumentingAgents) | 127 bool collectingHTMLParseErrorsImpl(InstrumentingAgents* instrumentingAgents) |
128 { | 128 { |
129 if (InspectorInspectorAgent* inspectorAgent = instrumentingAgents->inspector
InspectorAgent()) | 129 if (InspectorInspectorAgent* inspectorAgent = instrumentingAgents->inspector
InspectorAgent()) |
130 return inspectorAgent->hasFrontend(); | 130 return inspectorAgent->hasFrontend(); |
131 return false; | 131 return false; |
132 } | 132 } |
133 | 133 |
134 PassOwnPtr<ScriptSourceCode> preprocessImpl(InstrumentingAgents* instrumentingAg
ents, LocalFrame* frame, const ScriptSourceCode& sourceCode) | 134 ScriptSourceCode preprocessImpl(InstrumentingAgents* instrumentingAgents, LocalF
rame* frame, const ScriptSourceCode& sourceCode) |
135 { | 135 { |
136 if (InspectorDebuggerAgent* debuggerAgent = instrumentingAgents->inspectorDe
buggerAgent()) | 136 if (InspectorDebuggerAgent* debuggerAgent = instrumentingAgents->inspectorDe
buggerAgent()) |
137 return debuggerAgent->preprocess(frame, sourceCode); | 137 return debuggerAgent->preprocess(frame, sourceCode); |
138 return PassOwnPtr<ScriptSourceCode>(); | 138 return ScriptSourceCode(); |
139 } | 139 } |
140 | 140 |
141 String preprocessEventListenerImpl(InstrumentingAgents* instrumentingAgents, Loc
alFrame* frame, const String& source, const String& url, const String& functionN
ame) | 141 String preprocessEventListenerImpl(InstrumentingAgents* instrumentingAgents, Loc
alFrame* frame, const String& source, const String& url, const String& functionN
ame) |
142 { | 142 { |
143 if (InspectorDebuggerAgent* debuggerAgent = instrumentingAgents->inspectorDe
buggerAgent()) | 143 if (InspectorDebuggerAgent* debuggerAgent = instrumentingAgents->inspectorDe
buggerAgent()) |
144 return debuggerAgent->preprocessEventListener(frame, source, url, functi
onName); | 144 return debuggerAgent->preprocessEventListener(frame, source, url, functi
onName); |
145 return source; | 145 return source; |
146 } | 146 } |
147 | 147 |
148 void appendAsyncCallStack(ExecutionContext* executionContext, ScriptCallStack* c
allStack) | 148 void appendAsyncCallStack(ExecutionContext* executionContext, ScriptCallStack* c
allStack) |
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
262 | 262 |
263 InstrumentingAgents* instrumentationForWorkerGlobalScope(WorkerGlobalScope* work
erGlobalScope) | 263 InstrumentingAgents* instrumentationForWorkerGlobalScope(WorkerGlobalScope* work
erGlobalScope) |
264 { | 264 { |
265 if (WorkerInspectorController* controller = workerGlobalScope->workerInspect
orController()) | 265 if (WorkerInspectorController* controller = workerGlobalScope->workerInspect
orController()) |
266 return controller->m_instrumentingAgents.get(); | 266 return controller->m_instrumentingAgents.get(); |
267 return 0; | 267 return 0; |
268 } | 268 } |
269 | 269 |
270 } // namespace blink | 270 } // namespace blink |
271 | 271 |
OLD | NEW |