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

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

Issue 1738073002: DevTools: introduce protocol::Value, baseline for hierarchical data in remote debugging protocol. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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 300 matching lines...) Expand 10 before | Expand all | Expand 10 after
311 m_v8DebuggerAgent->setBlackboxedRanges(errorString, inScriptId, inPositions) ; 311 m_v8DebuggerAgent->setBlackboxedRanges(errorString, inScriptId, inPositions) ;
312 } 312 }
313 313
314 bool InspectorDebuggerAgent::isPaused() 314 bool InspectorDebuggerAgent::isPaused()
315 { 315 {
316 return m_v8DebuggerAgent->isPaused(); 316 return m_v8DebuggerAgent->isPaused();
317 } 317 }
318 318
319 void InspectorDebuggerAgent::scriptExecutionBlockedByCSP(const String& directive Text) 319 void InspectorDebuggerAgent::scriptExecutionBlockedByCSP(const String& directive Text)
320 { 320 {
321 RefPtr<JSONObject> directive = JSONObject::create(); 321 RefPtr<protocol::DictionaryValue> directive = protocol::DictionaryValue::cre ate();
322 directive->setString("directiveText", directiveText); 322 directive->setString("directiveText", directiveText);
323 m_v8DebuggerAgent->breakProgramOnException(protocol::Debugger::Paused::Reaso nEnum::CSPViolation, directive.release()); 323 m_v8DebuggerAgent->breakProgramOnException(protocol::Debugger::Paused::Reaso nEnum::CSPViolation, directive.release());
324 } 324 }
325 325
326 void InspectorDebuggerAgent::willExecuteScript(int scriptId) 326 void InspectorDebuggerAgent::willExecuteScript(int scriptId)
327 { 327 {
328 m_v8DebuggerAgent->willExecuteScript(scriptId); 328 m_v8DebuggerAgent->willExecuteScript(scriptId);
329 } 329 }
330 330
331 void InspectorDebuggerAgent::didExecuteScript() 331 void InspectorDebuggerAgent::didExecuteScript()
332 { 332 {
333 m_v8DebuggerAgent->didExecuteScript(); 333 m_v8DebuggerAgent->didExecuteScript();
334 } 334 }
335 335
336 // InspectorBaseAgent overrides. 336 // InspectorBaseAgent overrides.
337 void InspectorDebuggerAgent::setState(PassRefPtr<JSONObject> state) 337 void InspectorDebuggerAgent::setState(PassRefPtr<protocol::DictionaryValue> stat e)
338 { 338 {
339 InspectorBaseAgent::setState(state); 339 InspectorBaseAgent::setState(state);
340 m_v8DebuggerAgent->setInspectorState(m_state); 340 m_v8DebuggerAgent->setInspectorState(m_state);
341 } 341 }
342 342
343 void InspectorDebuggerAgent::init() 343 void InspectorDebuggerAgent::init()
344 { 344 {
345 m_asyncCallTracker = adoptPtrWillBeNoop(new AsyncCallTracker(m_v8DebuggerAge nt.get(), m_instrumentingAgents.get())); 345 m_asyncCallTracker = adoptPtrWillBeNoop(new AsyncCallTracker(m_v8DebuggerAge nt.get(), m_instrumentingAgents.get()));
346 } 346 }
347 347
(...skipping 20 matching lines...) Expand all
368 } 368 }
369 369
370 void InspectorDebuggerAgent::setTrackingAsyncCalls(bool tracking) 370 void InspectorDebuggerAgent::setTrackingAsyncCalls(bool tracking)
371 { 371 {
372 m_asyncCallTracker->asyncCallTrackingStateChanged(tracking); 372 m_asyncCallTracker->asyncCallTrackingStateChanged(tracking);
373 if (!tracking) 373 if (!tracking)
374 m_asyncCallTracker->resetAsyncOperations(); 374 m_asyncCallTracker->resetAsyncOperations();
375 } 375 }
376 376
377 } // namespace blink 377 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698