OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 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 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
142 | 142 |
143 void InspectorController::initializeDeferredAgents() | 143 void InspectorController::initializeDeferredAgents() |
144 { | 144 { |
145 if (m_deferredAgentsInitialized) | 145 if (m_deferredAgentsInitialized) |
146 return; | 146 return; |
147 m_deferredAgentsInitialized = true; | 147 m_deferredAgentsInitialized = true; |
148 | 148 |
149 InjectedScriptManager* injectedScriptManager = m_injectedScriptManager.get()
; | 149 InjectedScriptManager* injectedScriptManager = m_injectedScriptManager.get()
; |
150 InspectorOverlay* overlay = m_overlay.get(); | 150 InspectorOverlay* overlay = m_overlay.get(); |
151 | 151 |
152 OwnPtr<InspectorResourceAgent> resourceAgentPtr(InspectorResourceAgent::crea
te(m_pageAgent, m_inspectorClient)); | 152 OwnPtr<InspectorResourceAgent> resourceAgentPtr(InspectorResourceAgent::crea
te(m_pageAgent)); |
153 InspectorResourceAgent* resourceAgent = resourceAgentPtr.get(); | 153 InspectorResourceAgent* resourceAgent = resourceAgentPtr.get(); |
154 m_agents.append(resourceAgentPtr.release()); | 154 m_agents.append(resourceAgentPtr.release()); |
155 | 155 |
156 m_agents.append(InspectorCSSAgent::create(m_domAgent, m_pageAgent, resourceA
gent)); | 156 m_agents.append(InspectorCSSAgent::create(m_domAgent, m_pageAgent, resourceA
gent)); |
157 | 157 |
158 m_agents.append(InspectorDOMStorageAgent::create(m_pageAgent)); | 158 m_agents.append(InspectorDOMStorageAgent::create(m_pageAgent)); |
159 | 159 |
160 m_agents.append(InspectorMemoryAgent::create()); | 160 m_agents.append(InspectorMemoryAgent::create()); |
161 | 161 |
162 m_agents.append(InspectorApplicationCacheAgent::create(m_pageAgent)); | 162 m_agents.append(InspectorApplicationCacheAgent::create(m_pageAgent)); |
(...skipping 311 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
474 m_layerTreeAgent->willAddPageOverlay(layer); | 474 m_layerTreeAgent->willAddPageOverlay(layer); |
475 } | 475 } |
476 | 476 |
477 void InspectorController::didRemovePageOverlay(const GraphicsLayer* layer) | 477 void InspectorController::didRemovePageOverlay(const GraphicsLayer* layer) |
478 { | 478 { |
479 if (m_layerTreeAgent) | 479 if (m_layerTreeAgent) |
480 m_layerTreeAgent->didRemovePageOverlay(layer); | 480 m_layerTreeAgent->didRemovePageOverlay(layer); |
481 } | 481 } |
482 | 482 |
483 } // namespace WebCore | 483 } // namespace WebCore |
OLD | NEW |