Upstream version 9.38.198.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / Source / platform / exported / WebConvertableToTraceFormat.cpp
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
3 // found in the LICENSE file.
4
5 #include "config.h"
6 #include "public/platform/WebConvertableToTraceFormat.h"
7
8 #include "platform/EventTracer.h"
9 #include "public/platform/WebString.h"
10
11 namespace blink {
12
13 WebConvertableToTraceFormat::WebConvertableToTraceFormat(TraceEvent::ConvertableToTraceFormat* convertable)
14     : m_private(convertable)
15 {
16 }
17
18 WebString WebConvertableToTraceFormat::asTraceFormat() const
19 {
20     return m_private->asTraceFormat();
21 }
22
23 void WebConvertableToTraceFormat::assign(const WebConvertableToTraceFormat& r)
24 {
25     m_private = r.m_private;
26 }
27
28 void WebConvertableToTraceFormat::reset()
29 {
30     m_private.reset();
31 }
32
33 } // namespace blink