|
IPC::Message Refactoring: Move POSIX specific bits to PlatformFileAttachment
This change:
* Gets rid of MessageAttachmentSet::owning_descriptors_ by moving
the responsibility to PlatformFileAttachment, where owning_
member variable is used to track the lifetime
* Replaces MessageAttachmetnSet::Add*File() and TakePlatformFile()
with platform agnostic AddAttachment() and GetAttachmentAt()
* Repalces Message::ReadFile(), Write*File() with ReadAttachment()
and WriteAttachmente(), which are also platform agnostic.
This also adds MessageAttachment::TakePlatformFile() virtual function,
which will be implemented by upcoming MojoHandleAttachment as well.
This is another preparation for introducing MojoHandleAttachment,
but it also simplifies Message and MessageAttachmentSet.
R=agl@chromium.org
TBR=mtomasz@chromium.org
BUG= 448190
Committed: https://crrev.com/1aa788c1f3c5f356b4e06110b5780a1de99c4cd7
Cr-Commit-Position: refs/heads/master@{#314047}
Total comments: 14
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+168 lines, -255 lines) |
Patch |
|
M |
chrome/browser/extensions/api/file_system/file_system_api.h
|
View
|
1
2
3
4
5
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
ipc/BUILD.gn
|
View
|
1
2
3
4
5
6
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
ipc/ipc.gypi
|
View
|
1
2
3
4
5
6
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
ipc/ipc_channel_posix.cc
|
View
|
1
2
3
4
5
6
|
3 chunks |
+6 lines, -4 lines |
0 comments
|
Download
|
|
M |
ipc/ipc_message.h
|
View
|
1
2
3
4
5
6
7
8
|
3 chunks |
+12 lines, -20 lines |
0 comments
|
Download
|
|
M |
ipc/ipc_message.cc
|
View
|
1
2
3
4
5
6
7
8
9
|
3 chunks |
+10 lines, -20 lines |
0 comments
|
Download
|
|
M |
ipc/ipc_message_attachment.h
|
View
|
|
2 chunks |
+6 lines, -0 lines |
0 comments
|
Download
|
|
M |
ipc/ipc_message_attachment.cc
|
View
|
|
1 chunk |
+3 lines, -0 lines |
0 comments
|
Download
|
|
M |
ipc/ipc_message_attachment_set.h
|
View
|
1
2
3
4
5
6
|
4 chunks |
+12 lines, -36 lines |
0 comments
|
Download
|
|
M |
ipc/ipc_message_attachment_set.cc
|
View
|
1
2
3
4
5
6
|
5 chunks |
+19 lines, -60 lines |
0 comments
|
Download
|
|
M |
ipc/ipc_message_attachment_set_posix_unittest.cc
|
View
|
1
2
3
4
5
6
|
10 chunks |
+47 lines, -31 lines |
0 comments
|
Download
|
|
M |
ipc/ipc_message_utils.cc
|
View
|
1
2
3
4
5
6
|
4 chunks |
+12 lines, -6 lines |
0 comments
|
Download
|
|
M |
ipc/ipc_platform_file_attachment.h
|
View
|
1
2
3
4
5
6
|
1 chunk |
+0 lines, -35 lines |
0 comments
|
Download
|
|
M |
ipc/ipc_platform_file_attachment.cc
|
View
|
1
2
3
4
5
6
|
1 chunk |
+0 lines, -28 lines |
0 comments
|
Download
|
|
A + |
ipc/ipc_platform_file_attachment_posix.h
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+12 lines, -4 lines |
0 comments
|
Download
|
|
A + |
ipc/ipc_platform_file_attachment_posix.cc
|
View
|
1
2
3
4
5
6
7
|
3 chunks |
+10 lines, -1 line |
0 comments
|
Download
|
|
M |
ipc/mojo/ipc_channel_mojo.cc
|
View
|
1
2
3
4
5
6
|
3 chunks |
+8 lines, -3 lines |
0 comments
|
Download
|
|
M |
ipc/mojo/ipc_channel_mojo_unittest.cc
|
View
|
1
2
3
4
5
6
|
3 chunks |
+6 lines, -3 lines |
0 comments
|
Download
|
Total messages: 19 (6 generated)
|