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 25 matching lines...) Expand all Loading... |
36 | 36 |
37 namespace blink { | 37 namespace blink { |
38 | 38 |
39 InspectorAgent::InspectorAgent(const String& name) | 39 InspectorAgent::InspectorAgent(const String& name) |
40 : m_name(name) | 40 : m_name(name) |
41 { | 41 { |
42 } | 42 } |
43 | 43 |
44 InspectorAgent::~InspectorAgent() | 44 InspectorAgent::~InspectorAgent() |
45 { | 45 { |
| 46 #if ENABLE(OILPAN) |
| 47 m_state = nullptr; |
| 48 #endif |
46 } | 49 } |
47 | 50 |
48 void InspectorAgent::trace(Visitor* visitor) | 51 void InspectorAgent::trace(Visitor* visitor) |
49 { | 52 { |
50 visitor->trace(m_instrumentingAgents); | 53 visitor->trace(m_instrumentingAgents); |
| 54 visitor->trace(m_state); |
51 } | 55 } |
52 | 56 |
53 void InspectorAgent::appended(InstrumentingAgents* instrumentingAgents, Inspecto
rState* inspectorState) | 57 void InspectorAgent::appended(InstrumentingAgents* instrumentingAgents, Inspecto
rState* inspectorState) |
54 { | 58 { |
55 m_instrumentingAgents = instrumentingAgents; | 59 m_instrumentingAgents = instrumentingAgents; |
56 m_state = inspectorState; | 60 m_state = inspectorState; |
57 init(); | 61 init(); |
58 } | 62 } |
59 | 63 |
60 InspectorAgentRegistry::InspectorAgentRegistry(InstrumentingAgents* instrumentin
gAgents, InspectorCompositeState* inspectorState) | 64 InspectorAgentRegistry::InspectorAgentRegistry(InstrumentingAgents* instrumentin
gAgents, InspectorCompositeState* inspectorState) |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
101 | 105 |
102 void InspectorAgentRegistry::flushPendingFrontendMessages() | 106 void InspectorAgentRegistry::flushPendingFrontendMessages() |
103 { | 107 { |
104 for (size_t i = 0; i < m_agents.size(); i++) | 108 for (size_t i = 0; i < m_agents.size(); i++) |
105 m_agents[i]->flushPendingFrontendMessages(); | 109 m_agents[i]->flushPendingFrontendMessages(); |
106 } | 110 } |
107 | 111 |
108 void InspectorAgentRegistry::trace(Visitor* visitor) | 112 void InspectorAgentRegistry::trace(Visitor* visitor) |
109 { | 113 { |
110 visitor->trace(m_instrumentingAgents); | 114 visitor->trace(m_instrumentingAgents); |
| 115 visitor->trace(m_inspectorState); |
111 #if ENABLE(OILPAN) | 116 #if ENABLE(OILPAN) |
112 visitor->trace(m_agents); | 117 visitor->trace(m_agents); |
113 #endif | 118 #endif |
114 } | 119 } |
115 | 120 |
116 void InspectorAgentRegistry::didCommitLoadForMainFrame() | 121 void InspectorAgentRegistry::didCommitLoadForMainFrame() |
117 { | 122 { |
118 for (size_t i = 0; i < m_agents.size(); i++) | 123 for (size_t i = 0; i < m_agents.size(); i++) |
119 m_agents[i]->didCommitLoadForMainFrame(); | 124 m_agents[i]->didCommitLoadForMainFrame(); |
120 } | 125 } |
121 | 126 |
122 } // namespace blink | 127 } // namespace blink |
123 | 128 |
OLD | NEW |