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

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

Issue 15179002: Remove code that is unused after ContextMenu cleanup (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Remove canHandleRequest code from DRT Created 7 years, 7 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/InspectorController.h ('k') | Source/core/loader/EmptyClients.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 177 matching lines...) Expand 10 before | Expand all | Expand 10 after
188 m_injectedScriptManager->disconnect(); 188 m_injectedScriptManager->disconnect();
189 m_inspectorClient = 0; 189 m_inspectorClient = 0;
190 m_page = 0; 190 m_page = 0;
191 } 191 }
192 192
193 void InspectorController::setInspectorFrontendClient(PassOwnPtr<InspectorFronten dClient> inspectorFrontendClient) 193 void InspectorController::setInspectorFrontendClient(PassOwnPtr<InspectorFronten dClient> inspectorFrontendClient)
194 { 194 {
195 m_inspectorFrontendClient = inspectorFrontendClient; 195 m_inspectorFrontendClient = inspectorFrontendClient;
196 } 196 }
197 197
198 bool InspectorController::hasInspectorFrontendClient() const
199 {
200 return m_inspectorFrontendClient;
201 }
202
203 void InspectorController::didClearWindowObjectInWorld(Frame* frame, DOMWrapperWo rld* world) 198 void InspectorController::didClearWindowObjectInWorld(Frame* frame, DOMWrapperWo rld* world)
204 { 199 {
205 if (world != mainThreadNormalWorld()) 200 if (world != mainThreadNormalWorld())
206 return; 201 return;
207 202
208 // If the page is supposed to serve as InspectorFrontend notify inspector fr ontend 203 // If the page is supposed to serve as InspectorFrontend notify inspector fr ontend
209 // client that it's cleared so that the client can expose inspector bindings . 204 // client that it's cleared so that the client can expose inspector bindings .
210 if (m_inspectorFrontendClient && frame == m_page->mainFrame()) 205 if (m_inspectorFrontendClient && frame == m_page->mainFrame())
211 m_inspectorFrontendClient->windowObjectCleared(); 206 m_inspectorFrontendClient->windowObjectCleared();
212 } 207 }
(...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after
445 } 440 }
446 441
447 HashMap<String, size_t> InspectorController::processMemoryDistribution() const 442 HashMap<String, size_t> InspectorController::processMemoryDistribution() const
448 { 443 {
449 HashMap<String, size_t> memoryInfo; 444 HashMap<String, size_t> memoryInfo;
450 m_memoryAgent->getProcessMemoryDistributionMap(&memoryInfo); 445 m_memoryAgent->getProcessMemoryDistributionMap(&memoryInfo);
451 return memoryInfo; 446 return memoryInfo;
452 } 447 }
453 448
454 } // namespace WebCore 449 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/inspector/InspectorController.h ('k') | Source/core/loader/EmptyClients.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698