| 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 #ifndef WebConvertableToTraceFormat_h | 5 #ifndef WebConvertableToTraceFormat_h |
| 6 #define WebConvertableToTraceFormat_h | 6 #define WebConvertableToTraceFormat_h |
| 7 | 7 |
| 8 #include "WebPrivatePtr.h" | 8 #include "WebPrivatePtr.h" |
| 9 #include "WebString.h" | 9 #include "WebString.h" |
| 10 | 10 |
| 11 namespace WebCore { | 11 namespace blink { |
| 12 namespace TraceEvent { | 12 namespace TraceEvent { |
| 13 class ConvertableToTraceFormat; | 13 class ConvertableToTraceFormat; |
| 14 } | 14 } |
| 15 } | 15 } |
| 16 | 16 |
| 17 namespace blink { | 17 namespace blink { |
| 18 | 18 |
| 19 class WebConvertableToTraceFormat { | 19 class WebConvertableToTraceFormat { |
| 20 public: | 20 public: |
| 21 WebConvertableToTraceFormat() { } | 21 WebConvertableToTraceFormat() { } |
| 22 #if INSIDE_BLINK | 22 #if INSIDE_BLINK |
| 23 WebConvertableToTraceFormat(WebCore::TraceEvent::ConvertableToTraceFormat*); | 23 WebConvertableToTraceFormat(blink::TraceEvent::ConvertableToTraceFormat*); |
| 24 #endif | 24 #endif |
| 25 ~WebConvertableToTraceFormat() { reset(); } | 25 ~WebConvertableToTraceFormat() { reset(); } |
| 26 | 26 |
| 27 BLINK_PLATFORM_EXPORT WebString asTraceFormat() const; | 27 BLINK_PLATFORM_EXPORT WebString asTraceFormat() const; |
| 28 BLINK_PLATFORM_EXPORT void assign(const WebConvertableToTraceFormat&); | 28 BLINK_PLATFORM_EXPORT void assign(const WebConvertableToTraceFormat&); |
| 29 BLINK_PLATFORM_EXPORT void reset(); | 29 BLINK_PLATFORM_EXPORT void reset(); |
| 30 | 30 |
| 31 WebConvertableToTraceFormat(const WebConvertableToTraceFormat& r) { assign(r
); } | 31 WebConvertableToTraceFormat(const WebConvertableToTraceFormat& r) { assign(r
); } |
| 32 WebConvertableToTraceFormat& operator=(const WebConvertableToTraceFormat& r) | 32 WebConvertableToTraceFormat& operator=(const WebConvertableToTraceFormat& r) |
| 33 { | 33 { |
| 34 assign(r); | 34 assign(r); |
| 35 return *this; | 35 return *this; |
| 36 } | 36 } |
| 37 | 37 |
| 38 private: | 38 private: |
| 39 WebPrivatePtr<WebCore::TraceEvent::ConvertableToTraceFormat> m_private; | 39 WebPrivatePtr<blink::TraceEvent::ConvertableToTraceFormat> m_private; |
| 40 }; | 40 }; |
| 41 | 41 |
| 42 } // namespace blink | 42 } // namespace blink |
| 43 | 43 |
| 44 #endif | 44 #endif |
| OLD | NEW |