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

Unified Diff: net/spdy/platform/impl/spdy_string_utils_impl.h

Issue 2801603003: Add SpdyString alias for std::string in net/spdy. (Closed)
Patch Set: Created 3 years, 8 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/spdy/platform/impl/spdy_string_impl.h ('k') | net/spdy/spdy_alt_svc_wire_format.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/spdy/platform/impl/spdy_string_utils_impl.h
diff --git a/net/spdy/platform/impl/spdy_string_utils_impl.h b/net/spdy/platform/impl/spdy_string_utils_impl.h
index 4a5a0f3a8827c3650a209d2cdc98d7ead5921f7e..76c69908c3ada8ed7f9e38d005a16cee2e3299d2 100644
--- a/net/spdy/platform/impl/spdy_string_utils_impl.h
+++ b/net/spdy/platform/impl/spdy_string_utils_impl.h
@@ -6,15 +6,15 @@
#define NET_SPDY_PLATFORM_IMPL_SPDY_STRING_UTILS_IMPL_H_
#include <sstream>
-#include <string>
#include "base/strings/string_util.h"
#include "base/strings/stringprintf.h"
+#include "net/spdy/platform/api/spdy_string.h"
namespace net {
template <typename... Args>
-inline std::string SpdyStrCatImpl(const Args&... args) {
+inline SpdyString SpdyStrCatImpl(const Args&... args) {
std::ostringstream oss;
int dummy[] = {1, (oss << args, 0)...};
static_cast<void>(dummy);
@@ -22,12 +22,12 @@ inline std::string SpdyStrCatImpl(const Args&... args) {
}
template <typename... Args>
-inline void SpdyStrAppendImpl(std::string* output, Args... args) {
+inline void SpdyStrAppendImpl(SpdyString* output, Args... args) {
output->append(SpdyStrCatImpl(args...));
}
template <typename... Args>
-inline std::string SpdyStringPrintfImpl(const Args&... args) {
+inline SpdyString SpdyStringPrintfImpl(const Args&... args) {
return base::StringPrintf(std::forward<const Args&>(args)...);
}
« no previous file with comments | « net/spdy/platform/impl/spdy_string_impl.h ('k') | net/spdy/spdy_alt_svc_wire_format.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698