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

Issue 53123002: Rename HandleConverter to NaClMessageScanner. (Closed)

Created:
7 years, 1 month ago by bbudge
Modified:
7 years, 1 month ago
CC:
chromium-reviews
Visibility:
Public.

Description

Rename HandleConverter to NaClMessageScanner. Renames the class and its methods to reflect its role as a message cracker, translator, and auditor. Combines several out params into a single ScanOutput structure, to make it easier to add other functions to the scan. BUG=194304 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=232603

Patch Set 1 : #

Total comments: 18

Patch Set 2 : Mark's comments, don't write out params on failure. #

Patch Set 3 : Avoid needless message copying on Windows. #

Patch Set 4 : Clean up. #

Patch Set 5 : Check output handles before returning rewritten message. #

Total comments: 22

Patch Set 6 : Address David's comments, remove early return in SerializedVar overload. #

Patch Set 7 : Comment tweaks. #

Total comments: 2

Patch Set 8 : Remove SerializedVar fix for a future CL, add TODO. #

Total comments: 10

Patch Set 9 : Remove early out for ResourceMessageReplyParams. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+161 lines, -501 lines) Patch
M components/nacl/loader/DEPS View 1 chunk +2 lines, -2 lines 0 comments Download
M components/nacl/loader/nacl_ipc_adapter.h View 2 chunks +2 lines, -2 lines 0 comments Download
M components/nacl/loader/nacl_ipc_adapter.cc View 1 2 3 4 5 4 chunks +13 lines, -13 lines 0 comments Download
M ppapi/ppapi_ipc.gypi View 1 chunk +2 lines, -2 lines 0 comments Download
D ppapi/proxy/handle_converter.h View 1 chunk +0 lines, -62 lines 0 comments Download
D ppapi/proxy/handle_converter.cc View 1 chunk +0 lines, -282 lines 0 comments Download
A + ppapi/proxy/nacl_message_scanner.h View 1 2 3 4 5 6 2 chunks +24 lines, -24 lines 0 comments Download
A + ppapi/proxy/nacl_message_scanner.cc View 1 2 3 4 5 6 7 8 6 chunks +118 lines, -114 lines 0 comments Download

Messages

Total messages: 19 (0 generated)
bbudge
https://codereview.chromium.org/53123002/diff/20001/components/nacl/loader/nacl_ipc_adapter.cc File components/nacl/loader/nacl_ipc_adapter.cc (right): https://codereview.chromium.org/53123002/diff/20001/components/nacl/loader/nacl_ipc_adapter.cc#newcode460 components/nacl/loader/nacl_ipc_adapter.cc:460: if (new_msg && !handles.empty()) I wonder if we really ...
7 years, 1 month ago (2013-10-30 19:01:34 UTC) #1
bbudge
Mark for components/nacl David for everything
7 years, 1 month ago (2013-10-30 19:02:17 UTC) #2
Mark Seaborn
https://codereview.chromium.org/53123002/diff/20001/ppapi/proxy/nacl_message_scanner.cc File ppapi/proxy/nacl_message_scanner.cc (right): https://codereview.chromium.org/53123002/diff/20001/ppapi/proxy/nacl_message_scanner.cc#newcode26 ppapi/proxy/nacl_message_scanner.cc:26: struct ScanOutput { Can you add a note in ...
7 years, 1 month ago (2013-10-30 20:05:31 UTC) #3
dmichael (off chromium)
New PS didn't upload right. Can you try again, please? https://codereview.chromium.org/53123002/diff/20001/components/nacl/loader/nacl_ipc_adapter.cc File components/nacl/loader/nacl_ipc_adapter.cc (right): https://codereview.chromium.org/53123002/diff/20001/components/nacl/loader/nacl_ipc_adapter.cc#newcode460 ...
7 years, 1 month ago (2013-10-30 20:57:56 UTC) #4
bbudge
https://codereview.chromium.org/53123002/diff/20001/ppapi/proxy/nacl_message_scanner.cc File ppapi/proxy/nacl_message_scanner.cc (right): https://codereview.chromium.org/53123002/diff/20001/ppapi/proxy/nacl_message_scanner.cc#newcode26 ppapi/proxy/nacl_message_scanner.cc:26: struct ScanOutput { On 2013/10/30 20:05:31, Mark Seaborn wrote: ...
7 years, 1 month ago (2013-10-30 21:02:48 UTC) #5
bbudge
Fixed a long-standing issue with rewriting resource replies on Windows. PTAL.
7 years, 1 month ago (2013-10-30 22:29:27 UTC) #6
bbudge
Patchset #5 is to fix failing Windows tests. I think there must be another case ...
7 years, 1 month ago (2013-10-31 00:55:28 UTC) #7
dmichael (off chromium)
Looks like a nice improvement to me, Thanks! Most of my comments are about improving ...
7 years, 1 month ago (2013-10-31 18:21:33 UTC) #8
bbudge
https://codereview.chromium.org/53123002/diff/440001/components/nacl/loader/nacl_ipc_adapter.cc File components/nacl/loader/nacl_ipc_adapter.cc (right): https://codereview.chromium.org/53123002/diff/440001/components/nacl/loader/nacl_ipc_adapter.cc#newcode534 components/nacl/loader/nacl_ipc_adapter.cc:534: return false; // TODO(brettw) clean up handles here when ...
7 years, 1 month ago (2013-11-01 00:34:45 UTC) #9
dmichael (off chromium)
moreso lgtm https://codereview.chromium.org/53123002/diff/440001/ppapi/proxy/nacl_message_scanner.cc File ppapi/proxy/nacl_message_scanner.cc (right): https://codereview.chromium.org/53123002/diff/440001/ppapi/proxy/nacl_message_scanner.cc#newcode66 ppapi/proxy/nacl_message_scanner.cc:66: return; On 2013/11/01 00:34:45, bbudge1 wrote: > ...
7 years, 1 month ago (2013-11-01 19:35:16 UTC) #10
Mark Seaborn
On 2013/10/30 22:29:27, bbudge1 wrote: > Fixed a long-standing issue with rewriting resource replies on ...
7 years, 1 month ago (2013-11-01 20:23:18 UTC) #11
bbudge
On 2013/11/01 20:23:18, Mark Seaborn wrote: > On 2013/10/30 22:29:27, bbudge1 wrote: > > Fixed ...
7 years, 1 month ago (2013-11-01 22:10:28 UTC) #12
bbudge
I removed the SerializedVar fix for a later CL and added a TODO. Reworked some ...
7 years, 1 month ago (2013-11-01 23:27:28 UTC) #13
Mark Seaborn
> I removed the SerializedVar fix for a later CL and added a TODO. In ...
7 years, 1 month ago (2013-11-02 00:57:44 UTC) #14
bbudge
https://codereview.chromium.org/53123002/diff/780001/components/nacl/loader/nacl_ipc_adapter.cc File components/nacl/loader/nacl_ipc_adapter.cc (right): https://codereview.chromium.org/53123002/diff/780001/components/nacl/loader/nacl_ipc_adapter.cc#newcode460 components/nacl/loader/nacl_ipc_adapter.cc:460: if (new_msg) On 2013/11/02 00:57:44, Mark Seaborn wrote: > ...
7 years, 1 month ago (2013-11-02 01:18:49 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bbudge@chromium.org/53123002/870001
7 years, 1 month ago (2013-11-02 01:21:25 UTC) #16
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) unit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=217979
7 years, 1 month ago (2013-11-02 04:07:17 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bbudge@chromium.org/53123002/870001
7 years, 1 month ago (2013-11-02 05:09:34 UTC) #18
commit-bot: I haz the power
7 years, 1 month ago (2013-11-02 13:38:33 UTC) #19
Message was sent while issue was closed.
Change committed as 232603

Powered by Google App Engine
This is Rietveld 408576698