OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "config.h" | 5 #include "config.h" |
6 #include "public/platform/WebConvertableToTraceFormat.h" | 6 #include "public/platform/WebConvertableToTraceFormat.h" |
7 | 7 |
8 #include "platform/EventTracer.h" | 8 #include "platform/EventTracer.h" |
9 #include "public/platform/WebString.h" | 9 #include "public/platform/WebString.h" |
10 | 10 |
11 using blink::WebConvertableToTraceFormat; | 11 using blink::WebConvertableToTraceFormat; |
12 using blink::WebString; | 12 using blink::WebString; |
13 | 13 |
14 namespace blink { | 14 namespace blink { |
15 | 15 |
16 WebConvertableToTraceFormat::WebConvertableToTraceFormat(WebCore::TraceEvent::Co
nvertableToTraceFormat* convertable) | 16 WebConvertableToTraceFormat::WebConvertableToTraceFormat(blink::TraceEvent::Conv
ertableToTraceFormat* convertable) |
17 : m_private(convertable) | 17 : m_private(convertable) |
18 { | 18 { |
19 } | 19 } |
20 | 20 |
21 WebString WebConvertableToTraceFormat::asTraceFormat() const | 21 WebString WebConvertableToTraceFormat::asTraceFormat() const |
22 { | 22 { |
23 return m_private->asTraceFormat(); | 23 return m_private->asTraceFormat(); |
24 } | 24 } |
25 | 25 |
26 void WebConvertableToTraceFormat::assign(const WebConvertableToTraceFormat& r) | 26 void WebConvertableToTraceFormat::assign(const WebConvertableToTraceFormat& r) |
27 { | 27 { |
28 m_private = r.m_private; | 28 m_private = r.m_private; |
29 } | 29 } |
30 | 30 |
31 void WebConvertableToTraceFormat::reset() | 31 void WebConvertableToTraceFormat::reset() |
32 { | 32 { |
33 m_private.reset(); | 33 m_private.reset(); |
34 } | 34 } |
35 | 35 |
36 } | 36 } |
OLD | NEW |