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

Side by Side Diff: third_party/WebKit/Source/web/WebDevToolsAgentImpl.cpp

Issue 2882193002: [devtools] Add DOMSnapshot domain for dom+layout+style snapshots. (Closed)
Patch Set: back to DOMSnapshot domain, with custom node types + traversal. Created 3 years, 6 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-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
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
327 InspectorNetworkAgent* network_agent = 328 InspectorNetworkAgent* network_agent =
328 InspectorNetworkAgent::Create(inspected_frames_.Get()); 329 InspectorNetworkAgent::Create(inspected_frames_.Get());
329 network_agent_ = network_agent; 330 network_agent_ = 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( 340 session_->Append(new InspectorAnimationAgent(
338 inspected_frames_.Get(), css_agent, session_->V8Session())); 341 inspected_frames_.Get(), 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 301 matching lines...) Expand 10 before | Expand all | Expand 10 after
648 } 651 }
649 652
650 bool WebDevToolsAgent::ShouldInterruptForMethod(const WebString& method) { 653 bool WebDevToolsAgent::ShouldInterruptForMethod(const WebString& method) {
651 return method == "Debugger.pause" || method == "Debugger.setBreakpoint" || 654 return method == "Debugger.pause" || method == "Debugger.setBreakpoint" ||
652 method == "Debugger.setBreakpointByUrl" || 655 method == "Debugger.setBreakpointByUrl" ||
653 method == "Debugger.removeBreakpoint" || 656 method == "Debugger.removeBreakpoint" ||
654 method == "Debugger.setBreakpointsActive"; 657 method == "Debugger.setBreakpointsActive";
655 } 658 }
656 659
657 } // namespace blink 660 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698