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

Issue 6711047: Fix up some types in the API. (Closed)

Created:
9 years, 9 months ago by neb
Modified:
9 years, 7 months ago
CC:
chromium-reviews, piman+watch_chromium.org, darin-cc_chromium.org
Visibility:
Public.

Description

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 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=79623

Patch Set 1 #

Total comments: 7

Patch Set 2 : Removed constness on MemFree. #

Total comments: 2

Patch Set 3 : Fixed all MemFree mentions. #

Patch Set 4 : Add stddef.h to glext_ppapi.c #

Patch Set 5 : Mo' fixes #

Total comments: 10

Patch Set 6 : static_cast and header order #

Unified diffs Side-by-side diffs Delta from patch set Stats (+36 lines, -33 lines) Patch
M ppapi/c/dev/ppb_context_3d_trusted_dev.h View 2 chunks +2 lines, -2 lines 0 comments Download
M ppapi/c/pp_stdint.h View 1 chunk +0 lines, -2 lines 0 comments Download
M ppapi/c/ppb_audio.h View 3 chunks +4 lines, -4 lines 0 comments Download
M ppapi/c/ppb_core.h View 1 2 chunks +3 lines, -3 lines 0 comments Download
M ppapi/c/ppb_url_loader.h View 1 chunk +1 line, -1 line 0 comments Download
M ppapi/c/ppb_url_request_info.h View 1 chunk +1 line, -1 line 0 comments Download
M ppapi/c/private/ppb_flash_net_connector.h View 1 chunk +2 lines, -2 lines 0 comments Download
M ppapi/cpp/core.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M ppapi/cpp/url_loader.h View 1 chunk +1 line, -1 line 0 comments Download
M ppapi/cpp/url_loader.cc View 1 chunk +1 line, -1 line 0 comments Download
M ppapi/cpp/url_request_info.h View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M ppapi/cpp/url_request_info.cc View 1 chunk +1 line, -1 line 0 comments Download
M ppapi/lib/gl/egl/egldriver.c View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M ppapi/lib/gl/gles2/gl2ext_ppapi.c View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M ppapi/proxy/ppb_core_proxy.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M ppapi/proxy/ppb_url_loader_proxy.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M ppapi/proxy/ppb_url_request_info_proxy.cc View 1 2 3 4 5 2 chunks +2 lines, -2 lines 0 comments Download
M webkit/plugins/ppapi/plugin_module.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M webkit/plugins/ppapi/ppb_context_3d_impl.cc View 1 chunk +1 line, -1 line 0 comments Download
M webkit/plugins/ppapi/ppb_url_loader_impl.h View 1 chunk +1 line, -1 line 0 comments Download
M webkit/plugins/ppapi/ppb_url_loader_impl.cc View 1 2 3 4 5 3 chunks +3 lines, -3 lines 0 comments Download
M webkit/plugins/ppapi/ppb_url_request_info_impl.cc View 1 2 3 4 5 1 chunk +3 lines, -2 lines 0 comments Download

Messages

Total messages: 14 (0 generated)
neb
9 years, 9 months ago (2011-03-21 19:13:06 UTC) #1
dmichael(do not use this one)
http://codereview.chromium.org/6711047/diff/1/ppapi/c/ppb_core.h File ppapi/c/ppb_core.h (right): http://codereview.chromium.org/6711047/diff/1/ppapi/c/ppb_core.h#newcode16 ppapi/c/ppb_core.h:16: #define PPB_CORE_INTERFACE "PPB_Core;0.4" Are you going to put in ...
9 years, 9 months ago (2011-03-21 21:53:24 UTC) #2
neb
http://codereview.chromium.org/6711047/diff/1/ppapi/c/ppb_core.h File ppapi/c/ppb_core.h (right): http://codereview.chromium.org/6711047/diff/1/ppapi/c/ppb_core.h#newcode16 ppapi/c/ppb_core.h:16: #define PPB_CORE_INTERFACE "PPB_Core;0.4" On 2011/03/21 21:53:24, dmichael wrote: > ...
9 years, 9 months ago (2011-03-21 22:16:15 UTC) #3
dmichael(do not use this one)
It might be good to do a heads-up to nacl-eng and/or pepper-team about the ppb_core ...
9 years, 9 months ago (2011-03-21 22:26:58 UTC) #4
David Springer
http://codereview.chromium.org/6711047/diff/1/ppapi/c/ppb_core.h File ppapi/c/ppb_core.h (right): http://codereview.chromium.org/6711047/diff/1/ppapi/c/ppb_core.h#newcode16 ppapi/c/ppb_core.h:16: #define PPB_CORE_INTERFACE "PPB_Core;0.4" On 2011/03/21 22:16:15, neb wrote: > ...
9 years, 9 months ago (2011-03-21 22:31:29 UTC) #5
neb
http://codereview.chromium.org/6711047/diff/6004/webkit/plugins/ppapi/plugin_module.cc File webkit/plugins/ppapi/plugin_module.cc (right): http://codereview.chromium.org/6711047/diff/6004/webkit/plugins/ppapi/plugin_module.cc#newcode146 webkit/plugins/ppapi/plugin_module.cc:146: free(const_cast<void*>(ptr)); On 2011/03/21 22:26:58, dmichael wrote: > I think ...
9 years, 9 months ago (2011-03-21 23:22:25 UTC) #6
dmichael(do not use this one)
In case you didn't already see them, it looks like you still have some build ...
9 years, 9 months ago (2011-03-22 14:35:47 UTC) #7
neb
On 2011/03/21 22:31:29, David Springer wrote: > http://codereview.chromium.org/6711047/diff/1/ppapi/c/ppb_core.h > File ppapi/c/ppb_core.h (right): > > http://codereview.chromium.org/6711047/diff/1/ppapi/c/ppb_core.h#newcode16 ...
9 years, 9 months ago (2011-03-22 20:02:18 UTC) #8
David Springer
On Tue, Mar 22, 2011 at 2:02 PM, <neb@chromium.org> wrote: > On 2011/03/21 22:31:29, David ...
9 years, 9 months ago (2011-03-22 20:08:19 UTC) #9
piman
I'm not sure I agree with the decision to switch from char* to void*. char* ...
9 years, 9 months ago (2011-03-24 03:41:36 UTC) #10
neb
On 2011/03/24 03:41:36, piman wrote: > I'm not sure I agree with the decision to ...
9 years, 9 months ago (2011-03-25 21:26:41 UTC) #11
neb
On 2011/03/24 03:41:36, piman wrote: > I'm not sure I agree with the decision to ...
9 years, 9 months ago (2011-03-25 21:26:41 UTC) #12
neb
http://codereview.chromium.org/6711047/diff/15001/ppapi/lib/gl/egl/egldriver.c File ppapi/lib/gl/egl/egldriver.c (right): http://codereview.chromium.org/6711047/diff/15001/ppapi/lib/gl/egl/egldriver.c#newcode7 ppapi/lib/gl/egl/egldriver.c:7: #include "third_party/mesa/MesaLib/src/egl/main/egldriver.h" On 2011/03/24 03:41:36, piman wrote: > This ...
9 years, 9 months ago (2011-03-25 21:27:10 UTC) #13
piman
9 years, 9 months ago (2011-03-26 01:26:55 UTC) #14
Ok, LGTM I guess, I don't want to hold this up.

Powered by Google App Engine
This is Rietveld 408576698