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

Unified Diff: net/quic/platform/api/quic_hostname_utils.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/core/spdy_utils_test.cc ('k') | net/quic/platform/api/quic_hostname_utils.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/platform/api/quic_hostname_utils.h
diff --git a/net/quic/platform/api/quic_hostname_utils.h b/net/quic/platform/api/quic_hostname_utils.h
index 14adea03b3cc19085803e87b2ece576418690486..9c46d68356c6be25ea7f81329a25a285ca45af57 100644
--- a/net/quic/platform/api/quic_hostname_utils.h
+++ b/net/quic/platform/api/quic_hostname_utils.h
@@ -7,6 +7,7 @@
#include "base/macros.h"
#include "net/quic/platform/api/quic_export.h"
+#include "net/quic/platform/api/quic_string_piece.h"
#include "net/quic/platform/impl/quic_hostname_utils_impl.h"
namespace net {
@@ -19,7 +20,7 @@ class QUIC_EXPORT_PRIVATE QuicHostnameUtils {
// (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/core/spdy_utils_test.cc ('k') | net/quic/platform/api/quic_hostname_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698