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

Issue 9113044: Convert to new enter method (Closed)

Created:
8 years, 11 months ago by brettw
Modified:
8 years, 10 months ago
Reviewers:
yzshen1
CC:
chromium-reviews
Visibility:
Public.

Description

Convert most users in thunk that used MayForceCallback to use the new Enter... format that does callback validation and forcing in its destructor. This adds the same support for callback tracking for EnterFunction... as my previous patch did for EnterResource. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=120499

Patch Set 1 #

Patch Set 2 : Self review #

Patch Set 3 : Actually remove MayForceCallback #

Patch Set 4 : Remove common.h #

Total comments: 12

Patch Set 5 : PATCH DESCRIPTIONS ARE A STUPID WASTE OF TIME #

Patch Set 6 : PATCH DESCRIPTIONS ARE A STUPID WASTE OF TIME #

Unified diffs Side-by-side diffs Delta from patch set Stats (+295 lines, -338 lines) Patch
M ppapi/ppapi_shared.gypi View 1 2 3 4 1 chunk +0 lines, -2 lines 0 comments Download
D ppapi/thunk/common.h View 1 2 1 chunk +0 lines, -21 lines 0 comments Download
D ppapi/thunk/common.cc View 1 2 1 chunk +0 lines, -31 lines 0 comments Download
M ppapi/thunk/enter.h View 5 chunks +27 lines, -6 lines 0 comments Download
M ppapi/thunk/enter.cc View 1 2 3 4 5 3 chunks +45 lines, -2 lines 0 comments Download
M ppapi/thunk/ppb_audio_input_thunk.cc View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download
M ppapi/thunk/ppb_audio_input_trusted_thunk.cc View 1 2 3 3 chunks +6 lines, -8 lines 0 comments Download
M ppapi/thunk/ppb_audio_trusted_thunk.cc View 1 2 3 3 chunks +6 lines, -8 lines 0 comments Download
M ppapi/thunk/ppb_broker_thunk.cc View 1 2 3 2 chunks +5 lines, -7 lines 0 comments Download
M ppapi/thunk/ppb_buffer_trusted_thunk.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M ppapi/thunk/ppb_directory_reader_thunk.cc View 1 2 3 4 2 chunks +4 lines, -5 lines 0 comments Download
M ppapi/thunk/ppb_file_chooser_thunk.cc View 1 2 3 4 chunks +8 lines, -11 lines 0 comments Download
M ppapi/thunk/ppb_file_io_thunk.cc View 1 2 3 5 chunks +29 lines, -35 lines 0 comments Download
M ppapi/thunk/ppb_file_io_trusted_thunk.cc View 1 2 3 2 chunks +12 lines, -12 lines 0 comments Download
M ppapi/thunk/ppb_file_ref_thunk.cc View 1 2 3 4 3 chunks +23 lines, -25 lines 0 comments Download
M ppapi/thunk/ppb_file_system_thunk.cc View 1 2 3 4 2 chunks +8 lines, -8 lines 0 comments Download
M ppapi/thunk/ppb_flash_clipboard_thunk.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M ppapi/thunk/ppb_flash_menu_thunk.cc View 1 2 3 4 3 chunks +4 lines, -6 lines 0 comments Download
M ppapi/thunk/ppb_flash_net_connector_thunk.cc View 1 2 3 4 chunks +12 lines, -15 lines 0 comments Download
M ppapi/thunk/ppb_graphics_2d_thunk.cc View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download
M ppapi/thunk/ppb_graphics_3d_thunk.cc View 1 2 3 3 chunks +8 lines, -11 lines 0 comments Download
M ppapi/thunk/ppb_image_data_trusted_thunk.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M ppapi/thunk/ppb_input_event_thunk.cc View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M ppapi/thunk/ppb_layer_compositor_thunk.cc View 1 2 3 2 chunks +1 line, -2 lines 0 comments Download
M ppapi/thunk/ppb_mouse_lock_thunk.cc View 1 2 3 2 chunks +3 lines, -5 lines 0 comments Download
M ppapi/thunk/ppb_tcp_socket_private_thunk.cc View 1 2 3 6 chunks +23 lines, -26 lines 0 comments Download
M ppapi/thunk/ppb_transport_thunk.cc View 1 2 3 4 2 chunks +15 lines, -20 lines 0 comments Download
M ppapi/thunk/ppb_udp_socket_private_thunk.cc View 1 2 3 4 chunks +15 lines, -18 lines 0 comments Download
M ppapi/thunk/ppb_url_loader_thunk.cc View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download
M ppapi/thunk/ppb_video_capture_thunk.cc View 1 2 3 3 chunks +3 lines, -7 lines 0 comments Download
M ppapi/thunk/ppb_video_decoder_thunk.cc View 1 2 3 3 chunks +9 lines, -13 lines 0 comments Download
M ppapi/thunk/ppb_websocket_thunk.cc View 1 2 3 4 3 chunks +24 lines, -26 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
brettw
This is the follow-on to this code review: https://chromiumcodereview.appspot.com/9235003 to convert most of the rest ...
8 years, 11 months ago (2012-01-25 00:44:21 UTC) #1
yzshen1
LGTM with a few small issues: https://chromiumcodereview.appspot.com/9113044/diff/3021/ppapi/thunk/ppb_directory_reader_thunk.cc File ppapi/thunk/ppb_directory_reader_thunk.cc (right): https://chromiumcodereview.appspot.com/9113044/diff/3021/ppapi/thunk/ppb_directory_reader_thunk.cc#newcode33 ppapi/thunk/ppb_directory_reader_thunk.cc:33: EnterResource<PPB_DirectoryReader_API> enter(directory_reader, true); ...
8 years, 11 months ago (2012-01-25 19:11:00 UTC) #2
brettw
https://chromiumcodereview.appspot.com/9113044/diff/3021/ppapi/thunk/ppb_layer_compositor_thunk.cc File ppapi/thunk/ppb_layer_compositor_thunk.cc (right): https://chromiumcodereview.appspot.com/9113044/diff/3021/ppapi/thunk/ppb_layer_compositor_thunk.cc#newcode48 ppapi/thunk/ppb_layer_compositor_thunk.cc:48: return PP_ERROR_NOINTERFACE; The problem is that since there's no ...
8 years, 11 months ago (2012-01-25 19:54:12 UTC) #3
yzshen1
LGTM https://chromiumcodereview.appspot.com/9113044/diff/3021/ppapi/thunk/ppb_layer_compositor_thunk.cc File ppapi/thunk/ppb_layer_compositor_thunk.cc (right): https://chromiumcodereview.appspot.com/9113044/diff/3021/ppapi/thunk/ppb_layer_compositor_thunk.cc#newcode48 ppapi/thunk/ppb_layer_compositor_thunk.cc:48: return PP_ERROR_NOINTERFACE; Okay. I am okay to leave ...
8 years, 11 months ago (2012-01-25 20:06:26 UTC) #4
brettw
https://chromiumcodereview.appspot.com/9113044/diff/3021/ppapi/thunk/ppb_layer_compositor_thunk.cc File ppapi/thunk/ppb_layer_compositor_thunk.cc (right): https://chromiumcodereview.appspot.com/9113044/diff/3021/ppapi/thunk/ppb_layer_compositor_thunk.cc#newcode48 ppapi/thunk/ppb_layer_compositor_thunk.cc:48: return PP_ERROR_NOINTERFACE; On 2012/01/25 20:06:26, yzshen1 wrote: > Okay. ...
8 years, 11 months ago (2012-01-26 05:17:39 UTC) #5
brettw
Thanks for the great review. https://chromiumcodereview.appspot.com/9113044/diff/3021/ppapi/thunk/ppb_flash_menu_thunk.cc File ppapi/thunk/ppb_flash_menu_thunk.cc (right): https://chromiumcodereview.appspot.com/9113044/diff/3021/ppapi/thunk/ppb_flash_menu_thunk.cc#newcode19 ppapi/thunk/ppb_flash_menu_thunk.cc:19: EnterFunction<ResourceCreationAPI> enter(instance, true); Yeah, ...
8 years, 11 months ago (2012-01-26 05:22:00 UTC) #6
yzshen1
LGTM again. :) [Not sure whether you are waiting for my response.] https://chromiumcodereview.appspot.com/9113044/diff/3021/ppapi/thunk/ppb_flash_menu_thunk.cc File ppapi/thunk/ppb_flash_menu_thunk.cc ...
8 years, 11 months ago (2012-01-27 18:25:47 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/brettw@chromium.org/9113044/13001
8 years, 10 months ago (2012-02-04 17:22:14 UTC) #8
commit-bot: I haz the power
Try job failure for 9113044-13001 (retry) on linux_rel for step "compile" (clobber build). It's a ...
8 years, 10 months ago (2012-02-04 17:43:42 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/brettw@chromium.org/9113044/12003
8 years, 10 months ago (2012-02-04 22:36:01 UTC) #10
commit-bot: I haz the power
8 years, 10 months ago (2012-02-05 03:07:30 UTC) #11
Change committed as 120499

Powered by Google App Engine
This is Rietveld 408576698