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

Unified Diff: base/base64.cc

Issue 7397021: Re-land r93365 - add RefCountedString (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase again Created 9 years, 5 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 | « base/base64.h ('k') | base/debug/trace_event.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/base64.cc
diff --git a/base/base64.cc b/base/base64.cc
index 56a577dbcf19b2dc6733a6657b8c77187ed00492..62bd12d1fb635f951f4ce7d2aa692cfb5a65aeab 100644
--- a/base/base64.cc
+++ b/base/base64.cc
@@ -8,7 +8,7 @@
namespace base {
-bool Base64Encode(const std::string& input, std::string* output) {
+bool Base64Encode(const StringPiece& input, std::string* output) {
std::string temp;
temp.resize(modp_b64_encode_len(input.size())); // makes room for null byte
@@ -23,7 +23,7 @@ bool Base64Encode(const std::string& input, std::string* output) {
return true;
}
-bool Base64Decode(const std::string& input, std::string* output) {
+bool Base64Decode(const StringPiece& input, std::string* output) {
std::string temp;
temp.resize(modp_b64_decode_len(input.size()));
« no previous file with comments | « base/base64.h ('k') | base/debug/trace_event.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698