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 "wtf/text/WTFString.h" |
(...skipping 26 matching lines...) Expand all Loading... |
37 void pushString(const String&); | 37 void pushString(const String&); |
38 void beginArray(); | 38 void beginArray(); |
39 void beginDictionary(); | 39 void beginDictionary(); |
40 | 40 |
41 String toString() const; | 41 String toString() const; |
42 | 42 |
43 private: | 43 private: |
44 TracedValue(); | 44 TracedValue(); |
45 | 45 |
46 // ConvertableToTraceFormat | 46 // ConvertableToTraceFormat |
47 using base::trace_event::ConvertableToTraceFormat:: | 47 |
48 ToString; // Hide this method from blink code. | 48 // Hide this method from blink code. |
| 49 using base::trace_event::ConvertableToTraceFormat::ToString; |
49 void AppendAsTraceFormat(std::string*) const final; | 50 void AppendAsTraceFormat(std::string*) const final; |
50 void EstimateTraceMemoryOverhead( | 51 void EstimateTraceMemoryOverhead( |
51 base::trace_event::TraceEventMemoryOverhead*) final; | 52 base::trace_event::TraceEventMemoryOverhead*) final; |
52 | 53 |
53 base::trace_event::TracedValue m_tracedValue; | 54 base::trace_event::TracedValue m_tracedValue; |
54 }; | 55 }; |
55 | 56 |
56 } // namespace blink | 57 } // namespace blink |
57 | 58 |
58 #endif // TracedValue_h | 59 #endif // TracedValue_h |
OLD | NEW |