summaryrefslogtreecommitdiffstats
path: root/ppapi/cpp/url_request_info.cc
diff options
context:
space:
mode:
authorneb@chromium.org <neb@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-28 22:15:13 +0000
committerneb@chromium.org <neb@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-28 22:15:13 +0000
commit748ce719f7594754695dfbd17b35618a58a5ffd1 (patch)
treecb8c9a30d8d8d64c4cfcbd3429535c3e6ec116c1 /ppapi/cpp/url_request_info.cc
parentafbdbf11a0beb96ac10459e5748db0f5abc41ef5 (diff)
downloadchromium_src-748ce719f7594754695dfbd17b35618a58a5ffd1.zip
chromium_src-748ce719f7594754695dfbd17b35618a58a5ffd1.tar.gz
chromium_src-748ce719f7594754695dfbd17b35618a58a5ffd1.tar.bz2
Fix up some types in the API.
size_t -> int32_t, char* -> void* for buffers, void* -> const void* where needed. We already use int32_t when we serialize size_t (and unlike pointers, size_ts do get serialized a lot). char* for representing unstructured blocks of memory is weird, see "man 2 read" and friends. I'm removing it because it complicates our type system in IDL for no reason. const void* should be obvious. BUG=76271 TEST=none Review URL: http://codereview.chromium.org/6711047 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@79623 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ppapi/cpp/url_request_info.cc')
-rw-r--r--ppapi/cpp/url_request_info.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/ppapi/cpp/url_request_info.cc b/ppapi/cpp/url_request_info.cc
index 76cf832..1303d71 100644
--- a/ppapi/cpp/url_request_info.cc
+++ b/ppapi/cpp/url_request_info.cc
@@ -39,7 +39,7 @@ bool URLRequestInfo::SetProperty(PP_URLRequestProperty property,
pp_resource(), property, value.pp_var()));
}
-bool URLRequestInfo::AppendDataToBody(const char* data, uint32_t len) {
+bool URLRequestInfo::AppendDataToBody(const void* data, uint32_t len) {
if (!has_interface<PPB_URLRequestInfo>())
return false;
return PPBoolToBool(get_interface<PPB_URLRequestInfo>()->AppendDataToBody(