| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 150 | 150 |
| 151 void set_outgoing_message_filter(OutgoingMessageFilter* filter) { | 151 void set_outgoing_message_filter(OutgoingMessageFilter* filter) { |
| 152 outgoing_message_filter_ = filter; | 152 outgoing_message_filter_ = filter; |
| 153 } | 153 } |
| 154 | 154 |
| 155 // Called to clear the pointer to the IPC message loop when it's going away. | 155 // Called to clear the pointer to the IPC message loop when it's going away. |
| 156 void ClearIPCMessageLoop(); | 156 void ClearIPCMessageLoop(); |
| 157 | 157 |
| 158 #if defined(OS_POSIX) | 158 #if defined(OS_POSIX) |
| 159 // Calls through to the underlying channel's methods. | 159 // Calls through to the underlying channel's methods. |
| 160 int GetClientFileDescriptor() const; | 160 int GetClientFileDescriptor(); |
| 161 int TakeClientFileDescriptor(); |
| 161 bool GetClientEuid(uid_t* client_euid) const; | 162 bool GetClientEuid(uid_t* client_euid) const; |
| 162 #endif // defined(OS_POSIX) | 163 #endif // defined(OS_POSIX) |
| 163 | 164 |
| 164 protected: | 165 protected: |
| 165 class Context; | 166 class Context; |
| 166 // A subclass uses this constructor if it needs to add more information | 167 // A subclass uses this constructor if it needs to add more information |
| 167 // to the internal state. If create_pipe_now is true, the pipe is created | 168 // to the internal state. If create_pipe_now is true, the pipe is created |
| 168 // immediately. Otherwise it's created on the IO thread. | 169 // immediately. Otherwise it's created on the IO thread. |
| 169 ChannelProxy(const IPC::ChannelHandle& channel_handle, | 170 ChannelProxy(const IPC::ChannelHandle& channel_handle, |
| 170 Channel::Mode mode, | 171 Channel::Mode mode, |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 263 // can safely be destroyed while the background thread continues to do stuff | 264 // can safely be destroyed while the background thread continues to do stuff |
| 264 // that involves this data. | 265 // that involves this data. |
| 265 scoped_refptr<Context> context_; | 266 scoped_refptr<Context> context_; |
| 266 | 267 |
| 267 OutgoingMessageFilter* outgoing_message_filter_; | 268 OutgoingMessageFilter* outgoing_message_filter_; |
| 268 }; | 269 }; |
| 269 | 270 |
| 270 } // namespace IPC | 271 } // namespace IPC |
| 271 | 272 |
| 272 #endif // IPC_IPC_CHANNEL_PROXY_H_ | 273 #endif // IPC_IPC_CHANNEL_PROXY_H_ |
| OLD | NEW |