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

Unified Diff: third_party/WebKit/Source/core/timing/PerformanceServerTiming.h

Issue 2839683003: Server-Timing (Closed)
Patch Set: make those robots happy, attempt #4 Created 3 years, 8 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/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..a4d211be8f9394680db92d6d9e3d59d9f06cabbe
--- /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;
Nico 2017/05/12 01:42:24 This file uses old blink style. Please name member
+ const String m_description;
+};
+
+} // namespace blink
+
+#endif // PerformanceServerTiming_h

Powered by Google App Engine
This is Rietveld 408576698