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

Unified Diff: third_party/WebKit/Source/platform/TracedValue.h

Issue 1620673002: Remove Blink's ConvertableToTraceFormat (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/platform/TracedValue.h
diff --git a/third_party/WebKit/Source/platform/TracedValue.h b/third_party/WebKit/Source/platform/TracedValue.h
index 89b2d6e0905d21aafcee8712d49d9e4217f5183d..85887c4bdee3cb851b102e9ea02aa7ae605c35b0 100644
--- a/third_party/WebKit/Source/platform/TracedValue.h
+++ b/third_party/WebKit/Source/platform/TracedValue.h
@@ -19,10 +19,12 @@ class TracedValue;
namespace blink {
// TracedValue copies all passed names and values and doesn't retain references.
-class PLATFORM_EXPORT TracedValue : public TraceEvent::ConvertableToTraceFormat {
+class PLATFORM_EXPORT TracedValue final : public RefCounted<TracedValue> {
WTF_MAKE_NONCOPYABLE(TracedValue);
public:
+ ~TracedValue();
+
static PassRefPtr<TracedValue> create();
void endDictionary();
@@ -42,14 +44,16 @@ public:
void beginArray();
void beginDictionary();
- String asTraceFormat() const override;
- void estimateTraceMemoryOverhead(base::trace_event::TraceEventMemoryOverhead*) override;
+ String toString() const;
private:
TracedValue();
- ~TracedValue() override;
+ // This will be moved (and become null) when TracedValue is passed to
+ // EventTracer::addTraceEvent().
scoped_refptr<base::trace_event::TracedValue> m_tracedValue;
+
+ friend class EventTracer;
};
} // namespace blink
« no previous file with comments | « third_party/WebKit/Source/platform/TraceEventCommon.h ('k') | third_party/WebKit/Source/platform/TracedValue.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698