summaryrefslogtreecommitdiffstats
path: root/base/base64.h
diff options
context:
space:
mode:
authorjoth@chromium.org <joth@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-07-21 09:37:13 +0000
committerjoth@chromium.org <joth@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-07-21 09:37:13 +0000
commit2b1d9f1e40a879897f13c0189757ebd135ade38b (patch)
tree4ebad79e51561460834cd65181c3940f3cc0d66d /base/base64.h
parentbd183ec2e20df5d2c18ace26cbb0c1c0ede1d70a (diff)
downloadchromium_src-2b1d9f1e40a879897f13c0189757ebd135ade38b.zip
chromium_src-2b1d9f1e40a879897f13c0189757ebd135ade38b.tar.gz
chromium_src-2b1d9f1e40a879897f13c0189757ebd135ade38b.tar.bz2
Added RefCountedString, as this is what many RefCountedMemory users seem to want
Made data member of RefCountedBytes private, as per style guide Changed base64 APIs to accept StringPiece, as it's sometimes better and never worse than string. BUG=None TEST=All existing tests pass. Extended ref_counted_memory_unittests Review URL: http://codereview.chromium.org/7397021 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@93365 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/base64.h')
-rw-r--r--base/base64.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/base/base64.h b/base/base64.h
index 294fb83..e966ea7 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