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

Issue 10696157: Add support for threadsafe completion callback factory. (Closed)

Created:
8 years, 5 months ago by brettw
Modified:
8 years, 4 months ago
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam
Visibility:
Public.

Description

Add support for threadsafe completion callback factory. This also makes the default be threadsafe. The old factory wasn't threadsafe even to the extent claimed in the header which was causing hangs in plugins BUG=136284 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=146611

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Total comments: 2

Patch Set 4 : #

Total comments: 28

Patch Set 5 : #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+464 lines, -185 lines) Patch
M ppapi/cpp/websocket.h View 1 chunk +5 lines, -0 lines 0 comments Download
M ppapi/native_client/src/trusted/plugin/pnacl_coordinator.h View 1 2 3 2 chunks +2 lines, -23 lines 0 comments Download
M ppapi/ppapi_proxy.gypi View 1 chunk +1 line, -0 lines 0 comments Download
M ppapi/ppapi_sources.gypi View 1 1 chunk +3 lines, -1 line 0 comments Download
M ppapi/proxy/ppb_audio_input_proxy.h View 2 chunks +2 lines, -3 lines 0 comments Download
M ppapi/proxy/ppb_audio_proxy.h View 2 chunks +2 lines, -3 lines 0 comments Download
M ppapi/proxy/ppb_broker_proxy.h View 2 chunks +2 lines, -3 lines 0 comments Download
M ppapi/proxy/ppb_file_chooser_proxy.h View 2 chunks +2 lines, -3 lines 0 comments Download
M ppapi/proxy/ppb_file_io_proxy.h View 2 chunks +2 lines, -3 lines 0 comments Download
M ppapi/proxy/ppb_file_ref_proxy.h View 2 chunks +2 lines, -3 lines 0 comments Download
M ppapi/proxy/ppb_file_system_proxy.h View 2 chunks +2 lines, -3 lines 0 comments Download
M ppapi/proxy/ppb_flash_menu_proxy.h View 2 chunks +2 lines, -3 lines 0 comments Download
M ppapi/proxy/ppb_graphics_2d_proxy.h View 2 chunks +2 lines, -3 lines 0 comments Download
M ppapi/proxy/ppb_graphics_3d_proxy.h View 2 chunks +2 lines, -3 lines 0 comments Download
M ppapi/proxy/ppb_instance_proxy.h View 2 chunks +2 lines, -3 lines 0 comments Download
M ppapi/proxy/ppb_url_loader_proxy.h View 2 chunks +2 lines, -3 lines 0 comments Download
M ppapi/proxy/ppb_video_capture_proxy.h View 2 chunks +2 lines, -3 lines 0 comments Download
M ppapi/proxy/ppb_video_decoder_proxy.h View 2 chunks +2 lines, -3 lines 0 comments Download
A ppapi/proxy/proxy_completion_callback_factory.h View 1 2 3 4 1 chunk +79 lines, -0 lines 0 comments Download
D ppapi/proxy/proxy_non_thread_safe_ref_count.h View 1 chunk +0 lines, -49 lines 0 comments Download
M ppapi/utility/completion_callback_factory.h View 1 2 3 4 13 chunks +31 lines, -10 lines 0 comments Download
A ppapi/utility/completion_callback_factory_thread_traits.h View 1 2 3 4 1 chunk +178 lines, -0 lines 1 comment Download
D ppapi/utility/non_thread_safe_ref_count.h View 1 chunk +0 lines, -60 lines 0 comments Download
A ppapi/utility/threading/lock.h View 1 2 3 4 1 chunk +84 lines, -0 lines 0 comments Download
A ppapi/utility/threading/lock.cc View 1 2 3 4 1 chunk +49 lines, -0 lines 1 comment Download
M ppapi/utility/websocket/websocket_api.cc View 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
brettw
trung: everything dschuff: native_client changes Note: the proxy file changes are trivial but they make ...
8 years, 5 months ago (2012-07-10 20:06:43 UTC) #1
Derek Schuff
+jvoung: It looks like maybe that pnacl-specific refcount class could now just be replaced with ...
8 years, 5 months ago (2012-07-10 20:19:01 UTC) #2
brettw
Hmm, I guess this is true. In the proxy I can't do that because of ...
8 years, 5 months ago (2012-07-10 20:22:18 UTC) #3
brettw
New snap up.
8 years, 5 months ago (2012-07-10 20:28:03 UTC) #4
jvoung (off chromium)
On 2012/07/10 20:19:01, dschuff wrote: > +jvoung: > It looks like maybe that pnacl-specific refcount ...
8 years, 5 months ago (2012-07-10 20:29:50 UTC) #5
Derek Schuff
https://chromiumcodereview.appspot.com/10696157/diff/7001/ppapi/native_client/src/trusted/plugin/pnacl_coordinator.h File ppapi/native_client/src/trusted/plugin/pnacl_coordinator.h (right): https://chromiumcodereview.appspot.com/10696157/diff/7001/ppapi/native_client/src/trusted/plugin/pnacl_coordinator.h#newcode188 ppapi/native_client/src/trusted/plugin/pnacl_coordinator.h:188: // TODO(sehr): remove this when file lookup is through ...
8 years, 5 months ago (2012-07-10 20:31:53 UTC) #6
brettw
https://chromiumcodereview.appspot.com/10696157/diff/7001/ppapi/native_client/src/trusted/plugin/pnacl_coordinator.h File ppapi/native_client/src/trusted/plugin/pnacl_coordinator.h (right): https://chromiumcodereview.appspot.com/10696157/diff/7001/ppapi/native_client/src/trusted/plugin/pnacl_coordinator.h#newcode188 ppapi/native_client/src/trusted/plugin/pnacl_coordinator.h:188: // TODO(sehr): remove this when file lookup is through ...
8 years, 5 months ago (2012-07-10 21:06:09 UTC) #7
viettrungluu
I'm going to head over to your desk. https://chromiumcodereview.appspot.com/10696157/diff/6003/ppapi/cpp/websocket.h File ppapi/cpp/websocket.h (right): https://chromiumcodereview.appspot.com/10696157/diff/6003/ppapi/cpp/websocket.h#newcode15 ppapi/cpp/websocket.h:15: // ...
8 years, 5 months ago (2012-07-10 22:47:58 UTC) #8
brettw
New snap up https://chromiumcodereview.appspot.com/10696157/diff/6003/ppapi/cpp/websocket.h File ppapi/cpp/websocket.h (right): https://chromiumcodereview.appspot.com/10696157/diff/6003/ppapi/cpp/websocket.h#newcode15 ppapi/cpp/websocket.h:15: // Windows headers will redefine SendMessage. ...
8 years, 5 months ago (2012-07-10 23:12:57 UTC) #9
viettrungluu
Okay, LGTM w/nit. Gulp. https://chromiumcodereview.appspot.com/10696157/diff/12002/ppapi/utility/threading/lock.cc File ppapi/utility/threading/lock.cc (right): https://chromiumcodereview.appspot.com/10696157/diff/12002/ppapi/utility/threading/lock.cc#newcode12 ppapi/utility/threading/lock.cc:12: // The second parameter is ...
8 years, 5 months ago (2012-07-11 00:11:26 UTC) #10
jvoung (off chromium)
On 2012/07/11 00:11:26, viettrungluu wrote: > Okay, LGTM w/nit. Gulp. > > https://chromiumcodereview.appspot.com/10696157/diff/12002/ppapi/utility/threading/lock.cc > File ...
8 years, 5 months ago (2012-07-12 18:01:34 UTC) #11
kmixter1
8 years, 4 months ago (2012-07-30 21:08:59 UTC) #12
https://chromiumcodereview.appspot.com/10696157/diff/12002/ppapi/utility/comp...
File ppapi/utility/completion_callback_factory_thread_traits.h (right):

https://chromiumcodereview.appspot.com/10696157/diff/12002/ppapi/utility/comp...
ppapi/utility/completion_callback_factory_thread_traits.h:121: ///
MStrong>Note:</strong> in Debug mode, it checks that it is either
typo

Powered by Google App Engine
This is Rietveld 408576698