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

Unified Diff: base/base64.h

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/base.gyp ('k') | base/base64.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/base64.h
diff --git a/base/base64.h b/base/base64.h
index 294fb83a2db4ff5af0320a821ea8fbd15493f7d5..e966ea70a9e58ffaafea596a0615c958c99b527e 100644
--- a/base/base64.h
+++ b/base/base64.h
@@ -9,16 +9,17 @@
#include <string>
#include "base/base_api.h"
+#include "base/string_piece.h"
namespace base {
// Encodes the input string in base64. Returns true if successful and false
// otherwise. The output string is only modified if successful.
-BASE_API bool Base64Encode(const std::string& input, std::string* output);
+BASE_API bool Base64Encode(const StringPiece& input, std::string* output);
// Decodes the base64 input string. Returns true if successful and false
// otherwise. The output string is only modified if successful.
-BASE_API bool Base64Decode(const std::string& input, std::string* output);
+BASE_API bool Base64Decode(const StringPiece& input, std::string* output);
} // namespace base
« no previous file with comments | « base/base.gyp ('k') | base/base64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698