From 748ce719f7594754695dfbd17b35618a58a5ffd1 Mon Sep 17 00:00:00 2001 From: "neb@chromium.org" Date: Mon, 28 Mar 2011 22:15:13 +0000 Subject: 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 --- ppapi/cpp/url_request_info.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ppapi/cpp/url_request_info.cc') 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()) return false; return PPBoolToBool(get_interface()->AppendDataToBody( -- cgit v1.1