Chromium Code Reviews| 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 |