| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2010-2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2010-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 350 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 361 m_client = nullptr; | 361 m_client = nullptr; |
| 362 } | 362 } |
| 363 | 363 |
| 364 void WebDevToolsAgentImpl::initializeSession(int sessionId, const String& hostId
, String* state) | 364 void WebDevToolsAgentImpl::initializeSession(int sessionId, const String& hostId
, String* state) |
| 365 { | 365 { |
| 366 DCHECK(m_client); | 366 DCHECK(m_client); |
| 367 ClientMessageLoopAdapter::ensureMainThreadDebuggerCreated(m_client); | 367 ClientMessageLoopAdapter::ensureMainThreadDebuggerCreated(m_client); |
| 368 MainThreadDebugger* mainThreadDebugger = MainThreadDebugger::instance(); | 368 MainThreadDebugger* mainThreadDebugger = MainThreadDebugger::instance(); |
| 369 v8::Isolate* isolate = V8PerIsolateData::mainThreadIsolate(); | 369 v8::Isolate* isolate = V8PerIsolateData::mainThreadIsolate(); |
| 370 | 370 |
| 371 m_session = new InspectorSession(this, m_inspectedFrames.get(), m_instrument
ingAgents.get(), sessionId, false /* autoFlush */, mainThreadDebugger->debugger(
), mainThreadDebugger->contextGroupId(m_inspectedFrames->root()), state); | 371 m_session = new InspectorSession(this, m_instrumentingAgents.get(), sessionI
d, false /* autoFlush */, mainThreadDebugger->debugger(), mainThreadDebugger->co
ntextGroupId(m_inspectedFrames->root()), state); |
| 372 | 372 |
| 373 InspectorDOMAgent* domAgent = new InspectorDOMAgent(isolate, m_inspectedFram
es.get(), m_session->v8Session(), m_overlay.get()); | 373 InspectorDOMAgent* domAgent = new InspectorDOMAgent(isolate, m_inspectedFram
es.get(), m_session->v8Session(), m_overlay.get()); |
| 374 m_domAgent = domAgent; | 374 m_domAgent = domAgent; |
| 375 m_session->append(domAgent); | 375 m_session->append(domAgent); |
| 376 | 376 |
| 377 InspectorLayerTreeAgent* layerTreeAgent = InspectorLayerTreeAgent::create(m_
inspectedFrames.get()); | 377 InspectorLayerTreeAgent* layerTreeAgent = InspectorLayerTreeAgent::create(m_
inspectedFrames.get()); |
| 378 m_layerTreeAgent = layerTreeAgent; | 378 m_layerTreeAgent = layerTreeAgent; |
| 379 m_session->append(layerTreeAgent); | 379 m_session->append(layerTreeAgent); |
| 380 | 380 |
| 381 InspectorNetworkAgent* networkAgent = InspectorNetworkAgent::create(m_inspec
tedFrames.get()); | 381 InspectorNetworkAgent* networkAgent = InspectorNetworkAgent::create(m_inspec
tedFrames.get()); |
| (...skipping 286 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 668 bool WebDevToolsAgent::shouldInterruptForMethod(const WebString& method) | 668 bool WebDevToolsAgent::shouldInterruptForMethod(const WebString& method) |
| 669 { | 669 { |
| 670 return method == "Debugger.pause" | 670 return method == "Debugger.pause" |
| 671 || method == "Debugger.setBreakpoint" | 671 || method == "Debugger.setBreakpoint" |
| 672 || method == "Debugger.setBreakpointByUrl" | 672 || method == "Debugger.setBreakpointByUrl" |
| 673 || method == "Debugger.removeBreakpoint" | 673 || method == "Debugger.removeBreakpoint" |
| 674 || method == "Debugger.setBreakpointsActive"; | 674 || method == "Debugger.setBreakpointsActive"; |
| 675 } | 675 } |
| 676 | 676 |
| 677 } // namespace blink | 677 } // namespace blink |
| OLD | NEW |