mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
43 lines
1.1 KiB
C++
43 lines
1.1 KiB
C++
// 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.
|
|
|
|
#ifndef WebConvertableToTraceFormat_h
|
|
#define WebConvertableToTraceFormat_h
|
|
|
|
#include "WebPrivatePtr.h"
|
|
#include "WebString.h"
|
|
|
|
namespace blink {
|
|
|
|
namespace TraceEvent {
|
|
class ConvertableToTraceFormat;
|
|
}
|
|
|
|
class WebConvertableToTraceFormat {
|
|
public:
|
|
WebConvertableToTraceFormat() { }
|
|
#if INSIDE_BLINK
|
|
WebConvertableToTraceFormat(TraceEvent::ConvertableToTraceFormat*);
|
|
#endif
|
|
~WebConvertableToTraceFormat() { reset(); }
|
|
|
|
BLINK_PLATFORM_EXPORT WebString asTraceFormat() const;
|
|
BLINK_PLATFORM_EXPORT void assign(const WebConvertableToTraceFormat&);
|
|
BLINK_PLATFORM_EXPORT void reset();
|
|
|
|
WebConvertableToTraceFormat(const WebConvertableToTraceFormat& r) { assign(r); }
|
|
WebConvertableToTraceFormat& operator=(const WebConvertableToTraceFormat& r)
|
|
{
|
|
assign(r);
|
|
return *this;
|
|
}
|
|
|
|
private:
|
|
WebPrivatePtr<TraceEvent::ConvertableToTraceFormat> m_private;
|
|
};
|
|
|
|
} // namespace blink
|
|
|
|
#endif
|