| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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/impl/quic_url_utils_impl.h" | 5 #include "net/quic/platform/impl/quic_url_utils_impl.h" |
| 6 | 6 |
| 7 #include "url/gurl.h" | 7 #include "url/gurl.h" |
| 8 | 8 |
| 9 using base::StringPiece; | |
| 10 using std::string; | 9 using std::string; |
| 11 | 10 |
| 12 namespace net { | 11 namespace net { |
| 13 | 12 |
| 14 // static | 13 // static |
| 15 string QuicUrlUtilsImpl::HostName(StringPiece url) { | 14 string QuicUrlUtilsImpl::HostName(QuicStringPiece url) { |
| 16 return GURL(url).host(); | 15 return GURL(url).host(); |
| 17 } | 16 } |
| 18 | 17 |
| 19 // static | 18 // static |
| 20 bool QuicUrlUtilsImpl::IsValidUrl(StringPiece url) { | 19 bool QuicUrlUtilsImpl::IsValidUrl(QuicStringPiece url) { |
| 21 return GURL(url).is_valid(); | 20 return GURL(url).is_valid(); |
| 22 } | 21 } |
| 23 | 22 |
| 24 } // namespace net | 23 } // namespace net |
| OLD | NEW |