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

Issue 1164473003: Add methods to base::SharedMemory to replace common SharedMemoryHandle operations. (Closed)

Created:
5 years, 6 months ago by erikchen
Modified:
5 years, 6 months ago
Reviewers:
Nico
CC:
chromium-reviews, erikwright+watch_chromium.org, gavinp+memory_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add methods to base::SharedMemory to replace common SharedMemoryHandle operations. Existing Chrome code assumes that base::SharedMemoryHandle is typedefed to "int", and that base::SharedMemoryHandle is backed by an fd on POSIX. This CL adds the static methods ShallowCopyOfHandle() and DeepCopyOfHandle(), which will replace existing "int" copies and calls to dup(). BUG=466437 Committed: https://crrev.com/8539d85a060f79993354ba68b1fb3c5a66b119ad Cr-Commit-Position: refs/heads/master@{#332098}

Patch Set 1 #

Total comments: 6

Patch Set 2 : Rebase against top of tree. #

Patch Set 3 : Comments from thakis. #

Patch Set 4 : Comments from thakis. #

Patch Set 5 : Add relevant methods to shared_memory_win. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+37 lines, -0 lines) Patch
M base/memory/shared_memory.h View 1 2 3 1 chunk +14 lines, -0 lines 0 comments Download
M base/memory/shared_memory_posix.cc View 1 2 3 4 1 chunk +18 lines, -0 lines 0 comments Download
M base/memory/shared_memory_win.cc View 1 2 3 4 1 chunk +5 lines, -0 lines 0 comments Download

Messages

Total messages: 16 (4 generated)
erikchen
thakis: Please review. In preparation for some major changes to the implementation of Shared Memory ...
5 years, 6 months ago (2015-05-28 20:43:42 UTC) #2
Nico
https://codereview.chromium.org/1164473003/diff/1/base/memory/shared_memory_posix.cc File base/memory/shared_memory_posix.cc (right): https://codereview.chromium.org/1164473003/diff/1/base/memory/shared_memory_posix.cc#newcode111 base/memory/shared_memory_posix.cc:111: #if defined(OS_WIN) || defined(OS_POSIX) this is just "everywhere", right? ...
5 years, 6 months ago (2015-05-29 06:50:24 UTC) #3
erikchen
thakis: PTAL https://codereview.chromium.org/1164473003/diff/1/base/memory/shared_memory_posix.cc File base/memory/shared_memory_posix.cc (right): https://codereview.chromium.org/1164473003/diff/1/base/memory/shared_memory_posix.cc#newcode111 base/memory/shared_memory_posix.cc:111: #if defined(OS_WIN) || defined(OS_POSIX) On 2015/05/29 06:50:23, ...
5 years, 6 months ago (2015-05-29 18:30:24 UTC) #4
Nico
On 2015/05/29 18:30:24, erikchen wrote: > thakis: PTAL > > https://codereview.chromium.org/1164473003/diff/1/base/memory/shared_memory_posix.cc > File base/memory/shared_memory_posix.cc (right): ...
5 years, 6 months ago (2015-05-29 22:46:05 UTC) #5
erikchen
On 2015/05/29 22:46:05, Nico wrote: > On 2015/05/29 18:30:24, erikchen wrote: > > thakis: PTAL ...
5 years, 6 months ago (2015-05-29 22:50:40 UTC) #6
Nico
lgtm
5 years, 6 months ago (2015-05-29 22:52:02 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1164473003/60001
5 years, 6 months ago (2015-05-29 22:53:37 UTC) #9
erikchen
thakis: PTAL I realized that "#if defined(OS_POSIX)" has no effect in "shared_memory_posix.cc", and added the ...
5 years, 6 months ago (2015-05-29 23:44:16 UTC) #11
Nico
still lgtm
5 years, 6 months ago (2015-05-29 23:53:09 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1164473003/80001
5 years, 6 months ago (2015-05-29 23:55:38 UTC) #14
commit-bot: I haz the power
Committed patchset #5 (id:80001)
5 years, 6 months ago (2015-05-30 01:49:27 UTC) #15
commit-bot: I haz the power
5 years, 6 months ago (2015-05-30 01:50:08 UTC) #16
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/8539d85a060f79993354ba68b1fb3c5a66b119ad
Cr-Commit-Position: refs/heads/master@{#332098}

Powered by Google App Engine
This is Rietveld 408576698