| 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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 static const unsigned maximumConsoleMessages = 1000; | 57 static const unsigned maximumConsoleMessages = 1000; |
| 58 static const int expireConsoleMessagesStep = 100; | 58 static const int expireConsoleMessagesStep = 100; |
| 59 | 59 |
| 60 namespace ConsoleAgentState { | 60 namespace ConsoleAgentState { |
| 61 static const char monitoringXHR[] = "monitoringXHR"; | 61 static const char monitoringXHR[] = "monitoringXHR"; |
| 62 static const char consoleMessagesEnabled[] = "consoleMessagesEnabled"; | 62 static const char consoleMessagesEnabled[] = "consoleMessagesEnabled"; |
| 63 } | 63 } |
| 64 | 64 |
| 65 int InspectorConsoleAgent::s_enabledAgentCount = 0; | 65 int InspectorConsoleAgent::s_enabledAgentCount = 0; |
| 66 | 66 |
| 67 InspectorConsoleAgent::InspectorConsoleAgent(InstrumentingAgents* instrumentingA
gents, InspectorCompositeState* state, InjectedScriptManager* injectedScriptMana
ger) | 67 InspectorConsoleAgent::InspectorConsoleAgent(InstrumentingAgents* instrumentingA
gents, InspectorState* state, InjectedScriptManager* injectedScriptManager) |
| 68 : InspectorBaseAgent<InspectorConsoleAgent>("Console", instrumentingAgents,
state) | 68 : InspectorBaseAgent(instrumentingAgents, state) |
| 69 , m_injectedScriptManager(injectedScriptManager) | 69 , m_injectedScriptManager(injectedScriptManager) |
| 70 , m_frontend(0) | 70 , m_frontend(0) |
| 71 , m_previousMessage(0) | 71 , m_previousMessage(0) |
| 72 , m_expiredConsoleMessageCount(0) | 72 , m_expiredConsoleMessageCount(0) |
| 73 , m_enabled(false) | 73 , m_enabled(false) |
| 74 { | 74 { |
| 75 m_instrumentingAgents->setInspectorConsoleAgent(this); | 75 m_instrumentingAgents->setInspectorConsoleAgent(this); |
| 76 } | 76 } |
| 77 | 77 |
| 78 InspectorConsoleAgent::~InspectorConsoleAgent() | 78 InspectorConsoleAgent::~InspectorConsoleAgent() |
| (...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 339 int m_heapObjectId; | 339 int m_heapObjectId; |
| 340 }; | 340 }; |
| 341 | 341 |
| 342 void InspectorConsoleAgent::addInspectedHeapObject(ErrorString*, int inspectedHe
apObjectId) | 342 void InspectorConsoleAgent::addInspectedHeapObject(ErrorString*, int inspectedHe
apObjectId) |
| 343 { | 343 { |
| 344 m_injectedScriptManager->injectedScriptHost()->addInspectedObject(adoptPtr(n
ew InspectableHeapObject(inspectedHeapObjectId))); | 344 m_injectedScriptManager->injectedScriptHost()->addInspectedObject(adoptPtr(n
ew InspectableHeapObject(inspectedHeapObjectId))); |
| 345 } | 345 } |
| 346 | 346 |
| 347 } // namespace WebCore | 347 } // namespace WebCore |
| 348 | 348 |
| OLD | NEW |