summaryrefslogtreecommitdiffstats
path: root/chromium/third_party/WebKit/Source/platform/exported/WebConvertableToTraceFormat.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/third_party/WebKit/Source/platform/exported/WebConvertableToTraceFormat.cpp')
-rw-r--r--chromium/third_party/WebKit/Source/platform/exported/WebConvertableToTraceFormat.cpp36
1 files changed, 36 insertions, 0 deletions
diff --git a/chromium/third_party/WebKit/Source/platform/exported/WebConvertableToTraceFormat.cpp b/chromium/third_party/WebKit/Source/platform/exported/WebConvertableToTraceFormat.cpp
new file mode 100644
index 00000000000..a8991e80af1
--- /dev/null
+++ b/chromium/third_party/WebKit/Source/platform/exported/WebConvertableToTraceFormat.cpp
@@ -0,0 +1,36 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "config.h"
+#include "public/platform/WebConvertableToTraceFormat.h"
+
+#include "platform/EventTracer.h"
+#include "public/platform/WebString.h"
+
+using blink::WebConvertableToTraceFormat;
+using blink::WebString;
+
+namespace blink {
+
+WebConvertableToTraceFormat::WebConvertableToTraceFormat(WebCore::TraceEvent::ConvertableToTraceFormat* convertable)
+ : m_private(convertable)
+{
+}
+
+WebString WebConvertableToTraceFormat::asTraceFormat() const
+{
+ return m_private->asTraceFormat();
+}
+
+void WebConvertableToTraceFormat::assign(const WebConvertableToTraceFormat& r)
+{
+ m_private = r.m_private;
+}
+
+void WebConvertableToTraceFormat::reset()
+{
+ m_private.reset();
+}
+
+}