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

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

Issue 1717283003: tracing: Make ConvertableToTraceFormat move-only scoped_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 9 months 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
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 "base/memory/ref_counted.h" 8 #include "base/memory/ref_counted.h"
9 #include "platform/EventTracer.h" 9 #include "platform/EventTracer.h"
10 #include "wtf/PassOwnPtr.h" 10 #include "wtf/PassOwnPtr.h"
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 void beginArray(); 44 void beginArray();
45 void beginDictionary(); 45 void beginDictionary();
46 46
47 String toString() const; 47 String toString() const;
48 48
49 private: 49 private:
50 TracedValue(); 50 TracedValue();
51 51
52 // This will be moved (and become null) when TracedValue is passed to 52 // This will be moved (and become null) when TracedValue is passed to
53 // EventTracer::addTraceEvent(). 53 // EventTracer::addTraceEvent().
54 scoped_refptr<base::trace_event::TracedValue> m_tracedValue; 54 scoped_ptr<base::trace_event::TracedValue> m_tracedValue;
55 55
56 friend class EventTracer; 56 friend class EventTracer;
57 }; 57 };
58 58
59 } // namespace blink 59 } // namespace blink
60 60
61 #endif // TracedValue_h 61 #endif // TracedValue_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698