| 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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 #include "core/frame/LocalFrameView.h" | 43 #include "core/frame/LocalFrameView.h" |
| 44 #include "core/frame/Settings.h" | 44 #include "core/frame/Settings.h" |
| 45 #include "core/frame/WebLocalFrameBase.h" | 45 #include "core/frame/WebLocalFrameBase.h" |
| 46 #include "core/inspector/DevToolsEmulator.h" | 46 #include "core/inspector/DevToolsEmulator.h" |
| 47 #include "core/inspector/InspectedFrames.h" | 47 #include "core/inspector/InspectedFrames.h" |
| 48 #include "core/inspector/InspectorAnimationAgent.h" | 48 #include "core/inspector/InspectorAnimationAgent.h" |
| 49 #include "core/inspector/InspectorApplicationCacheAgent.h" | 49 #include "core/inspector/InspectorApplicationCacheAgent.h" |
| 50 #include "core/inspector/InspectorCSSAgent.h" | 50 #include "core/inspector/InspectorCSSAgent.h" |
| 51 #include "core/inspector/InspectorDOMAgent.h" | 51 #include "core/inspector/InspectorDOMAgent.h" |
| 52 #include "core/inspector/InspectorDOMDebuggerAgent.h" | 52 #include "core/inspector/InspectorDOMDebuggerAgent.h" |
| 53 #include "core/inspector/InspectorDOMSnapshotAgent.h" |
| 53 #include "core/inspector/InspectorEmulationAgent.h" | 54 #include "core/inspector/InspectorEmulationAgent.h" |
| 54 #include "core/inspector/InspectorInputAgent.h" | 55 #include "core/inspector/InspectorInputAgent.h" |
| 55 #include "core/inspector/InspectorLayerTreeAgent.h" | 56 #include "core/inspector/InspectorLayerTreeAgent.h" |
| 56 #include "core/inspector/InspectorLogAgent.h" | 57 #include "core/inspector/InspectorLogAgent.h" |
| 57 #include "core/inspector/InspectorMemoryAgent.h" | 58 #include "core/inspector/InspectorMemoryAgent.h" |
| 58 #include "core/inspector/InspectorNetworkAgent.h" | 59 #include "core/inspector/InspectorNetworkAgent.h" |
| 59 #include "core/inspector/InspectorPageAgent.h" | 60 #include "core/inspector/InspectorPageAgent.h" |
| 60 #include "core/inspector/InspectorResourceContainer.h" | 61 #include "core/inspector/InspectorResourceContainer.h" |
| 61 #include "core/inspector/InspectorResourceContentLoader.h" | 62 #include "core/inspector/InspectorResourceContentLoader.h" |
| 62 #include "core/inspector/InspectorTaskRunner.h" | 63 #include "core/inspector/InspectorTaskRunner.h" |
| (...skipping 264 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 327 InspectorNetworkAgent* network_agent = | 328 InspectorNetworkAgent* network_agent = |
| 328 InspectorNetworkAgent::Create(inspected_frames_.Get()); | 329 InspectorNetworkAgent::Create(inspected_frames_.Get()); |
| 329 network_agents_.Set(session_id, network_agent); | 330 network_agents_.Set(session_id, network_agent); |
| 330 session->Append(network_agent); | 331 session->Append(network_agent); |
| 331 | 332 |
| 332 InspectorCSSAgent* css_agent = InspectorCSSAgent::Create( | 333 InspectorCSSAgent* css_agent = InspectorCSSAgent::Create( |
| 333 dom_agent, inspected_frames_.Get(), network_agent, | 334 dom_agent, inspected_frames_.Get(), network_agent, |
| 334 resource_content_loader_.Get(), resource_container_.Get()); | 335 resource_content_loader_.Get(), resource_container_.Get()); |
| 335 session->Append(css_agent); | 336 session->Append(css_agent); |
| 336 | 337 |
| 338 session->Append(InspectorDOMSnapshotAgent::Create(inspected_frames_.Get())); |
| 339 |
| 337 session->Append(new InspectorAnimationAgent(inspected_frames_.Get(), | 340 session->Append(new InspectorAnimationAgent(inspected_frames_.Get(), |
| 338 css_agent, session->V8Session())); | 341 css_agent, session->V8Session())); |
| 339 | 342 |
| 340 session->Append(InspectorMemoryAgent::Create()); | 343 session->Append(InspectorMemoryAgent::Create()); |
| 341 | 344 |
| 342 session->Append( | 345 session->Append( |
| 343 InspectorApplicationCacheAgent::Create(inspected_frames_.Get())); | 346 InspectorApplicationCacheAgent::Create(inspected_frames_.Get())); |
| 344 | 347 |
| 345 session->Append(new InspectorIndexedDBAgent(inspected_frames_.Get(), | 348 session->Append(new InspectorIndexedDBAgent(inspected_frames_.Get(), |
| 346 session->V8Session())); | 349 session->V8Session())); |
| (...skipping 323 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 670 } | 673 } |
| 671 | 674 |
| 672 bool WebDevToolsAgent::ShouldInterruptForMethod(const WebString& method) { | 675 bool WebDevToolsAgent::ShouldInterruptForMethod(const WebString& method) { |
| 673 return method == "Debugger.pause" || method == "Debugger.setBreakpoint" || | 676 return method == "Debugger.pause" || method == "Debugger.setBreakpoint" || |
| 674 method == "Debugger.setBreakpointByUrl" || | 677 method == "Debugger.setBreakpointByUrl" || |
| 675 method == "Debugger.removeBreakpoint" || | 678 method == "Debugger.removeBreakpoint" || |
| 676 method == "Debugger.setBreakpointsActive"; | 679 method == "Debugger.setBreakpointsActive"; |
| 677 } | 680 } |
| 678 | 681 |
| 679 } // namespace blink | 682 } // namespace blink |
| OLD | NEW |