Chromium Code Reviews| 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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 69 , m_expiredConsoleMessageCount(0) | 69 , m_expiredConsoleMessageCount(0) |
| 70 , m_enabled(false) | 70 , m_enabled(false) |
| 71 { | 71 { |
| 72 } | 72 } |
| 73 | 73 |
| 74 InspectorConsoleAgent::~InspectorConsoleAgent() | 74 InspectorConsoleAgent::~InspectorConsoleAgent() |
| 75 { | 75 { |
| 76 #if !ENABLE(OILPAN) | 76 #if !ENABLE(OILPAN) |
| 77 m_instrumentingAgents->setInspectorConsoleAgent(0); | 77 m_instrumentingAgents->setInspectorConsoleAgent(0); |
| 78 m_instrumentingAgents = nullptr; | 78 m_instrumentingAgents = nullptr; |
| 79 m_state = nullptr; | |
|
haraken
2014/07/25 01:38:44
If you want to clear m_state, it's better to clear
keishi
2014/07/25 03:56:28
Done.
| |
| 80 m_injectedScriptManager = nullptr; | |
| 79 #endif | 81 #endif |
| 80 m_state = 0; | |
| 81 m_injectedScriptManager = 0; | |
| 82 } | 82 } |
| 83 | 83 |
| 84 void InspectorConsoleAgent::trace(Visitor* visitor) | 84 void InspectorConsoleAgent::trace(Visitor* visitor) |
| 85 { | 85 { |
| 86 visitor->trace(m_timelineAgent); | 86 visitor->trace(m_timelineAgent); |
| 87 visitor->trace(m_injectedScriptManager); | |
| 87 InspectorBaseAgent::trace(visitor); | 88 InspectorBaseAgent::trace(visitor); |
| 88 } | 89 } |
| 89 | 90 |
| 90 void InspectorConsoleAgent::init() | 91 void InspectorConsoleAgent::init() |
| 91 { | 92 { |
| 92 m_instrumentingAgents->setInspectorConsoleAgent(this); | 93 m_instrumentingAgents->setInspectorConsoleAgent(this); |
| 93 } | 94 } |
| 94 | 95 |
| 95 void InspectorConsoleAgent::enable(ErrorString*) | 96 void InspectorConsoleAgent::enable(ErrorString*) |
| 96 { | 97 { |
| (...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 333 int m_heapObjectId; | 334 int m_heapObjectId; |
| 334 }; | 335 }; |
| 335 | 336 |
| 336 void InspectorConsoleAgent::addInspectedHeapObject(ErrorString*, int inspectedHe apObjectId) | 337 void InspectorConsoleAgent::addInspectedHeapObject(ErrorString*, int inspectedHe apObjectId) |
| 337 { | 338 { |
| 338 m_injectedScriptManager->injectedScriptHost()->addInspectedObject(adoptPtr(n ew InspectableHeapObject(inspectedHeapObjectId))); | 339 m_injectedScriptManager->injectedScriptHost()->addInspectedObject(adoptPtr(n ew InspectableHeapObject(inspectedHeapObjectId))); |
| 339 } | 340 } |
| 340 | 341 |
| 341 } // namespace blink | 342 } // namespace blink |
| 342 | 343 |
| OLD | NEW |