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