| 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 TracedValue_h | 5 #ifndef TracedValue_h |
| 6 #define TracedValue_h | 6 #define TracedValue_h |
| 7 | 7 |
| 8 #include "base/trace_event/trace_event_argument.h" | 8 #include "base/trace_event/trace_event_argument.h" |
| 9 #include "platform/PlatformExport.h" | 9 #include "platform/PlatformExport.h" |
| 10 #include "wtf/text/WTFString.h" | 10 #include "platform/wtf/text/WTFString.h" |
| 11 | 11 |
| 12 namespace blink { | 12 namespace blink { |
| 13 | 13 |
| 14 // TracedValue copies all passed names and values and doesn't retain references. | 14 // TracedValue copies all passed names and values and doesn't retain references. |
| 15 class PLATFORM_EXPORT TracedValue final | 15 class PLATFORM_EXPORT TracedValue final |
| 16 : public base::trace_event::ConvertableToTraceFormat { | 16 : public base::trace_event::ConvertableToTraceFormat { |
| 17 WTF_MAKE_NONCOPYABLE(TracedValue); | 17 WTF_MAKE_NONCOPYABLE(TracedValue); |
| 18 | 18 |
| 19 public: | 19 public: |
| 20 ~TracedValue(); | 20 ~TracedValue(); |
| (...skipping 29 matching lines...) Expand all Loading... |
| 50 void AppendAsTraceFormat(std::string*) const final; | 50 void AppendAsTraceFormat(std::string*) const final; |
| 51 void EstimateTraceMemoryOverhead( | 51 void EstimateTraceMemoryOverhead( |
| 52 base::trace_event::TraceEventMemoryOverhead*) final; | 52 base::trace_event::TraceEventMemoryOverhead*) final; |
| 53 | 53 |
| 54 base::trace_event::TracedValue m_tracedValue; | 54 base::trace_event::TracedValue m_tracedValue; |
| 55 }; | 55 }; |
| 56 | 56 |
| 57 } // namespace blink | 57 } // namespace blink |
| 58 | 58 |
| 59 #endif // TracedValue_h | 59 #endif // TracedValue_h |
| OLD | NEW |