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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 } | 72 } |
73 | 73 |
74 InspectorConsoleAgent::~InspectorConsoleAgent() | 74 InspectorConsoleAgent::~InspectorConsoleAgent() |
75 { | 75 { |
76 m_instrumentingAgents->setInspectorConsoleAgent(0); | 76 m_instrumentingAgents->setInspectorConsoleAgent(0); |
77 m_instrumentingAgents = 0; | 77 m_instrumentingAgents = 0; |
78 m_state = 0; | 78 m_state = 0; |
79 m_injectedScriptManager = 0; | 79 m_injectedScriptManager = 0; |
80 } | 80 } |
81 | 81 |
| 82 void InspectorConsoleAgent::trace(Visitor* visitor) |
| 83 { |
| 84 visitor->trace(m_timelineAgent); |
| 85 InspectorBaseAgent::trace(visitor); |
| 86 } |
| 87 |
82 void InspectorConsoleAgent::init() | 88 void InspectorConsoleAgent::init() |
83 { | 89 { |
84 m_instrumentingAgents->setInspectorConsoleAgent(this); | 90 m_instrumentingAgents->setInspectorConsoleAgent(this); |
85 } | 91 } |
86 | 92 |
87 void InspectorConsoleAgent::enable(ErrorString*) | 93 void InspectorConsoleAgent::enable(ErrorString*) |
88 { | 94 { |
89 if (m_enabled) | 95 if (m_enabled) |
90 return; | 96 return; |
91 m_enabled = true; | 97 m_enabled = true; |
(...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
325 int m_heapObjectId; | 331 int m_heapObjectId; |
326 }; | 332 }; |
327 | 333 |
328 void InspectorConsoleAgent::addInspectedHeapObject(ErrorString*, int inspectedHe
apObjectId) | 334 void InspectorConsoleAgent::addInspectedHeapObject(ErrorString*, int inspectedHe
apObjectId) |
329 { | 335 { |
330 m_injectedScriptManager->injectedScriptHost()->addInspectedObject(adoptPtr(n
ew InspectableHeapObject(inspectedHeapObjectId))); | 336 m_injectedScriptManager->injectedScriptHost()->addInspectedObject(adoptPtr(n
ew InspectableHeapObject(inspectedHeapObjectId))); |
331 } | 337 } |
332 | 338 |
333 } // namespace WebCore | 339 } // namespace WebCore |
334 | 340 |
OLD | NEW |