blob: 092f3ad001b288e21765e5da3ec98ad9fad6abcd [file] [log] [blame]
// Copyright (c) 2013 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 "net/quic/platform/impl/quic_url_utils_impl.h"
#include "url/gurl.h"
using std::string;
namespace net {
// static
string QuicUrlUtilsImpl::HostName(QuicStringPiece url) {
return GURL(url).host();
}
// static
bool QuicUrlUtilsImpl::IsValidUrl(QuicStringPiece url) {
return GURL(url).is_valid();
}
} // namespace net