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.
5 #ifndef WebConvertableToTraceFormat_h
6 #define WebConvertableToTraceFormat_h
8 #include "WebPrivatePtr.h"
13 namespace TraceEvent
{
14 class ConvertableToTraceFormat
;
17 class WebConvertableToTraceFormat
{
19 WebConvertableToTraceFormat() { }
21 WebConvertableToTraceFormat(PassRefPtr
<TraceEvent::ConvertableToTraceFormat
>);
23 ~WebConvertableToTraceFormat() { reset(); }
25 BLINK_PLATFORM_EXPORT WebString
asTraceFormat() const;
26 BLINK_PLATFORM_EXPORT
void assign(const WebConvertableToTraceFormat
&);
27 BLINK_PLATFORM_EXPORT
void moveFrom(WebConvertableToTraceFormat
&);
28 BLINK_PLATFORM_EXPORT
void reset();
30 WebConvertableToTraceFormat(const WebConvertableToTraceFormat
& r
) { assign(r
); }
31 WebConvertableToTraceFormat
& operator=(const WebConvertableToTraceFormat
& r
)
38 WebPrivatePtr
<TraceEvent::ConvertableToTraceFormat
> m_private
;