blob: 1f2f35a962961d2fd3274987f185d639da90222a [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 "base/strings/string_piece.h"
namespace net {
// Returns true if |host| matches one of the domains of interest for
// stale-while-revalidate histograms. If "" was in the list, then
// "" would match, as would "" and "",
// but not "com" or "". Trailing '.' characters on |host| are
// ignored. |host| is expected to be canonicalised to lowercase (as performed by
// GURL).
// TODO(ricea): Remove this in April 2016 or before.
bool IsHostInStaleWhileRevalidateExperimentDomain(
const base::StringPiece& host);
} // namespace net