Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(167)

Side by Side Diff: Source/core/inspector/InspectorDebuggerAgent.cpp

Issue 1327713002: DevTools: move didFireTimer and didHandleEvent to DOMDebugger (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 246 matching lines...) Expand 10 before | Expand all | Expand 10 after
257 { 257 {
258 return m_v8DebuggerAgent->isPaused(); 258 return m_v8DebuggerAgent->isPaused();
259 } 259 }
260 260
261 PassRefPtrWillBeRawPtr<ScriptAsyncCallStack> InspectorDebuggerAgent::currentAsyn cStackTraceForConsole() 261 PassRefPtrWillBeRawPtr<ScriptAsyncCallStack> InspectorDebuggerAgent::currentAsyn cStackTraceForConsole()
262 { 262 {
263 ScriptForbiddenScope::AllowUserAgentScript allowScripting; 263 ScriptForbiddenScope::AllowUserAgentScript allowScripting;
264 return m_v8DebuggerAgent->currentAsyncStackTraceForConsole(); 264 return m_v8DebuggerAgent->currentAsyncStackTraceForConsole();
265 } 265 }
266 266
267 void InspectorDebuggerAgent::didFireTimer()
268 {
269 m_v8DebuggerAgent->cancelPauseOnNextStatement();
270 }
271
272 void InspectorDebuggerAgent::didHandleEvent()
273 {
274 m_v8DebuggerAgent->cancelPauseOnNextStatement();
275 }
276
277 void InspectorDebuggerAgent::scriptExecutionBlockedByCSP(const String& directive Text) 267 void InspectorDebuggerAgent::scriptExecutionBlockedByCSP(const String& directive Text)
278 { 268 {
279 if (m_v8DebuggerAgent->debugger().pauseOnExceptionsState() == V8Debugger::Do ntPauseOnExceptions) 269 if (m_v8DebuggerAgent->debugger().pauseOnExceptionsState() == V8Debugger::Do ntPauseOnExceptions)
280 return; 270 return;
281 RefPtr<JSONObject> directive = JSONObject::create(); 271 RefPtr<JSONObject> directive = JSONObject::create();
282 directive->setString("directiveText", directiveText); 272 directive->setString("directiveText", directiveText);
283 m_v8DebuggerAgent->breakProgram(InspectorFrontend::Debugger::Reason::CSPViol ation, directive.release()); 273 m_v8DebuggerAgent->breakProgram(InspectorFrontend::Debugger::Reason::CSPViol ation, directive.release());
284 } 274 }
285 275
286 void InspectorDebuggerAgent::willExecuteScript(int scriptId) 276 void InspectorDebuggerAgent::willExecuteScript(int scriptId)
(...skipping 21 matching lines...) Expand all
308 { 298 {
309 m_v8DebuggerAgent->clearFrontend(); 299 m_v8DebuggerAgent->clearFrontend();
310 } 300 }
311 301
312 void InspectorDebuggerAgent::restore() 302 void InspectorDebuggerAgent::restore()
313 { 303 {
314 m_v8DebuggerAgent->restore(); 304 m_v8DebuggerAgent->restore();
315 } 305 }
316 306
317 } // namespace blink 307 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/inspector/InspectorDebuggerAgent.h ('k') | Source/core/inspector/InspectorInstrumentation.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698