| OLD | NEW |
| 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 172 outgoing_message_filter_ = filter; | 172 outgoing_message_filter_ = filter; |
| 173 } | 173 } |
| 174 | 174 |
| 175 // Called to clear the pointer to the IPC message loop when it's going away. | 175 // Called to clear the pointer to the IPC message loop when it's going away. |
| 176 void ClearIPCMessageLoop(); | 176 void ClearIPCMessageLoop(); |
| 177 | 177 |
| 178 // Get the process ID for the connected peer. | 178 // Get the process ID for the connected peer. |
| 179 // Returns base::kNullProcessId if the peer is not connected yet. | 179 // Returns base::kNullProcessId if the peer is not connected yet. |
| 180 base::ProcessId peer_pid() const { return context_->peer_pid_; } | 180 base::ProcessId peer_pid() const { return context_->peer_pid_; } |
| 181 | 181 |
| 182 #if defined(OS_POSIX) | 182 #if defined(OS_POSIX) && !defined(OS_NACL) |
| 183 // Calls through to the underlying channel's methods. | 183 // Calls through to the underlying channel's methods. |
| 184 int GetClientFileDescriptor(); | 184 int GetClientFileDescriptor(); |
| 185 int TakeClientFileDescriptor(); | 185 int TakeClientFileDescriptor(); |
| 186 bool GetClientEuid(uid_t* client_euid) const; | 186 bool GetClientEuid(uid_t* client_euid) const; |
| 187 #endif // defined(OS_POSIX) | 187 #endif // defined(OS_POSIX) |
| 188 | 188 |
| 189 protected: | 189 protected: |
| 190 class Context; | 190 class Context; |
| 191 // A subclass uses this constructor if it needs to add more information | 191 // A subclass uses this constructor if it needs to add more information |
| 192 // to the internal state. | 192 // to the internal state. |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 286 | 286 |
| 287 OutgoingMessageFilter* outgoing_message_filter_; | 287 OutgoingMessageFilter* outgoing_message_filter_; |
| 288 | 288 |
| 289 // Whether the channel has been initialized. | 289 // Whether the channel has been initialized. |
| 290 bool did_init_; | 290 bool did_init_; |
| 291 }; | 291 }; |
| 292 | 292 |
| 293 } // namespace IPC | 293 } // namespace IPC |
| 294 | 294 |
| 295 #endif // IPC_IPC_CHANNEL_PROXY_H_ | 295 #endif // IPC_IPC_CHANNEL_PROXY_H_ |
| OLD | NEW |