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

Unified Diff: sky/engine/platform/TracedValue.h

Issue 889823002: Remove TRACE_EVENT indirection through blink::Platform (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 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
« no previous file with comments | « sky/engine/platform/TestingPlatformSupport.cpp ('k') | sky/engine/platform/TracedValue.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/platform/TracedValue.h
diff --git a/sky/engine/platform/TracedValue.h b/sky/engine/platform/TracedValue.h
deleted file mode 100644
index 74a2cb9d6d6e0ff030e67ae352ff29502c020c20..0000000000000000000000000000000000000000
--- a/sky/engine/platform/TracedValue.h
+++ /dev/null
@@ -1,55 +0,0 @@
-// Copyright 2014 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef SKY_ENGINE_PLATFORM_TRACEDVALUE_H_
-#define SKY_ENGINE_PLATFORM_TRACEDVALUE_H_
-
-#include "sky/engine/platform/EventTracer.h"
-
-#include "sky/engine/wtf/PassRefPtr.h"
-#include "sky/engine/wtf/text/WTFString.h"
-
-namespace blink {
-class JSONArray;
-class JSONObject;
-class JSONValue;
-
-class PLATFORM_EXPORT TracedValue : public TraceEvent::ConvertableToTraceFormat {
- WTF_MAKE_NONCOPYABLE(TracedValue);
-
-public:
- static PassRefPtr<TracedValue> create();
-
- void endDictionary();
- void endArray();
-
- void setInteger(const char* name, int value);
- void setDouble(const char* name, double);
- void setBoolean(const char* name, bool value);
- void setString(const char* name, const String& value);
- void beginArray(const char* name);
- void beginDictionary(const char* name);
-
- void pushInteger(int);
- void pushDouble(double);
- void pushBoolean(bool);
- void pushString(const String&);
- void beginArray();
- void beginDictionary();
-
- virtual String asTraceFormat() const override;
-
-private:
- TracedValue();
- virtual ~TracedValue();
-
- JSONObject* currentDictionary() const;
- JSONArray* currentArray() const;
-
- Vector<RefPtr<JSONValue> > m_stack;
-};
-
-} // namespace blink
-
-#endif // SKY_ENGINE_PLATFORM_TRACEDVALUE_H_
« no previous file with comments | « sky/engine/platform/TestingPlatformSupport.cpp ('k') | sky/engine/platform/TracedValue.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698