OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 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 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
142 | 142 |
143 using TypeBuilder::Timeline::TimelineEvent; | 143 using TypeBuilder::Timeline::TimelineEvent; |
144 | 144 |
145 class InspectorTimelineAgentTraceEventListener : public TraceEventDispatcher::Tr
aceEventListener { | 145 class InspectorTimelineAgentTraceEventListener : public TraceEventDispatcher::Tr
aceEventListener { |
146 public: | 146 public: |
147 typedef void (InspectorTimelineAgent::*TraceEventHandlerMethod)(const TraceE
ventDispatcher::TraceEvent&); | 147 typedef void (InspectorTimelineAgent::*TraceEventHandlerMethod)(const TraceE
ventDispatcher::TraceEvent&); |
148 static PassOwnPtrWillBeRawPtr<InspectorTimelineAgentTraceEventListener> crea
te(InspectorTimelineAgent* instance, TraceEventHandlerMethod method) | 148 static PassOwnPtrWillBeRawPtr<InspectorTimelineAgentTraceEventListener> crea
te(InspectorTimelineAgent* instance, TraceEventHandlerMethod method) |
149 { | 149 { |
150 return adoptPtrWillBeNoop(new InspectorTimelineAgentTraceEventListener(i
nstance, method)); | 150 return adoptPtrWillBeNoop(new InspectorTimelineAgentTraceEventListener(i
nstance, method)); |
151 } | 151 } |
152 virtual void call(const TraceEventDispatcher::TraceEvent& event) OVERRIDE | 152 virtual void call(const TraceEventDispatcher::TraceEvent& event) override |
153 { | 153 { |
154 (m_instance->*m_method)(event); | 154 (m_instance->*m_method)(event); |
155 } | 155 } |
156 virtual void* target() OVERRIDE | 156 virtual void* target() override |
157 { | 157 { |
158 return m_instance; | 158 return m_instance; |
159 } | 159 } |
160 virtual void trace(Visitor* visitor) OVERRIDE | 160 virtual void trace(Visitor* visitor) override |
161 { | 161 { |
162 visitor->trace(m_instance); | 162 visitor->trace(m_instance); |
163 TraceEventDispatcher::TraceEventListener::trace(visitor); | 163 TraceEventDispatcher::TraceEventListener::trace(visitor); |
164 } | 164 } |
165 | 165 |
166 private: | 166 private: |
167 InspectorTimelineAgentTraceEventListener(InspectorTimelineAgent* instance, T
raceEventHandlerMethod method) | 167 InspectorTimelineAgentTraceEventListener(InspectorTimelineAgent* instance, T
raceEventHandlerMethod method) |
168 : m_instance(instance) | 168 : m_instance(instance) |
169 , m_method(method) | 169 , m_method(method) |
170 { | 170 { |
(...skipping 1199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1370 { | 1370 { |
1371 visitor->trace(m_timelineAgent); | 1371 visitor->trace(m_timelineAgent); |
1372 } | 1372 } |
1373 | 1373 |
1374 void TimelineThreadState::trace(Visitor* visitor) | 1374 void TimelineThreadState::trace(Visitor* visitor) |
1375 { | 1375 { |
1376 visitor->trace(recordStack); | 1376 visitor->trace(recordStack); |
1377 } | 1377 } |
1378 | 1378 |
1379 } // namespace blink | 1379 } // namespace blink |
OLD | NEW |