| 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 | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
| (...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 241 String title; | 241 String title; |
| 242 arguments->getFirstArgumentAsString(title); | 242 arguments->getFirstArgumentAsString(title); |
| 243 String identifier = title.isEmpty() ? String(lastCaller.sourceURL() + ':' +
String::number(lastCaller.lineNumber())) | 243 String identifier = title.isEmpty() ? String(lastCaller.sourceURL() + ':' +
String::number(lastCaller.lineNumber())) |
| 244 : String(title + '@'); | 244 : String(title + '@'); |
| 245 | 245 |
| 246 HashCountedSet<String>::AddResult result = m_counts.add(identifier); | 246 HashCountedSet<String>::AddResult result = m_counts.add(identifier); |
| 247 String message = title + ": " + String::number(result.storedValue->value); | 247 String message = title + ": " + String::number(result.storedValue->value); |
| 248 addMessageToConsole(ConsoleAPIMessageSource, LogMessageType, DebugMessageLev
el, message, callStack.get()); | 248 addMessageToConsole(ConsoleAPIMessageSource, LogMessageType, DebugMessageLev
el, message, callStack.get()); |
| 249 } | 249 } |
| 250 | 250 |
| 251 void InspectorConsoleAgent::frameWindowDiscarded(DOMWindow* window) | 251 void InspectorConsoleAgent::frameWindowDiscarded(LocalDOMWindow* window) |
| 252 { | 252 { |
| 253 size_t messageCount = m_consoleMessages.size(); | 253 size_t messageCount = m_consoleMessages.size(); |
| 254 for (size_t i = 0; i < messageCount; ++i) | 254 for (size_t i = 0; i < messageCount; ++i) |
| 255 m_consoleMessages[i]->windowCleared(window); | 255 m_consoleMessages[i]->windowCleared(window); |
| 256 m_injectedScriptManager->discardInjectedScriptsFor(window); | 256 m_injectedScriptManager->discardInjectedScriptsFor(window); |
| 257 } | 257 } |
| 258 | 258 |
| 259 void InspectorConsoleAgent::didCommitLoad(LocalFrame* frame, DocumentLoader* loa
der) | 259 void InspectorConsoleAgent::didCommitLoad(LocalFrame* frame, DocumentLoader* loa
der) |
| 260 { | 260 { |
| 261 if (loader->frame() != frame->page()->mainFrame()) | 261 if (loader->frame() != frame->page()->mainFrame()) |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 325 int m_heapObjectId; | 325 int m_heapObjectId; |
| 326 }; | 326 }; |
| 327 | 327 |
| 328 void InspectorConsoleAgent::addInspectedHeapObject(ErrorString*, int inspectedHe
apObjectId) | 328 void InspectorConsoleAgent::addInspectedHeapObject(ErrorString*, int inspectedHe
apObjectId) |
| 329 { | 329 { |
| 330 m_injectedScriptManager->injectedScriptHost()->addInspectedObject(adoptPtr(n
ew InspectableHeapObject(inspectedHeapObjectId))); | 330 m_injectedScriptManager->injectedScriptHost()->addInspectedObject(adoptPtr(n
ew InspectableHeapObject(inspectedHeapObjectId))); |
| 331 } | 331 } |
| 332 | 332 |
| 333 } // namespace WebCore | 333 } // namespace WebCore |
| 334 | 334 |
| OLD | NEW |