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

Issue 9968111: Make IPC channels track their peer process ID (Closed)

Created:
8 years, 8 months ago by jschuh
Modified:
8 years, 8 months ago
Reviewers:
jam
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam, Tom Sepez
Visibility:
Public.

Description

Make IPC channels track their peer process ID BrokerDuplicateHandle() requires the target process ID on Windows. Rather than plumb this into every channel class independently, I'm adding it at the top. TEST=IPCSyncChannelTest.Verified Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=130817

Patch Set 1 : #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : #

Total comments: 10

Patch Set 6 : #

Total comments: 2

Patch Set 7 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+39 lines, -4 lines) Patch
M ipc/ipc_channel.h View 1 2 3 4 5 2 chunks +5 lines, -0 lines 0 comments Download
M ipc/ipc_channel_posix.h View 1 2 3 4 5 3 chunks +4 lines, -0 lines 0 comments Download
M ipc/ipc_channel_posix.cc View 1 2 3 chunks +6 lines, -0 lines 0 comments Download
M ipc/ipc_channel_proxy.h View 1 2 3 4 5 6 3 chunks +8 lines, -1 line 0 comments Download
M ipc/ipc_channel_proxy.cc View 1 2 3 4 5 6 2 chunks +4 lines, -3 lines 0 comments Download
M ipc/ipc_channel_win.h View 1 2 chunks +3 lines, -0 lines 0 comments Download
M ipc/ipc_channel_win.cc View 1 3 chunks +6 lines, -0 lines 0 comments Download
M ipc/ipc_sync_channel_unittest.cc View 1 2 3 3 chunks +3 lines, -0 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
jschuh
I may need to do follow-ups to remove the (probably) unnecessary peer_pid use in the ...
8 years, 8 months ago (2012-04-04 18:41:15 UTC) #1
jam
https://chromiumcodereview.appspot.com/9968111/diff/15001/ipc/ipc_channel_proxy.cc File ipc/ipc_channel_proxy.cc (right): https://chromiumcodereview.appspot.com/9968111/diff/15001/ipc/ipc_channel_proxy.cc#newcode389 ipc/ipc_channel_proxy.cc:389: base::ProcessId ChannelProxy::peer_pid() const { ChannelProxy gets called on the ...
8 years, 8 months ago (2012-04-04 19:05:00 UTC) #2
Tom Sepez
https://chromiumcodereview.appspot.com/9968111/diff/15001/ipc/ipc_channel_posix.h File ipc/ipc_channel_posix.h (right): https://chromiumcodereview.appspot.com/9968111/diff/15001/ipc/ipc_channel_posix.h#newcode68 ipc/ipc_channel_posix.h:68: base::ProcessId peer_pid() const { return peer_pid_; } Include what ...
8 years, 8 months ago (2012-04-04 19:07:07 UTC) #3
jschuh
https://chromiumcodereview.appspot.com/9968111/diff/15001/ipc/ipc_channel_proxy.cc File ipc/ipc_channel_proxy.cc (right): https://chromiumcodereview.appspot.com/9968111/diff/15001/ipc/ipc_channel_proxy.cc#newcode389 ipc/ipc_channel_proxy.cc:389: base::ProcessId ChannelProxy::peer_pid() const { On 2012/04/04 19:05:00, John Abd-El-Malek ...
8 years, 8 months ago (2012-04-04 19:18:07 UTC) #4
jschuh
https://chromiumcodereview.appspot.com/9968111/diff/15001/ipc/ipc_channel_posix.h File ipc/ipc_channel_posix.h (right): https://chromiumcodereview.appspot.com/9968111/diff/15001/ipc/ipc_channel_posix.h#newcode68 ipc/ipc_channel_posix.h:68: base::ProcessId peer_pid() const { return peer_pid_; } On 2012/04/04 ...
8 years, 8 months ago (2012-04-04 21:05:13 UTC) #5
jam
lgtm with 1 question https://chromiumcodereview.appspot.com/9968111/diff/17002/ipc/ipc_channel_proxy.cc File ipc/ipc_channel_proxy.cc (right): https://chromiumcodereview.appspot.com/9968111/diff/17002/ipc/ipc_channel_proxy.cc#newcode391 ipc/ipc_channel_proxy.cc:391: return context_.get() ? context_->peer_pid_ : ...
8 years, 8 months ago (2012-04-05 00:11:41 UTC) #6
jschuh
https://chromiumcodereview.appspot.com/9968111/diff/17002/ipc/ipc_channel_proxy.cc File ipc/ipc_channel_proxy.cc (right): https://chromiumcodereview.appspot.com/9968111/diff/17002/ipc/ipc_channel_proxy.cc#newcode391 ipc/ipc_channel_proxy.cc:391: return context_.get() ? context_->peer_pid_ : base::kNullProcessId; On 2012/04/05 00:11:42, ...
8 years, 8 months ago (2012-04-05 00:23:06 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jschuh@chromium.org/9968111/22001
8 years, 8 months ago (2012-04-05 00:27:55 UTC) #8
commit-bot: I haz the power
8 years, 8 months ago (2012-04-05 02:38:35 UTC) #9
Change committed as 130817

Powered by Google App Engine
This is Rietveld 408576698