OLD | NEW |
(Empty) | |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef PerformanceServerTiming_h |
| 6 #define PerformanceServerTiming_h |
| 7 |
| 8 #include "core/timing/PerformanceEntry.h" |
| 9 |
| 10 namespace blink { |
| 11 |
| 12 class CORE_EXPORT PerformanceServerTiming : public PerformanceEntry { |
| 13 DEFINE_WRAPPERTYPEINFO(); |
| 14 |
| 15 public: |
| 16 ~PerformanceServerTiming() override; |
| 17 |
| 18 static PerformanceServerTiming* create(const String& name, |
| 19 const String& metric, |
| 20 double duration, |
| 21 const String& description) { |
| 22 return new PerformanceServerTiming(name, metric, duration, description); |
| 23 } |
| 24 |
| 25 String metric() const; |
| 26 String description() const; |
| 27 |
| 28 protected: |
| 29 void buildJSONValue(V8ObjectBuilder&) const override; |
| 30 |
| 31 private: |
| 32 PerformanceServerTiming(const String& name, |
| 33 const String& metric, |
| 34 double duration, |
| 35 const String& description); |
| 36 |
| 37 const String m_metric; |
| 38 const String m_description; |
| 39 }; |
| 40 |
| 41 } // namespace blink |
| 42 |
| 43 #endif // PerformanceServerTiming_h |
OLD | NEW |