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 "platform/EventTracer.h" | 8 #include "platform/EventTracer.h" |
9 | 9 |
10 #include "wtf/PassRefPtr.h" | 10 #include "wtf/PassRefPtr.h" |
(...skipping 20 matching lines...) Expand all Loading... |
31 void beginArray(const char* name); | 31 void beginArray(const char* name); |
32 void beginDictionary(const char* name); | 32 void beginDictionary(const char* name); |
33 | 33 |
34 void pushInteger(int); | 34 void pushInteger(int); |
35 void pushDouble(double); | 35 void pushDouble(double); |
36 void pushBoolean(bool); | 36 void pushBoolean(bool); |
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 virtual String asTraceFormat() const OVERRIDE; | 41 virtual String asTraceFormat() const override; |
42 | 42 |
43 private: | 43 private: |
44 TracedValue(); | 44 TracedValue(); |
45 virtual ~TracedValue(); | 45 virtual ~TracedValue(); |
46 | 46 |
47 JSONObject* currentDictionary() const; | 47 JSONObject* currentDictionary() const; |
48 JSONArray* currentArray() const; | 48 JSONArray* currentArray() const; |
49 | 49 |
50 Vector<RefPtr<JSONValue> > m_stack; | 50 Vector<RefPtr<JSONValue> > m_stack; |
51 }; | 51 }; |
52 | 52 |
53 } // namespace blink | 53 } // namespace blink |
54 | 54 |
55 #endif // TracedValue_h | 55 #endif // TracedValue_h |
OLD | NEW |