|
POSIX: Transfer network data using shared memory
This patch adds the long planned support for sharing memory on POSIX
by transporting file descriptors. It largely builds on the shared
memory cleanup work by jrg.
We move FileDescriptor out of chrome/common/file_descriptor_posix.h
and into base/file_descriptor_posix.h. Since all that's left in the
chrome/common verion is the DescriptorSet, those files are renamed to
descriptor_set.[h|cc].
The SharedMemoryHandle on POSIX then becomes a typedef to a
FileDescriptor and thus can be serialised over IPC.
After that, it's mostly a case of cleaning up those snippets of code
which considered SharedMemoryHandles to be scaler values.
Total comments: 10
Total comments: 8
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+323 lines, -259 lines) |
Patch |
 |
A |
base/file_descriptor_posix.h
|
View
|
1
2
3
4
|
1 chunk |
+32 lines, -0 lines |
0 comments
|
Download
|
 |
M |
base/shared_memory.h
|
View
|
1
2
3
4
|
5 chunks |
+12 lines, -3 lines |
0 comments
|
Download
|
 |
M |
base/shared_memory_posix.cc
|
View
|
1
2
3
4
5
|
5 chunks |
+20 lines, -6 lines |
0 comments
|
Download
|
 |
M |
base/shared_memory_win.cc
|
View
|
1
2
3
4
|
2 chunks |
+9 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/renderer_host/browser_render_process_host.cc
|
View
|
1
2
3
4
|
2 chunks |
+11 lines, -15 lines |
0 comments
|
Download
|
 |
M |
chrome/chrome.xcodeproj/project.pbxproj
|
View
|
1
2
3
4
|
6 chunks |
+4 lines, -4 lines |
0 comments
|
Download
|
 |
M |
chrome/common/common.scons
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
A |
chrome/common/descriptor_set_posix.h
|
View
|
1
2
3
|
1 chunk |
+109 lines, -0 lines |
0 comments
|
Download
|
 |
A |
chrome/common/descriptor_set_posix.cc
|
View
|
1
2
3
|
1 chunk |
+100 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/common/file_descriptor_posix.h
|
View
|
|
1 chunk |
+0 lines, -124 lines |
0 comments
|
Download
|
 |
M |
chrome/common/file_descriptor_posix.cc
|
View
|
|
1 chunk |
+0 lines, -90 lines |
0 comments
|
Download
|
 |
M |
chrome/common/ipc_channel_posix.h
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/common/ipc_channel_posix.cc
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/common/ipc_message.h
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/common/ipc_message_utils.h
|
View
|
1
2
3
|
2 chunks |
+7 lines, -5 lines |
0 comments
|
Download
|
 |
M |
chrome/common/ipc_send_fds_test.cc
|
View
|
1
2
3
4
|
3 chunks |
+5 lines, -4 lines |
0 comments
|
Download
|
 |
M |
chrome/common/ipc_tests.cc
|
View
|
1
2
3
4
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/common/resource_dispatcher.cc
|
View
|
1
2
3
4
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
chrome/renderer/render_thread.cc
|
View
|
1
2
3
4
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/renderer/render_thread_unittest.cc
|
View
|
|
1 chunk |
+5 lines, -0 lines |
0 comments
|
Download
|
Total messages: 5 (0 generated)
|