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

Unified Diff: net/spdy/spdy_alt_svc_wire_format.h

Issue 1458163002: Remove |using base::StringPiece| from net/spdy header files. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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/spdy/hpack/hpack_static_table.cc ('k') | net/spdy/spdy_alt_svc_wire_format.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/spdy/spdy_alt_svc_wire_format.h
diff --git a/net/spdy/spdy_alt_svc_wire_format.h b/net/spdy/spdy_alt_svc_wire_format.h
index 317ae9736602768735d2dd52d4ddf0133be89b2b..85dd0d3be29b6bc28062280ebee6647dcbf5793e 100644
--- a/net/spdy/spdy_alt_svc_wire_format.h
+++ b/net/spdy/spdy_alt_svc_wire_format.h
@@ -16,8 +16,6 @@
#include "base/strings/string_piece.h"
#include "net/base/net_export.h"
-using base::StringPiece;
-
namespace net {
namespace test {
@@ -62,29 +60,29 @@ class NET_EXPORT_PRIVATE SpdyAltSvcWireFormat {
typedef std::vector<AlternativeService> AlternativeServiceVector;
friend class test::SpdyAltSvcWireFormatPeer;
- static bool ParseHeaderFieldValue(StringPiece value,
+ static bool ParseHeaderFieldValue(base::StringPiece value,
AlternativeServiceVector* altsvc_vector);
static std::string SerializeHeaderFieldValue(
const AlternativeServiceVector& altsvc_vector);
private:
- static void SkipWhiteSpace(StringPiece::const_iterator* c,
- StringPiece::const_iterator end);
- static bool PercentDecode(StringPiece::const_iterator c,
- StringPiece::const_iterator end,
+ static void SkipWhiteSpace(base::StringPiece::const_iterator* c,
+ base::StringPiece::const_iterator end);
+ static bool PercentDecode(base::StringPiece::const_iterator c,
+ base::StringPiece::const_iterator end,
std::string* output);
- static bool ParseAltAuthority(StringPiece::const_iterator c,
- StringPiece::const_iterator end,
+ static bool ParseAltAuthority(base::StringPiece::const_iterator c,
+ base::StringPiece::const_iterator end,
std::string* host,
uint16* port);
- static bool ParsePositiveInteger16(StringPiece::const_iterator c,
- StringPiece::const_iterator end,
+ static bool ParsePositiveInteger16(base::StringPiece::const_iterator c,
+ base::StringPiece::const_iterator end,
uint16* value);
- static bool ParsePositiveInteger32(StringPiece::const_iterator c,
- StringPiece::const_iterator end,
+ static bool ParsePositiveInteger32(base::StringPiece::const_iterator c,
+ base::StringPiece::const_iterator end,
uint32* value);
- static bool ParseProbability(StringPiece::const_iterator c,
- StringPiece::const_iterator end,
+ static bool ParseProbability(base::StringPiece::const_iterator c,
+ base::StringPiece::const_iterator end,
double* probability);
};
« no previous file with comments | « net/spdy/hpack/hpack_static_table.cc ('k') | net/spdy/spdy_alt_svc_wire_format.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698