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

Side by Side Diff: net/spdy/platform/impl/spdy_string_utils_impl.h

Issue 2778043004: Factor out StringAppendF into spdy/platform/. (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 unified diff | Download patch
OLDNEW
1 // Copyright 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 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 #ifndef NET_SPDY_PLATFORM_IMPL_SPDY_STRING_UTILS_IMPL_H_ 5 #ifndef NET_SPDY_PLATFORM_IMPL_SPDY_STRING_UTILS_IMPL_H_
6 #define NET_SPDY_PLATFORM_IMPL_SPDY_STRING_UTILS_IMPL_H_ 6 #define NET_SPDY_PLATFORM_IMPL_SPDY_STRING_UTILS_IMPL_H_
7 7
8 #include <sstream> 8 #include <sstream>
9 #include <string> 9 #include <string>
10 10
(...skipping 12 matching lines...) Expand all
23 template <typename... Args> 23 template <typename... Args>
24 inline void SpdyStrAppendImpl(std::string* output, Args... args) { 24 inline void SpdyStrAppendImpl(std::string* output, Args... args) {
25 output->append(SpdyStrCatImpl(args...)); 25 output->append(SpdyStrCatImpl(args...));
26 } 26 }
27 27
28 template <typename... Args> 28 template <typename... Args>
29 inline std::string SpdyStringPrintfImpl(const Args&... args) { 29 inline std::string SpdyStringPrintfImpl(const Args&... args) {
30 return base::StringPrintf(std::forward<const Args&>(args)...); 30 return base::StringPrintf(std::forward<const Args&>(args)...);
31 } 31 }
32 32
33 template <typename... Args>
34 inline void SpdyStringAppendFImpl(const Args&... args) {
35 base::StringAppendF(std::forward<const Args&>(args)...);
36 }
37
33 } // namespace net 38 } // namespace net
34 39
35 #endif // NET_SPDY_PLATFORM_IMPL_SPDY_STRING_UTILS_IMPL_H_ 40 #endif // NET_SPDY_PLATFORM_IMPL_SPDY_STRING_UTILS_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698