| 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 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 // then some messages might be missed since the filter is added internally on | 103 // then some messages might be missed since the filter is added internally on |
| 104 // the IO thread. | 104 // the IO thread. |
| 105 void AddFilter(MessageFilter* filter); | 105 void AddFilter(MessageFilter* filter); |
| 106 void RemoveFilter(MessageFilter* filter); | 106 void RemoveFilter(MessageFilter* filter); |
| 107 | 107 |
| 108 // Called to clear the pointer to the IPC task runner when it's going away. | 108 // Called to clear the pointer to the IPC task runner when it's going away. |
| 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 peer_pid() 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; | 119 bool GetPeerEuid(uid_t* peer_euid) const; |
| 120 #endif // defined(OS_POSIX) | 120 #endif // defined(OS_POSIX) |
| 121 | 121 |
| 122 protected: | 122 protected: |
| 123 class Context; | 123 class Context; |
| (...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 225 // that involves this data. | 225 // that involves this data. |
| 226 scoped_refptr<Context> context_; | 226 scoped_refptr<Context> context_; |
| 227 | 227 |
| 228 // Whether the channel has been initialized. | 228 // Whether the channel has been initialized. |
| 229 bool did_init_; | 229 bool did_init_; |
| 230 }; | 230 }; |
| 231 | 231 |
| 232 } // namespace IPC | 232 } // namespace IPC |
| 233 | 233 |
| 234 #endif // IPC_IPC_CHANNEL_PROXY_H_ | 234 #endif // IPC_IPC_CHANNEL_PROXY_H_ |
| OLD | NEW |