OLD | NEW |
1 // Copyright (c) 2017 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2017 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "net/quic/platform/api/quic_url_utils.h" | 5 #include "net/quic/platform/api/quic_url_utils.h" |
6 | 6 |
7 using base::StringPiece; | |
8 using std::string; | 7 using std::string; |
9 | 8 |
10 namespace net { | 9 namespace net { |
11 | 10 |
12 // static | 11 // static |
13 string QuicUrlUtils::HostName(StringPiece url) { | 12 string QuicUrlUtils::HostName(QuicStringPiece url) { |
14 return QuicUrlUtilsImpl::HostName(url); | 13 return QuicUrlUtilsImpl::HostName(url); |
15 } | 14 } |
16 | 15 |
17 // static | 16 // static |
18 bool QuicUrlUtils::IsValidUrl(StringPiece url) { | 17 bool QuicUrlUtils::IsValidUrl(QuicStringPiece url) { |
19 return QuicUrlUtilsImpl::IsValidUrl(url); | 18 return QuicUrlUtilsImpl::IsValidUrl(url); |
20 } | 19 } |
21 | 20 |
22 } // namespace net | 21 } // namespace net |
OLD | NEW |