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

Side by Side Diff: ipc/ipc_channel_proxy.h

Issue 320433002: IPC::Channel: Reduce POSIX specific API surface (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Landig Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ipc/ipc_channel_posix_unittest.cc ('k') | ipc/ipc_channel_proxy.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef IPC_IPC_CHANNEL_PROXY_H_ 5 #ifndef IPC_IPC_CHANNEL_PROXY_H_
6 #define IPC_IPC_CHANNEL_PROXY_H_ 6 #define IPC_IPC_CHANNEL_PROXY_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 void ClearIPCTaskRunner(); 109 void ClearIPCTaskRunner();
110 110
111 // Get the process ID for the connected peer. 111 // Get the process ID for the connected peer.
112 // Returns base::kNullProcessId if the peer is not connected yet. 112 // Returns base::kNullProcessId if the peer is not connected yet.
113 base::ProcessId GetPeerPID() const { return context_->peer_pid_; } 113 base::ProcessId GetPeerPID() const { return context_->peer_pid_; }
114 114
115 #if defined(OS_POSIX) && !defined(OS_NACL) 115 #if defined(OS_POSIX) && !defined(OS_NACL)
116 // Calls through to the underlying channel's methods. 116 // Calls through to the underlying channel's methods.
117 int GetClientFileDescriptor(); 117 int GetClientFileDescriptor();
118 int TakeClientFileDescriptor(); 118 int TakeClientFileDescriptor();
119 bool GetPeerEuid(uid_t* peer_euid) const;
120 #endif // defined(OS_POSIX) 119 #endif // defined(OS_POSIX)
121 120
122 protected: 121 protected:
123 class Context; 122 class Context;
124 // A subclass uses this constructor if it needs to add more information 123 // A subclass uses this constructor if it needs to add more information
125 // to the internal state. 124 // to the internal state.
126 ChannelProxy(Context* context); 125 ChannelProxy(Context* context);
127 126
128 ChannelProxy(Listener* listener, 127 ChannelProxy(Listener* listener,
129 base::SingleThreadTaskRunner* ipc_task_runner); 128 base::SingleThreadTaskRunner* ipc_task_runner);
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
225 // that involves this data. 224 // that involves this data.
226 scoped_refptr<Context> context_; 225 scoped_refptr<Context> context_;
227 226
228 // Whether the channel has been initialized. 227 // Whether the channel has been initialized.
229 bool did_init_; 228 bool did_init_;
230 }; 229 };
231 230
232 } // namespace IPC 231 } // namespace IPC
233 232
234 #endif // IPC_IPC_CHANNEL_PROXY_H_ 233 #endif // IPC_IPC_CHANNEL_PROXY_H_
OLDNEW
« no previous file with comments | « ipc/ipc_channel_posix_unittest.cc ('k') | ipc/ipc_channel_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698