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

Side by Side Diff: Source/core/inspector/InspectorController.cpp

Issue 16934003: Inspector: replace generic discardAgents logic with explicit call to discard a listener. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Addressed comments Created 7 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
« no previous file with comments | « Source/core/inspector/InspectorCSSAgent.cpp ('k') | Source/core/inspector/InspectorDOMAgent.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 , domStorageAgent 161 , domStorageAgent
162 , m_domAgent 162 , m_domAgent
163 , m_debuggerAgent 163 , m_debuggerAgent
164 , pageScriptDebugServer 164 , pageScriptDebugServer
165 ); 165 );
166 } 166 }
167 167
168 InspectorController::~InspectorController() 168 InspectorController::~InspectorController()
169 { 169 {
170 m_instrumentingAgents->reset(); 170 m_instrumentingAgents->reset();
171 m_agents.discardAgents();
172 ASSERT(!m_inspectorClient); 171 ASSERT(!m_inspectorClient);
173 } 172 }
174 173
175 PassOwnPtr<InspectorController> InspectorController::create(Page* page, Inspecto rClient* client) 174 PassOwnPtr<InspectorController> InspectorController::create(Page* page, Inspecto rClient* client)
176 { 175 {
177 return adoptPtr(new InspectorController(page, client)); 176 return adoptPtr(new InspectorController(page, client));
178 } 177 }
179 178
180 void InspectorController::inspectedPageDestroyed() 179 void InspectorController::inspectedPageDestroyed()
181 { 180 {
(...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after
442 } 441 }
443 442
444 HashMap<String, size_t> InspectorController::processMemoryDistribution() const 443 HashMap<String, size_t> InspectorController::processMemoryDistribution() const
445 { 444 {
446 HashMap<String, size_t> memoryInfo; 445 HashMap<String, size_t> memoryInfo;
447 m_memoryAgent->getProcessMemoryDistributionMap(&memoryInfo); 446 m_memoryAgent->getProcessMemoryDistributionMap(&memoryInfo);
448 return memoryInfo; 447 return memoryInfo;
449 } 448 }
450 449
451 } // namespace WebCore 450 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/inspector/InspectorCSSAgent.cpp ('k') | Source/core/inspector/InspectorDOMAgent.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698