Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(257)

Side by Side Diff: net/quic/platform/impl/quic_url_utils_impl.cc

Issue 2740453006: Add QuicStringPiece which is actually StringPiece. (Closed)
Patch Set: fix compile error and rebase Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « net/quic/platform/impl/quic_url_utils_impl.h ('k') | net/quic/quartc/quartc_session.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
OLDNEW
« no previous file with comments | « net/quic/platform/impl/quic_url_utils_impl.h ('k') | net/quic/quartc/quartc_session.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698