|
Update ChannelReader to use AttachmentBroker.
Previously, translating from bytes into messages and dispatching the messages
was accomplished in a single step. I've split this into two steps. The function
TranslateInputData turns bytes into messages, and puts those messages in a
queue. The function DispatchMessages() dispatches messages from the queue.
Messages cannot be dispatched until all attachments have been brokered, so
DispatchMessages() will sometimes wait (asynchronously) for the attachments to
get brokered.
BUG= 466437
Committed: https://crrev.com/de9412b8832db0c6e1e283e9f8fce53eb4fd4e67
Cr-Commit-Position: refs/heads/master@{#340509}
Total comments: 14
Total comments: 3
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+575 lines, -69 lines) |
Patch |
 |
M |
ipc/BUILD.gn
|
View
|
1
2
3
4
5
6
7
8
10
|
2 chunks |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
ipc/attachment_broker.h
|
View
|
1
2
3
4
5
6
7
|
3 chunks |
+35 lines, -6 lines |
0 comments
|
Download
|
 |
A |
ipc/attachment_broker.cc
|
View
|
1
2
3
4
5
|
1 chunk |
+37 lines, -0 lines |
0 comments
|
Download
|
 |
M |
ipc/attachment_broker_win.h
|
View
|
1
2
3
4
5
|
4 chunks |
+6 lines, -3 lines |
0 comments
|
Download
|
 |
M |
ipc/attachment_broker_win.cc
|
View
|
3
|
2 chunks |
+10 lines, -2 lines |
0 comments
|
Download
|
 |
M |
ipc/brokerable_attachment.h
|
View
|
1
2
3
4
|
3 chunks |
+34 lines, -1 line |
0 comments
|
Download
|
 |
M |
ipc/brokerable_attachment.cc
|
View
|
1
3
|
2 chunks |
+13 lines, -2 lines |
0 comments
|
Download
|
 |
M |
ipc/handle_attachment_win.h
|
View
|
1
3
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
ipc/handle_attachment_win.cc
|
View
|
1
3
|
2 chunks |
+19 lines, -1 line |
0 comments
|
Download
|
 |
M |
ipc/ipc.gyp
|
View
|
1
2
3
4
5
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
ipc/ipc.gypi
|
View
|
1
2
3
4
5
6
7
8
10
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
ipc/ipc_channel_nacl.h
|
View
|
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
ipc/ipc_channel_nacl.cc
|
View
|
|
1 chunk |
+5 lines, -1 line |
0 comments
|
Download
|
 |
M |
ipc/ipc_channel_posix.h
|
View
|
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
ipc/ipc_channel_posix.cc
|
View
|
1
2
3
4
5
6
7
8
9
|
2 chunks |
+6 lines, -2 lines |
0 comments
|
Download
|
 |
M |
ipc/ipc_channel_reader.h
|
View
|
1
2
3
4
5
6
7
8
9
10
|
5 chunks |
+74 lines, -11 lines |
0 comments
|
Download
|
 |
M |
ipc/ipc_channel_reader.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
5 chunks |
+138 lines, -28 lines |
0 comments
|
Download
|
 |
A |
ipc/ipc_channel_reader_unittest.cc
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+156 lines, -0 lines |
0 comments
|
Download
|
 |
M |
ipc/ipc_channel_win.h
|
View
|
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
ipc/ipc_channel_win.cc
|
View
|
1
2
3
4
5
6
|
2 chunks |
+10 lines, -5 lines |
0 comments
|
Download
|
 |
M |
ipc/ipc_message.h
|
View
|
1
2
3
4
5
|
2 chunks |
+5 lines, -0 lines |
0 comments
|
Download
|
 |
M |
ipc/ipc_message.cc
|
View
|
1
2
3
4
5
6
7
8
|
2 chunks |
+0 lines, -4 lines |
0 comments
|
Download
|
 |
M |
ipc/ipc_message_attachment_set.h
|
View
|
3
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
ipc/ipc_message_attachment_set.cc
|
View
|
3
|
1 chunk |
+13 lines, -0 lines |
0 comments
|
Download
|
Total messages: 57 (26 generated)
|