Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(229)

Side by Side Diff: Source/platform/TracedValue.h

Issue 688623002: [Thread-safe] Remove TracedValue::setArray (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rename to ScriptCallFrame::toTracedValue. Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « Source/core/inspector/ScriptCallStack.cpp ('k') | Source/platform/TracedValue.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 10 matching lines...) Expand all
21 public: 21 public:
22 static PassRefPtr<TracedValue> create(); 22 static PassRefPtr<TracedValue> create();
23 23
24 void endDictionary(); 24 void endDictionary();
25 void endArray(); 25 void endArray();
26 26
27 void setInteger(const char* name, int value); 27 void setInteger(const char* name, int value);
28 void setDouble(const char* name, double); 28 void setDouble(const char* name, double);
29 void setBoolean(const char* name, bool value); 29 void setBoolean(const char* name, bool value);
30 void setString(const char* name, const String& value); 30 void setString(const char* name, const String& value);
31 void setArray(const char* name, PassRefPtr<JSONArray> value);
32 void beginArray(const char* name); 31 void beginArray(const char* name);
33 void beginDictionary(const char* name); 32 void beginDictionary(const char* name);
34 33
35 void pushInteger(int); 34 void pushInteger(int);
36 void pushDouble(double); 35 void pushDouble(double);
37 void pushBoolean(bool); 36 void pushBoolean(bool);
38 void pushString(const String&); 37 void pushString(const String&);
39 void beginArray(); 38 void beginArray();
40 void beginDictionary(); 39 void beginDictionary();
41 40
42 virtual String asTraceFormat() const override; 41 virtual String asTraceFormat() const override;
43 42
44 private: 43 private:
45 TracedValue(); 44 TracedValue();
46 virtual ~TracedValue(); 45 virtual ~TracedValue();
47 46
48 JSONObject* currentDictionary() const; 47 JSONObject* currentDictionary() const;
49 JSONArray* currentArray() const; 48 JSONArray* currentArray() const;
50 49
51 Vector<RefPtr<JSONValue> > m_stack; 50 Vector<RefPtr<JSONValue> > m_stack;
52 }; 51 };
53 52
54 } // namespace blink 53 } // namespace blink
55 54
56 #endif // TracedValue_h 55 #endif // TracedValue_h
OLDNEW
« no previous file with comments | « Source/core/inspector/ScriptCallStack.cpp ('k') | Source/platform/TracedValue.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698