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

Unified Diff: net/quic/platform/impl/quic_hostname_utils_impl.h

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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/quic/platform/api/quic_url_utils.cc ('k') | net/quic/platform/impl/quic_hostname_utils_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/platform/impl/quic_hostname_utils_impl.h
diff --git a/net/quic/platform/impl/quic_hostname_utils_impl.h b/net/quic/platform/impl/quic_hostname_utils_impl.h
index 7e5cd1d39c177592b329f95d4d1d21b1760a41c7..57c67473e00f651754d16755b9668f33c4443f85 100644
--- a/net/quic/platform/impl/quic_hostname_utils_impl.h
+++ b/net/quic/platform/impl/quic_hostname_utils_impl.h
@@ -6,9 +6,9 @@
#define NET_QUIC_PLATFORM_IMPL_QUIC_HOSTNAME_UTILS_IMPL_H_
#include "base/macros.h"
-#include "base/strings/string_piece.h"
#include "net/quic/core/quic_server_id.h"
#include "net/quic/platform/api/quic_export.h"
+#include "net/quic/platform/api/quic_string_piece.h"
namespace net {
@@ -18,7 +18,7 @@ class QUIC_EXPORT_PRIVATE QuicHostnameUtilsImpl {
// (1) disallow IP addresses;
// (2) check that the hostname contains valid characters only; and
// (3) contains at least one dot.
- static bool IsValidSNI(base::StringPiece sni);
+ static bool IsValidSNI(QuicStringPiece sni);
// Convert hostname to lowercase and remove the trailing '.'.
// WARNING: mutates |hostname| in place and returns |hostname|.
« no previous file with comments | « net/quic/platform/api/quic_url_utils.cc ('k') | net/quic/platform/impl/quic_hostname_utils_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698