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

Issue 11410029: Added a ResourceMessageFilter for handling resource messages on another thread. (Closed)

Created:
8 years, 1 month ago by raymes
Modified:
8 years, 1 month ago
Reviewers:
brettw, yzshen1
CC:
chromium-reviews, Peng
Visibility:
Public.

Description

Added a ResourceMessageFilter for handling resource messages on another thread. ResourceHosts make it difficult to handle messages on background threads. This adds a ResourceMessageFilter class which can be subclassed to easily handle resource messages on another thread. It should be added to a ResourceHost using |AddFilter|. BUG=None TEST=Added a unittest Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=168729

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : . #

Total comments: 8

Patch Set 4 : . #

Patch Set 5 : . #

Patch Set 6 : . #

Patch Set 7 : . #

Patch Set 8 : . #

Total comments: 4

Patch Set 9 : . #

Total comments: 4

Patch Set 10 : . #

Patch Set 11 : . #

Patch Set 12 : #

Patch Set 13 : . #

Total comments: 14

Patch Set 14 : . #

Total comments: 2

Patch Set 15 : . #

Unified diffs Side-by-side diffs Delta from patch set Stats (+569 lines, -86 lines) Patch
M chrome/renderer/pepper/pepper_flash_menu_host.h View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M chrome/renderer/pepper/pepper_flash_menu_host.cc View 1 2 3 4 5 6 7 8 2 chunks +8 lines, -8 lines 0 comments Download
M ppapi/host/host_message_context.h View 1 2 3 4 5 1 chunk +3 lines, -2 lines 0 comments Download
M ppapi/host/ppapi_host.cc View 1 2 3 1 chunk +6 lines, -30 lines 0 comments Download
M ppapi/host/resource_host.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 4 chunks +25 lines, -20 lines 0 comments Download
M ppapi/host/resource_host.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +24 lines, -3 lines 0 comments Download
A ppapi/host/resource_message_filter.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +128 lines, -0 lines 0 comments Download
A ppapi/host/resource_message_filter.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +78 lines, -0 lines 0 comments Download
A ppapi/host/resource_message_filter_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +202 lines, -0 lines 0 comments Download
A + ppapi/host/resource_message_handler.h View 1 2 3 3 chunks +28 lines, -22 lines 0 comments Download
A ppapi/host/resource_message_handler.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +60 lines, -0 lines 0 comments Download
M ppapi/ppapi_host.gypi View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M ppapi/ppapi_tests.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +2 lines, -0 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
raymes
This is currently untested but I thought I'd send it out for quick feedback and ...
8 years, 1 month ago (2012-11-12 22:27:55 UTC) #1
raymes
8 years, 1 month ago (2012-11-12 22:28:14 UTC) #2
yzshen1
First round of comments. I will look into the details when you have tested it. ...
8 years, 1 month ago (2012-11-13 21:51:48 UTC) #3
raymes
I've updated and added a test (and also tested in my other CL). PTAL. http://codereview.chromium.org/11410029/diff/4001/ppapi/host/DEPS ...
8 years, 1 month ago (2012-11-16 18:56:35 UTC) #4
brettw
I looked mostly at a high level and this looks like a good approach. I ...
8 years, 1 month ago (2012-11-16 19:27:54 UTC) #5
raymes
https://codereview.chromium.org/11410029/diff/22001/ppapi/host/resource_message_filter.h File ppapi/host/resource_message_filter.h (right): https://codereview.chromium.org/11410029/diff/22001/ppapi/host/resource_message_filter.h#newcode67 ppapi/host/resource_message_filter.h:67: // AddFilter(make_scoped_ptr(new MyMessageFilter)); On 2012/11/16 19:27:54, brettw wrote: > ...
8 years, 1 month ago (2012-11-16 19:42:49 UTC) #6
yzshen1
Only a few nits. Thanks! http://codereview.chromium.org/11410029/diff/15020/ppapi/host/resource_host.h File ppapi/host/resource_host.h (right): http://codereview.chromium.org/11410029/diff/15020/ppapi/host/resource_host.h#newcode24 ppapi/host/resource_host.h:24: class ResourceMessageFilter; Order these ...
8 years, 1 month ago (2012-11-19 18:59:25 UTC) #7
raymes
http://codereview.chromium.org/11410029/diff/15020/ppapi/host/resource_host.h File ppapi/host/resource_host.h (right): http://codereview.chromium.org/11410029/diff/15020/ppapi/host/resource_host.h#newcode24 ppapi/host/resource_host.h:24: class ResourceMessageFilter; On 2012/11/19 18:59:25, yzshen1 wrote: > Order ...
8 years, 1 month ago (2012-11-19 22:35:04 UTC) #8
yzshen1
LGTM Thanks http://codereview.chromium.org/11410029/diff/11007/ppapi/host/resource_message_filter.h File ppapi/host/resource_message_filter.h (right): http://codereview.chromium.org/11410029/diff/11007/ppapi/host/resource_message_filter.h#newcode73 ppapi/host/resource_message_filter.h:73: // ResourceMessagefilters are usually constructed in the ...
8 years, 1 month ago (2012-11-19 23:07:32 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/raymes@chromium.org/11410029/25007
8 years, 1 month ago (2012-11-20 01:16:28 UTC) #10
commit-bot: I haz the power
Retried try job too often for step(s) sync_integration_tests
8 years, 1 month ago (2012-11-20 02:01:10 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/raymes@chromium.org/11410029/25007
8 years, 1 month ago (2012-11-20 03:28:03 UTC) #12
commit-bot: I haz the power
8 years, 1 month ago (2012-11-20 04:31:38 UTC) #13
Change committed as 168729

Powered by Google App Engine
This is Rietveld 408576698