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

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

Issue 1183173002: [DevTools] Show sync XHR info during request loading. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 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 | Annotate | Revision Log
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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 #include "core/inspector/InspectorDebuggerAgent.h" 51 #include "core/inspector/InspectorDebuggerAgent.h"
52 #include "core/inspector/InspectorHeapProfilerAgent.h" 52 #include "core/inspector/InspectorHeapProfilerAgent.h"
53 #include "core/inspector/InspectorInputAgent.h" 53 #include "core/inspector/InspectorInputAgent.h"
54 #include "core/inspector/InspectorInspectorAgent.h" 54 #include "core/inspector/InspectorInspectorAgent.h"
55 #include "core/inspector/InspectorInstrumentation.h" 55 #include "core/inspector/InspectorInstrumentation.h"
56 #include "core/inspector/InspectorLayerTreeAgent.h" 56 #include "core/inspector/InspectorLayerTreeAgent.h"
57 #include "core/inspector/InspectorMemoryAgent.h" 57 #include "core/inspector/InspectorMemoryAgent.h"
58 #include "core/inspector/InspectorOverlay.h" 58 #include "core/inspector/InspectorOverlay.h"
59 #include "core/inspector/InspectorPageAgent.h" 59 #include "core/inspector/InspectorPageAgent.h"
60 #include "core/inspector/InspectorProfilerAgent.h" 60 #include "core/inspector/InspectorProfilerAgent.h"
61 #include "core/inspector/InspectorResourceAgent.h"
62 #include "core/inspector/InspectorState.h" 61 #include "core/inspector/InspectorState.h"
63 #include "core/inspector/InspectorTaskRunner.h" 62 #include "core/inspector/InspectorTaskRunner.h"
64 #include "core/inspector/InspectorTimelineAgent.h" 63 #include "core/inspector/InspectorTimelineAgent.h"
65 #include "core/inspector/InspectorTracingAgent.h" 64 #include "core/inspector/InspectorTracingAgent.h"
66 #include "core/inspector/InspectorWorkerAgent.h" 65 #include "core/inspector/InspectorWorkerAgent.h"
67 #include "core/inspector/InstrumentingAgents.h" 66 #include "core/inspector/InstrumentingAgents.h"
68 #include "core/inspector/PageConsoleAgent.h" 67 #include "core/inspector/PageConsoleAgent.h"
69 #include "core/inspector/PageDebuggerAgent.h" 68 #include "core/inspector/PageDebuggerAgent.h"
70 #include "core/inspector/PageRuntimeAgent.h" 69 #include "core/inspector/PageRuntimeAgent.h"
71 #include "core/layout/LayoutView.h" 70 #include "core/layout/LayoutView.h"
(...skipping 358 matching lines...) Expand 10 before | Expand all | Expand 10 after
430 } 429 }
431 430
432 void WebDevToolsAgentImpl::initializeDeferredAgents() 431 void WebDevToolsAgentImpl::initializeDeferredAgents()
433 { 432 {
434 if (m_deferredAgentsInitialized) 433 if (m_deferredAgentsInitialized)
435 return; 434 return;
436 m_deferredAgentsInitialized = true; 435 m_deferredAgentsInitialized = true;
437 436
438 InjectedScriptManager* injectedScriptManager = m_injectedScriptManager.get() ; 437 InjectedScriptManager* injectedScriptManager = m_injectedScriptManager.get() ;
439 438
440 OwnPtrWillBeRawPtr<InspectorResourceAgent> resourceAgentPtr(InspectorResourc eAgent::create(m_pageAgent)); 439 OwnPtrWillBeRawPtr<InspectorResourceAgent> resourceAgentPtr(InspectorResourc eAgent::create(m_pageAgent, this));
441 m_resourceAgent = resourceAgentPtr.get(); 440 m_resourceAgent = resourceAgentPtr.get();
442 m_agents.append(resourceAgentPtr.release()); 441 m_agents.append(resourceAgentPtr.release());
443 442
444 OwnPtrWillBeRawPtr<InspectorCSSAgent> cssAgentPtr(InspectorCSSAgent::create( m_domAgent, m_pageAgent, m_resourceAgent)); 443 OwnPtrWillBeRawPtr<InspectorCSSAgent> cssAgentPtr(InspectorCSSAgent::create( m_domAgent, m_pageAgent, m_resourceAgent));
445 m_cssAgent = cssAgentPtr.get(); 444 m_cssAgent = cssAgentPtr.get();
446 m_agents.append(cssAgentPtr.release()); 445 m_agents.append(cssAgentPtr.release());
447 446
448 m_agents.append(InspectorAnimationAgent::create(m_pageAgent, m_domAgent)); 447 m_agents.append(InspectorAnimationAgent::create(m_pageAgent, m_domAgent));
449 448
450 m_agents.append(InspectorMemoryAgent::create()); 449 m_agents.append(InspectorMemoryAgent::create());
(...skipping 290 matching lines...) Expand 10 before | Expand all | Expand 10 after
741 if (!InspectorBackendDispatcher::getCommandName(message, &commandName)) 740 if (!InspectorBackendDispatcher::getCommandName(message, &commandName))
742 return false; 741 return false;
743 return commandName == InspectorBackendDispatcher::commandName(InspectorBacke ndDispatcher::kDebugger_pauseCmd) 742 return commandName == InspectorBackendDispatcher::commandName(InspectorBacke ndDispatcher::kDebugger_pauseCmd)
744 || commandName == InspectorBackendDispatcher::commandName(InspectorBacke ndDispatcher::kDebugger_setBreakpointCmd) 743 || commandName == InspectorBackendDispatcher::commandName(InspectorBacke ndDispatcher::kDebugger_setBreakpointCmd)
745 || commandName == InspectorBackendDispatcher::commandName(InspectorBacke ndDispatcher::kDebugger_setBreakpointByUrlCmd) 744 || commandName == InspectorBackendDispatcher::commandName(InspectorBacke ndDispatcher::kDebugger_setBreakpointByUrlCmd)
746 || commandName == InspectorBackendDispatcher::commandName(InspectorBacke ndDispatcher::kDebugger_removeBreakpointCmd) 745 || commandName == InspectorBackendDispatcher::commandName(InspectorBacke ndDispatcher::kDebugger_removeBreakpointCmd)
747 || commandName == InspectorBackendDispatcher::commandName(InspectorBacke ndDispatcher::kDebugger_setBreakpointsActiveCmd); 746 || commandName == InspectorBackendDispatcher::commandName(InspectorBacke ndDispatcher::kDebugger_setBreakpointsActiveCmd);
748 } 747 }
749 748
750 } // namespace blink 749 } // namespace blink
OLDNEW
« Source/core/inspector/InspectorResourceAgent.h ('K') | « Source/web/WebDevToolsAgentImpl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698