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

Issue 9015009: Use the new callback tracker and delete the old one (Closed)

Created:
8 years, 12 months ago by brettw
Modified:
8 years, 11 months ago
Reviewers:
viettrungluu
CC:
chromium-reviews, pam+watch_chromium.org, Paweł Hajdan Jr., darin-cc_chromium.org, brettw-cc_chromium.org
Visibility:
Public.

Description

Use the new callback tracker and delete the old one I added some ClearAndRun and ClearAndAbort helper functions to clean up the common pattern of doing a swap to run the callbacks. I was also able to clean up some of the file callbacks stuff since the parameters to the new TrackedCallback are simpler. This fixes a scary bug in the Transport API where all completion callbacks would be aborted for all objects when you close the connection (!) The HostResourceTracker is no longer necessary since the only point of this was to integrate with the callback tracker. I removed it. BUG=74062 TEST= Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=116395

Patch Set 1 #

Patch Set 2 : Address comments #

Total comments: 4

Patch Set 3 : Review comments #

Patch Set 4 : Add IsPending #

Unified diffs Side-by-side diffs Delta from patch set Stats (+149 lines, -859 lines) Patch
M chrome/renderer/chrome_ppb_pdf_impl.cc View 1 chunk +0 lines, -1 line 0 comments Download
M ppapi/shared_impl/resource_tracker.h View 1 chunk +3 lines, -4 lines 0 comments Download
M ppapi/shared_impl/tracked_callback.h View 1 2 3 2 chunks +20 lines, -0 lines 0 comments Download
M ppapi/shared_impl/tracked_callback.cc View 1 2 3 1 chunk +23 lines, -0 lines 0 comments Download
M webkit/glue/webkit_glue.gypi View 2 chunks +0 lines, -4 lines 0 comments Download
D webkit/plugins/ppapi/callbacks.h View 1 chunk +0 lines, -206 lines 0 comments Download
D webkit/plugins/ppapi/callbacks.cc View 1 chunk +0 lines, -157 lines 0 comments Download
D webkit/plugins/ppapi/callbacks_unittest.cc View 1 chunk +0 lines, -256 lines 0 comments Download
M webkit/plugins/ppapi/file_callbacks.h View 2 chunks +8 lines, -6 lines 0 comments Download
M webkit/plugins/ppapi/file_callbacks.cc View 1 chunk +5 lines, -6 lines 0 comments Download
M webkit/plugins/ppapi/host_globals.h View 3 chunks +2 lines, -5 lines 0 comments Download
M webkit/plugins/ppapi/host_globals.cc View 3 chunks +5 lines, -5 lines 0 comments Download
D webkit/plugins/ppapi/host_resource_tracker.h View 1 chunk +0 lines, -30 lines 0 comments Download
D webkit/plugins/ppapi/host_resource_tracker.cc View 1 chunk +0 lines, -36 lines 0 comments Download
M webkit/plugins/ppapi/plugin_module.h View 3 chunks +1 line, -7 lines 0 comments Download
M webkit/plugins/ppapi/plugin_module.cc View 5 chunks +2 lines, -10 lines 0 comments Download
M webkit/plugins/ppapi/ppb_broker_impl.h View 2 chunks +2 lines, -2 lines 0 comments Download
M webkit/plugins/ppapi/ppb_broker_impl.cc View 1 2 3 3 chunks +7 lines, -12 lines 0 comments Download
M webkit/plugins/ppapi/ppb_directory_reader_impl.cc View 1 chunk +1 line, -2 lines 0 comments Download
M webkit/plugins/ppapi/ppb_file_chooser_impl.h View 3 chunks +5 lines, -2 lines 0 comments Download
M webkit/plugins/ppapi/ppb_file_chooser_impl.cc View 1 2 3 5 chunks +6 lines, -8 lines 0 comments Download
M webkit/plugins/ppapi/ppb_file_ref_impl.cc View 4 chunks +4 lines, -8 lines 0 comments Download
M webkit/plugins/ppapi/ppb_file_system_impl.cc View 1 chunk +1 line, -2 lines 0 comments Download
M webkit/plugins/ppapi/ppb_flash_menu_impl.h View 2 chunks +2 lines, -2 lines 0 comments Download
M webkit/plugins/ppapi/ppb_flash_menu_impl.cc View 1 2 3 4 chunks +5 lines, -9 lines 0 comments Download
M webkit/plugins/ppapi/ppb_flash_net_connector_impl.h View 2 chunks +2 lines, -2 lines 0 comments Download
M webkit/plugins/ppapi/ppb_flash_net_connector_impl.cc View 1 2 3 6 chunks +7 lines, -16 lines 0 comments Download
M webkit/plugins/ppapi/ppb_transport_impl.h View 2 chunks +5 lines, -5 lines 0 comments Download
M webkit/plugins/ppapi/ppb_transport_impl.cc View 1 2 3 11 chunks +24 lines, -43 lines 0 comments Download
M webkit/plugins/ppapi/ppb_url_loader_impl.h View 2 chunks +2 lines, -2 lines 0 comments Download
M webkit/plugins/ppapi/ppb_url_loader_impl.cc View 1 2 3 6 chunks +7 lines, -10 lines 0 comments Download
M webkit/tools/test_shell/test_shell.gypi View 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 3 (0 generated)
brettw
8 years, 12 months ago (2011-12-29 20:53:00 UTC) #1
viettrungluu
LGTM w/1.25 nits. http://codereview.chromium.org/9015009/diff/2001/ppapi/shared_impl/tracked_callback.h File ppapi/shared_impl/tracked_callback.h (right): http://codereview.chromium.org/9015009/diff/2001/ppapi/shared_impl/tracked_callback.h#newcode90 ppapi/shared_impl/tracked_callback.h:90: // Same as RunAndClear except it ...
8 years, 11 months ago (2012-01-03 22:10:14 UTC) #2
viettrungluu
8 years, 11 months ago (2012-01-03 23:51:27 UTC) #3
LGTM

Powered by Google App Engine
This is Rietveld 408576698