| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2010 Apple Inc. All rights reserved. | 2 * Copyright (C) 2010 Apple Inc. All rights reserved. |
| 3 * Copyright (C) 2013 Google Inc. All rights reserved. | 3 * Copyright (C) 2013 Google Inc. All rights reserved. |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
| 7 * are met: | 7 * are met: |
| 8 * | 8 * |
| 9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. Redistributions of source code must retain the above copyright |
| 10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
| (...skipping 265 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 276 | 276 |
| 277 void InspectorDebuggerAgent::scriptExecutionBlockedByCSP(const String& directive
Text) | 277 void InspectorDebuggerAgent::scriptExecutionBlockedByCSP(const String& directive
Text) |
| 278 { | 278 { |
| 279 if (m_v8DebuggerAgent->debugger().pauseOnExceptionsState() == V8Debugger::Do
ntPauseOnExceptions) | 279 if (m_v8DebuggerAgent->debugger().pauseOnExceptionsState() == V8Debugger::Do
ntPauseOnExceptions) |
| 280 return; | 280 return; |
| 281 RefPtr<JSONObject> directive = JSONObject::create(); | 281 RefPtr<JSONObject> directive = JSONObject::create(); |
| 282 directive->setString("directiveText", directiveText); | 282 directive->setString("directiveText", directiveText); |
| 283 m_v8DebuggerAgent->breakProgram(InspectorFrontend::Debugger::Reason::CSPViol
ation, directive.release()); | 283 m_v8DebuggerAgent->breakProgram(InspectorFrontend::Debugger::Reason::CSPViol
ation, directive.release()); |
| 284 } | 284 } |
| 285 | 285 |
| 286 void InspectorDebuggerAgent::willCallFunction(const DevToolsFunctionInfo& info) | 286 void InspectorDebuggerAgent::willExecuteScript(int scriptId) |
| 287 { | 287 { |
| 288 m_v8DebuggerAgent->willCallFunction(info.scriptId()); | 288 m_v8DebuggerAgent->willExecuteScript(scriptId); |
| 289 } | 289 } |
| 290 | 290 |
| 291 void InspectorDebuggerAgent::didCallFunction() | 291 void InspectorDebuggerAgent::didExecuteScript() |
| 292 { | 292 { |
| 293 m_v8DebuggerAgent->didCallFunction(); | 293 m_v8DebuggerAgent->didExecuteScript(); |
| 294 } | |
| 295 | |
| 296 void InspectorDebuggerAgent::willEvaluateScript() | |
| 297 { | |
| 298 m_v8DebuggerAgent->willEvaluateScript(); | |
| 299 } | |
| 300 | |
| 301 void InspectorDebuggerAgent::didEvaluateScript() | |
| 302 { | |
| 303 m_v8DebuggerAgent->didEvaluateScript(); | |
| 304 } | 294 } |
| 305 | 295 |
| 306 // InspectorBaseAgent overrides. | 296 // InspectorBaseAgent overrides. |
| 307 void InspectorDebuggerAgent::init() | 297 void InspectorDebuggerAgent::init() |
| 308 { | 298 { |
| 309 m_v8DebuggerAgent->setInspectorState(m_state); | 299 m_v8DebuggerAgent->setInspectorState(m_state); |
| 310 } | 300 } |
| 311 | 301 |
| 312 void InspectorDebuggerAgent::setFrontend(InspectorFrontend* frontend) | 302 void InspectorDebuggerAgent::setFrontend(InspectorFrontend* frontend) |
| 313 { | 303 { |
| 314 m_v8DebuggerAgent->setFrontend(InspectorFrontend::Debugger::from(frontend)); | 304 m_v8DebuggerAgent->setFrontend(InspectorFrontend::Debugger::from(frontend)); |
| 315 } | 305 } |
| 316 | 306 |
| 317 void InspectorDebuggerAgent::clearFrontend() | 307 void InspectorDebuggerAgent::clearFrontend() |
| 318 { | 308 { |
| 319 m_v8DebuggerAgent->clearFrontend(); | 309 m_v8DebuggerAgent->clearFrontend(); |
| 320 } | 310 } |
| 321 | 311 |
| 322 void InspectorDebuggerAgent::restore() | 312 void InspectorDebuggerAgent::restore() |
| 323 { | 313 { |
| 324 m_v8DebuggerAgent->restore(); | 314 m_v8DebuggerAgent->restore(); |
| 325 } | 315 } |
| 326 | 316 |
| 327 } // namespace blink | 317 } // namespace blink |
| OLD | NEW |