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 <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <map> | 10 #include <map> |
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
231 } | 231 } |
232 #endif | 232 #endif |
233 | 233 |
234 // Called to clear the pointer to the IPC task runner when it's going away. | 234 // Called to clear the pointer to the IPC task runner when it's going away. |
235 void ClearIPCTaskRunner(); | 235 void ClearIPCTaskRunner(); |
236 | 236 |
237 // Endpoint overrides. | 237 // Endpoint overrides. |
238 base::ProcessId GetPeerPID() const override; | 238 base::ProcessId GetPeerPID() const override; |
239 void OnSetAttachmentBrokerEndpoint() override; | 239 void OnSetAttachmentBrokerEndpoint() override; |
240 | 240 |
241 #if defined(OS_POSIX) && !defined(OS_NACL_SFI) | |
242 // Calls through to the underlying channel's methods. | |
243 int GetClientFileDescriptor(); | |
244 base::ScopedFD TakeClientFileDescriptor(); | |
245 #endif | |
246 | |
247 protected: | 241 protected: |
248 class Context; | 242 class Context; |
249 // A subclass uses this constructor if it needs to add more information | 243 // A subclass uses this constructor if it needs to add more information |
250 // to the internal state. | 244 // to the internal state. |
251 explicit ChannelProxy(Context* context); | 245 explicit ChannelProxy(Context* context); |
252 | 246 |
253 | 247 |
254 // Used internally to hold state that is referenced on the IPC thread. | 248 // Used internally to hold state that is referenced on the IPC thread. |
255 class Context : public base::RefCountedThreadSafe<Context>, | 249 class Context : public base::RefCountedThreadSafe<Context>, |
256 public Listener { | 250 public Listener { |
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
427 bool did_init_; | 421 bool did_init_; |
428 | 422 |
429 #if defined(ENABLE_IPC_FUZZER) | 423 #if defined(ENABLE_IPC_FUZZER) |
430 OutgoingMessageFilter* outgoing_message_filter_; | 424 OutgoingMessageFilter* outgoing_message_filter_; |
431 #endif | 425 #endif |
432 }; | 426 }; |
433 | 427 |
434 } // namespace IPC | 428 } // namespace IPC |
435 | 429 |
436 #endif // IPC_IPC_CHANNEL_PROXY_H_ | 430 #endif // IPC_IPC_CHANNEL_PROXY_H_ |
OLD | NEW |