|
IPC: Add attachment brokering support to the message header.
Message dispatch happens before message translation, and message dispatch
requires that all brokered attachments have been received. This means that
attachment brokering needs to function without message translation. This is
accomplished by modifying the message header to include a new field
num_brokered_attachments, and writing the attachment ids into the IPC Channel
immediately following the pickled message itself.
AttachmentBrokerPrivilegedWinUnittest was expanded to test ChannelReader in the
receiving process. It is now a fully functional end-to-end test of attachment
brokering.
BUG= 493414
Committed: https://crrev.com/e8e4f4fa67ee9db6c2910020ef49318e5df68481
Cr-Commit-Position: refs/heads/master@{#344389}
Total comments: 22
Total comments: 2
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+559 lines, -187 lines) |
Patch |
 |
M |
ipc/BUILD.gn
|
View
|
1
2
3
5
|
2 chunks |
+5 lines, -0 lines |
0 comments
|
Download
|
 |
M |
ipc/attachment_broker_privileged_win_unittest.cc
|
View
|
1
2
3
4
5
6
7
8
|
13 chunks |
+154 lines, -59 lines |
0 comments
|
Download
|
 |
M |
ipc/brokerable_attachment.h
|
View
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
3 chunks |
+16 lines, -11 lines |
0 comments
|
Download
|
 |
M |
ipc/brokerable_attachment.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
1 chunk |
+39 lines, -21 lines |
0 comments
|
Download
|
 |
M |
ipc/handle_attachment_win.h
|
View
|
1
5
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
 |
M |
ipc/handle_attachment_win.cc
|
View
|
1
5
|
2 chunks |
+2 lines, -15 lines |
0 comments
|
Download
|
 |
M |
ipc/handle_win.h
|
View
|
1
5
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
ipc/handle_win.cc
|
View
|
1
5
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
ipc/ipc.gyp
|
View
|
1
|
1 chunk |
+3 lines, -0 lines |
0 comments
|
Download
|
 |
M |
ipc/ipc.gypi
|
View
|
5
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
ipc/ipc_channel.h
|
View
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
4 chunks |
+26 lines, -6 lines |
0 comments
|
Download
|
 |
M |
ipc/ipc_channel.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
1 chunk |
+22 lines, -0 lines |
0 comments
|
Download
|
 |
M |
ipc/ipc_channel_posix.cc
|
View
|
1
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
ipc/ipc_channel_reader.h
|
View
|
1
2
3
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
 |
M |
ipc/ipc_channel_reader.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
7 chunks |
+21 lines, -11 lines |
0 comments
|
Download
|
 |
M |
ipc/ipc_channel_reader_unittest.cc
|
View
|
1
|
5 chunks |
+9 lines, -16 lines |
0 comments
|
Download
|
 |
M |
ipc/ipc_channel_win.h
|
View
|
1
2
3
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
ipc/ipc_channel_win.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
7 chunks |
+34 lines, -16 lines |
0 comments
|
Download
|
 |
M |
ipc/ipc_message.h
|
View
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
3 chunks |
+48 lines, -5 lines |
0 comments
|
Download
|
 |
M |
ipc/ipc_message.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
4 chunks |
+88 lines, -0 lines |
0 comments
|
Download
|
 |
M |
ipc/ipc_message_attachment_set.h
|
View
|
1
2
3
7
8
9
10
11
12
|
1 chunk |
+5 lines, -2 lines |
0 comments
|
Download
|
 |
M |
ipc/ipc_message_attachment_set.cc
|
View
|
1
2
3
7
8
9
10
11
12
|
1 chunk |
+17 lines, -9 lines |
0 comments
|
Download
|
 |
M |
ipc/ipc_message_start.h
|
View
|
1
2
3
4
5
6
7
8
9
10
11
12
13
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
ipc/ipc_message_utils.cc
|
View
|
1
2
3
4
5
6
|
2 chunks |
+4 lines, -2 lines |
0 comments
|
Download
|
 |
A + |
ipc/ipc_test_message_generator.h
|
View
|
1
2
3
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
A + |
ipc/ipc_test_message_generator.cc
|
View
|
1
2
3
|
1 chunk |
+6 lines, -6 lines |
0 comments
|
Download
|
 |
A |
ipc/ipc_test_messages.h
|
View
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
1 chunk |
+14 lines, -0 lines |
0 comments
|
Download
|
 |
A |
ipc/placeholder_brokerable_attachment.h
|
View
|
1
|
1 chunk |
+28 lines, -0 lines |
0 comments
|
Download
|
 |
A + |
ipc/placeholder_brokerable_attachment.cc
|
View
|
|
1 chunk |
+4 lines, -5 lines |
0 comments
|
Download
|
Total messages: 67 (32 generated)
|