Chromium Code Reviews
[email protected] (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(234)

Issue 8226009: Remove the proxy callback tracker. (Closed)

Created:
9 years, 2 months ago by brettw
Modified:
9 years, 2 months ago
Reviewers:
viettrungluu
CC:
chromium-reviews
Visibility:
Public.

Description

Remove the proxy callback tracker. This doesn't properly delete callbacks when the corresponding resource goes away. This can lead to leaks or crashes in the plugin when the callback is triggered unexpectedly. BUG=http://crbug.com/86279 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=106677

Patch Set 1 #

Patch Set 2 : Patch #

Patch Set 3 : Merge #

Total comments: 9

Patch Set 4 : Addressed review comments. #

Patch Set 5 : PostMessage define. #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+434 lines, -331 lines) Patch
M ppapi/ppapi_proxy.gypi View 1 1 chunk +0 lines, -2 lines 0 comments Download
D ppapi/proxy/callback_tracker.h View 1 chunk +0 lines, -66 lines 0 comments Download
D ppapi/proxy/callback_tracker.cc View 1 chunk +0 lines, -72 lines 0 comments Download
M ppapi/proxy/dispatcher.h View 3 chunks +0 lines, -7 lines 0 comments Download
M ppapi/proxy/dispatcher.cc View 2 chunks +1 line, -13 lines 0 comments Download
M ppapi/proxy/enter_proxy.h View 1 2 3 1 chunk +76 lines, -0 lines 0 comments Download
M ppapi/proxy/interface_proxy.h View 1 chunk +0 lines, -3 lines 0 comments Download
M ppapi/proxy/interface_proxy.cc View 1 chunk +0 lines, -9 lines 0 comments Download
M ppapi/proxy/plugin_dispatcher.h View 1 2 3 1 chunk +5 lines, -0 lines 0 comments Download
M ppapi/proxy/plugin_dispatcher.cc View 1 1 chunk +9 lines, -1 line 0 comments Download
M ppapi/proxy/ppapi_messages.h View 1 2 3 4 9 chunks +27 lines, -21 lines 0 comments Download
M ppapi/proxy/ppb_file_ref_proxy.h View 2 chunks +25 lines, -11 lines 0 comments Download
M ppapi/proxy/ppb_file_ref_proxy.cc View 1 2 3 5 chunks +129 lines, -43 lines 0 comments Download
M ppapi/proxy/ppb_instance_proxy.h View 1 2 3 4 4 chunks +17 lines, -3 lines 1 comment Download
M ppapi/proxy/ppb_instance_proxy.cc View 1 2 3 4 7 chunks +45 lines, -11 lines 0 comments Download
M ppapi/proxy/ppb_url_loader_proxy.h View 2 chunks +16 lines, -15 lines 0 comments Download
M ppapi/proxy/ppb_url_loader_proxy.cc View 1 2 3 14 chunks +79 lines, -54 lines 0 comments Download
M ppapi/thunk/ppb_instance_api.h View 1 2 3 4 1 chunk +5 lines, -0 lines 1 comment Download

Messages

Total messages: 6 (0 generated)
brettw
9 years, 2 months ago (2011-10-12 19:39:45 UTC) #1
viettrungluu
You should probably look at the test failures in your try jobs.
9 years, 2 months ago (2011-10-12 21:52:50 UTC) #2
brettw
On 2011/10/12 21:52:50, viettrungluu wrote: > You should probably look at the test failures in ...
9 years, 2 months ago (2011-10-14 22:10:29 UTC) #3
viettrungluu
http://codereview.chromium.org/8226009/diff/4001/ppapi/proxy/enter_proxy.h File ppapi/proxy/enter_proxy.h (right): http://codereview.chromium.org/8226009/diff/4001/ppapi/proxy/enter_proxy.h#newcode197 ppapi/proxy/enter_proxy.h:197: RunCallback(PP_ERROR_BADRESOURCE); PP_ERROR_BADARGUMENT? http://codereview.chromium.org/8226009/diff/4001/ppapi/proxy/enter_proxy.h#newcode211 ppapi/proxy/enter_proxy.h:211: RunCallback(PP_ERROR_BADRESOURCE); " http://codereview.chromium.org/8226009/diff/4001/ppapi/proxy/ppb_file_ref_proxy.cc File ppapi/proxy/ppb_file_ref_proxy.cc ...
9 years, 2 months ago (2011-10-17 17:11:03 UTC) #4
brettw
http://codereview.chromium.org/8226009/diff/4001/ppapi/proxy/ppb_file_ref_proxy.cc File ppapi/proxy/ppb_file_ref_proxy.cc (right): http://codereview.chromium.org/8226009/diff/4001/ppapi/proxy/ppb_file_ref_proxy.cc#newcode65 ppapi/proxy/ppb_file_ref_proxy.cc:65: int next_callback_id_; I added a loop to check for ...
9 years, 2 months ago (2011-10-17 19:49:20 UTC) #5
viettrungluu
9 years, 2 months ago (2011-10-20 23:29:46 UTC) #6
LGTM. Sorry for the delay.

http://codereview.chromium.org/8226009/diff/8019/ppapi/proxy/ppb_instance_pro...
File ppapi/proxy/ppb_instance_proxy.h (right):

http://codereview.chromium.org/8226009/diff/8019/ppapi/proxy/ppb_instance_pro...
ppapi/proxy/ppb_instance_proxy.h:21: #undef PostMessage
This makes this header incompatible with using Windows's PostMessage, which is
unfortunate. Probably we can make this file compile properly on Windows by
renaming ppapi::thunk::PPB_Instance_FunctionAPI's PostMessage method.

Users of ppb_messaging.h are potentially more screwed. Maybe we should do
something like:

#ifdef PostMessage
#error "crap"
#endif

(I'd suggest "#warning", but that's apparently nonstandard.)

Let's deal with this in a separate CL.

http://codereview.chromium.org/8226009/diff/8019/ppapi/thunk/ppb_instance_api.h
File ppapi/thunk/ppb_instance_api.h (right):

http://codereview.chromium.org/8226009/diff/8019/ppapi/thunk/ppb_instance_api...
ppapi/thunk/ppb_instance_api.h:18: #undef PostMessage
"

Powered by Google App Engine
This is Rietveld 408576698