Index: third_party/WebKit/Source/core/timing/PerformanceServerTiming.h |
diff --git a/third_party/WebKit/Source/core/timing/PerformanceServerTiming.h b/third_party/WebKit/Source/core/timing/PerformanceServerTiming.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..66a09314b34013d1b8b6347517040e5571c6103f |
--- /dev/null |
+++ b/third_party/WebKit/Source/core/timing/PerformanceServerTiming.h |
@@ -0,0 +1,43 @@ |
+// Copyright 2017 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 PerformanceServerTiming_h |
+#define PerformanceServerTiming_h |
+ |
+#include "core/timing/PerformanceEntry.h" |
+ |
+namespace blink { |
+ |
+class CORE_EXPORT PerformanceServerTiming : public PerformanceEntry { |
+ DEFINE_WRAPPERTYPEINFO(); |
+ |
+ public: |
+ ~PerformanceServerTiming() override; |
+ |
+ static PerformanceServerTiming* create(const String& name, |
+ const String& metric, |
+ double duration, |
+ const String& description) { |
+ return new PerformanceServerTiming(name, metric, duration, description); |
+ } |
+ |
+ String metric() const; |
+ String description() const; |
+ |
+ protected: |
+ void buildJSONValue(V8ObjectBuilder&) const override; |
+ |
+ private: |
+ PerformanceServerTiming(const String& name, |
+ const String& metric, |
+ double duration, |
+ const String& description); |
+ |
+ const String m_metric; |
+ const String m_description; |
+}; |
+ |
+} // namespace blink |
+ |
+#endif // PerformanceServerTiming_h |