diff options
author | mpcomplete@chromium.org <mpcomplete@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-10-06 18:15:58 +0000 |
---|---|---|
committer | mpcomplete@chromium.org <mpcomplete@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-10-06 18:15:58 +0000 |
commit | e4dad9fbf5a48cb65d085e49c8f7917c8f31300b (patch) | |
tree | 3df910ad37afd8d633f16cc47d0f4b46f6647fbf /base/values.h | |
parent | 2a3e3c054891c865540524beb4af96ec68c481ba (diff) | |
download | chromium_src-e4dad9fbf5a48cb65d085e49c8f7917c8f31300b.zip chromium_src-e4dad9fbf5a48cb65d085e49c8f7917c8f31300b.tar.gz chromium_src-e4dad9fbf5a48cb65d085e49c8f7917c8f31300b.tar.bz2 |
Modify extension request IPC messages to pass a ListValue instead of a string.
This allows us to pass binary values through extension requests. I use this in
my next CL to pass SkBitmaps.
BUG=23269
TEST=no
Review URL: http://codereview.chromium.org/251093
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@28130 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/values.h')
-rw-r--r-- | base/values.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/base/values.h b/base/values.h index 8e3669b..b3c380c 100644 --- a/base/values.h +++ b/base/values.h @@ -171,7 +171,7 @@ class BinaryValue: public Value { // factory method creates a new BinaryValue by copying the contents of the // buffer that's passed in. // Returns NULL if buffer is NULL. - static BinaryValue* CreateWithCopiedBuffer(char* buffer, size_t size); + static BinaryValue* CreateWithCopiedBuffer(const char* buffer, size_t size); ~BinaryValue(); @@ -181,6 +181,7 @@ class BinaryValue: public Value { size_t GetSize() const { return size_; } char* GetBuffer() { return buffer_; } + const char* GetBuffer() const { return buffer_; } private: // Constructor is private so that only objects with valid buffer pointers |