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 #include "platform/tracing/TracedValue.h" | 5 #include "platform/tracing/TracedValue.h" |
6 | 6 |
7 #include "wtf/PtrUtil.h" | 7 #include "wtf/PtrUtil.h" |
8 #include "wtf/text/StringUTF8Adaptor.h" | 8 #include "wtf/text/StringUTF8Adaptor.h" |
9 | 9 |
10 namespace blink { | 10 namespace blink { |
11 | 11 |
12 std::unique_ptr<TracedValue> TracedValue::create() { | 12 std::unique_ptr<TracedValue> TracedValue::create() { |
13 return wrapUnique(new TracedValue()); | 13 return WTF::wrapUnique(new TracedValue()); |
14 } | 14 } |
15 | 15 |
16 TracedValue::TracedValue() {} | 16 TracedValue::TracedValue() {} |
17 | 17 |
18 TracedValue::~TracedValue() {} | 18 TracedValue::~TracedValue() {} |
19 | 19 |
20 void TracedValue::setInteger(const char* name, int value) { | 20 void TracedValue::setInteger(const char* name, int value) { |
21 m_tracedValue.SetIntegerWithCopiedName(name, value); | 21 m_tracedValue.SetIntegerWithCopiedName(name, value); |
22 } | 22 } |
23 | 23 |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 void TracedValue::AppendAsTraceFormat(std::string* out) const { | 82 void TracedValue::AppendAsTraceFormat(std::string* out) const { |
83 m_tracedValue.AppendAsTraceFormat(out); | 83 m_tracedValue.AppendAsTraceFormat(out); |
84 } | 84 } |
85 | 85 |
86 void TracedValue::EstimateTraceMemoryOverhead( | 86 void TracedValue::EstimateTraceMemoryOverhead( |
87 base::trace_event::TraceEventMemoryOverhead* overhead) { | 87 base::trace_event::TraceEventMemoryOverhead* overhead) { |
88 m_tracedValue.EstimateTraceMemoryOverhead(overhead); | 88 m_tracedValue.EstimateTraceMemoryOverhead(overhead); |
89 } | 89 } |
90 | 90 |
91 } // namespace blink | 91 } // namespace blink |
OLD | NEW |