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

Side by Side Diff: third_party/WebKit/Source/core/timing/PerformanceServerTiming.cpp

Issue 2839683003: Server-Timing (Closed)
Patch Set: make those robots happy, attempt #4 Created 3 years, 7 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 unified diff | Download patch
OLDNEW
(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 #include "core/timing/PerformanceServerTiming.h"
6
7 #include "bindings/core/v8/V8ObjectBuilder.h"
8 #include "core/timing/PerformanceBase.h"
9 #include "platform/wtf/text/WTFString.h"
10
11 namespace blink {
12
13 PerformanceServerTiming::PerformanceServerTiming(const String& name,
14 const String& metric,
15 double duration,
16 const String& description)
17 : PerformanceEntry(name, "server", 0.0, duration),
18 m_metric(metric),
19 m_description(description) {}
20
21 PerformanceServerTiming::~PerformanceServerTiming() {}
22
23 String PerformanceServerTiming::metric() const {
24 return m_metric;
25 }
26
27 String PerformanceServerTiming::description() const {
28 return m_description;
29 }
30
31 void PerformanceServerTiming::BuildJSONValue(V8ObjectBuilder& builder) const {
32 PerformanceEntry::BuildJSONValue(builder);
33 builder.AddString("metric", metric());
34 builder.AddString("description", description());
35 }
36
37 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698