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 237 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
248 } | 248 } |
249 | 249 |
250 private: | 250 private: |
251 OwnPtr<WebDevToolsAgent::MessageDescriptor> m_descriptor; | 251 OwnPtr<WebDevToolsAgent::MessageDescriptor> m_descriptor; |
252 }; | 252 }; |
253 | 253 |
254 WebDevToolsAgentImpl::WebDevToolsAgentImpl( | 254 WebDevToolsAgentImpl::WebDevToolsAgentImpl( |
255 WebViewImpl* webViewImpl, | 255 WebViewImpl* webViewImpl, |
256 WebDevToolsAgentClient* client, | 256 WebDevToolsAgentClient* client, |
257 InspectorOverlay* overlay, | 257 InspectorOverlay* overlay, |
258 PassOwnPtrWillBeRawPtr<InspectorInputAgent::Client> inputClient) | 258 PassOwnPtr<InspectorInputAgent::Client> inputClient) |
259 : m_client(client) | 259 : m_client(client) |
260 , m_webViewImpl(webViewImpl) | 260 , m_webViewImpl(webViewImpl) |
261 , m_attached(false) | 261 , m_attached(false) |
262 #if ENABLE(ASSERT) | 262 #if ENABLE(ASSERT) |
263 , m_hasBeenDisposed(false) | 263 , m_hasBeenDisposed(false) |
264 #endif | 264 #endif |
265 , m_instrumentingAgents(webViewImpl->page()->instrumentingAgents()) | 265 , m_instrumentingAgents(webViewImpl->page()->instrumentingAgents()) |
266 , m_injectedScriptManager(InjectedScriptManager::createForPage()) | 266 , m_injectedScriptManager(InjectedScriptManager::createForPage()) |
267 , m_state(adoptPtrWillBeNoop(new InspectorCompositeState(this))) | 267 , m_state(adoptPtrWillBeNoop(new InspectorCompositeState(this))) |
268 , m_overlay(overlay) | 268 , m_overlay(overlay) |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
353 { | 353 { |
354 ClientMessageLoopAdapter::webFrameWidgetImplClosed(webFrameWidgetImpl); | 354 ClientMessageLoopAdapter::webFrameWidgetImplClosed(webFrameWidgetImpl); |
355 } | 355 } |
356 | 356 |
357 DEFINE_TRACE(WebDevToolsAgentImpl) | 357 DEFINE_TRACE(WebDevToolsAgentImpl) |
358 { | 358 { |
359 visitor->trace(m_instrumentingAgents); | 359 visitor->trace(m_instrumentingAgents); |
360 visitor->trace(m_injectedScriptManager); | 360 visitor->trace(m_injectedScriptManager); |
361 visitor->trace(m_state); | 361 visitor->trace(m_state); |
362 visitor->trace(m_overlay); | 362 visitor->trace(m_overlay); |
363 visitor->trace(m_inputClient); | |
364 visitor->trace(m_asyncCallTracker); | 363 visitor->trace(m_asyncCallTracker); |
365 visitor->trace(m_domAgent); | 364 visitor->trace(m_domAgent); |
366 visitor->trace(m_pageAgent); | 365 visitor->trace(m_pageAgent); |
367 visitor->trace(m_cssAgent); | 366 visitor->trace(m_cssAgent); |
368 visitor->trace(m_resourceAgent); | 367 visitor->trace(m_resourceAgent); |
369 visitor->trace(m_layerTreeAgent); | 368 visitor->trace(m_layerTreeAgent); |
370 visitor->trace(m_tracingAgent); | 369 visitor->trace(m_tracingAgent); |
371 visitor->trace(m_pageRuntimeAgent); | 370 visitor->trace(m_pageRuntimeAgent); |
372 visitor->trace(m_inspectorBackendDispatcher); | 371 visitor->trace(m_inspectorBackendDispatcher); |
373 visitor->trace(m_agents); | 372 visitor->trace(m_agents); |
(...skipping 327 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
701 if (!InspectorBackendDispatcher::getCommandName(message, &commandName)) | 700 if (!InspectorBackendDispatcher::getCommandName(message, &commandName)) |
702 return false; | 701 return false; |
703 return commandName == InspectorBackendDispatcher::commandName(InspectorBacke
ndDispatcher::kDebugger_pauseCmd) | 702 return commandName == InspectorBackendDispatcher::commandName(InspectorBacke
ndDispatcher::kDebugger_pauseCmd) |
704 || commandName == InspectorBackendDispatcher::commandName(InspectorBacke
ndDispatcher::kDebugger_setBreakpointCmd) | 703 || commandName == InspectorBackendDispatcher::commandName(InspectorBacke
ndDispatcher::kDebugger_setBreakpointCmd) |
705 || commandName == InspectorBackendDispatcher::commandName(InspectorBacke
ndDispatcher::kDebugger_setBreakpointByUrlCmd) | 704 || commandName == InspectorBackendDispatcher::commandName(InspectorBacke
ndDispatcher::kDebugger_setBreakpointByUrlCmd) |
706 || commandName == InspectorBackendDispatcher::commandName(InspectorBacke
ndDispatcher::kDebugger_removeBreakpointCmd) | 705 || commandName == InspectorBackendDispatcher::commandName(InspectorBacke
ndDispatcher::kDebugger_removeBreakpointCmd) |
707 || commandName == InspectorBackendDispatcher::commandName(InspectorBacke
ndDispatcher::kDebugger_setBreakpointsActiveCmd); | 706 || commandName == InspectorBackendDispatcher::commandName(InspectorBacke
ndDispatcher::kDebugger_setBreakpointsActiveCmd); |
708 } | 707 } |
709 | 708 |
710 } // namespace blink | 709 } // namespace blink |
OLD | NEW |