OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |