blob: 17a5bf382d6e89a588514174f0e050b8b794bab8 [file] [log] [blame]
// Copyright 2015 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.
#include "third_party/blink/renderer/platform/network/server_timing_header.h"
namespace blink {
void ServerTimingHeader::SetParameter(StringView name, String value) {
if (EqualIgnoringASCIICase(name, "dur")) {
if (!duration_set_) {
duration_ = value.ToDouble();
duration_set_ = true;
}
} else if (EqualIgnoringASCIICase(name, "desc")) {
if (!description_set_) {
description_ = value;
description_set_ = true;
}
}
}
} // namespace blink