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_NACL_H_ | 5 #ifndef IPC_IPC_CHANNEL_NACL_H_ |
6 #define IPC_IPC_CHANNEL_NACL_H_ | 6 #define IPC_IPC_CHANNEL_NACL_H_ |
7 | 7 |
8 #include <deque> | 8 #include <deque> |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 | 63 |
64 // ChannelReader implementation. | 64 // ChannelReader implementation. |
65 ReadState ReadData(char* buffer, | 65 ReadState ReadData(char* buffer, |
66 int buffer_len, | 66 int buffer_len, |
67 int* bytes_read) override; | 67 int* bytes_read) override; |
68 bool ShouldDispatchInputMessage(Message* msg) override; | 68 bool ShouldDispatchInputMessage(Message* msg) override; |
69 bool GetNonBrokeredAttachments(Message* msg) override; | 69 bool GetNonBrokeredAttachments(Message* msg) override; |
70 bool DidEmptyInputBuffers() override; | 70 bool DidEmptyInputBuffers() override; |
71 void HandleInternalMessage(const Message& msg) override; | 71 void HandleInternalMessage(const Message& msg) override; |
72 base::ProcessId GetSenderPID() override; | 72 base::ProcessId GetSenderPID() override; |
73 bool IsAttachmentBrokerEndpoint() override; | |
74 | 73 |
75 Mode mode_; | 74 Mode mode_; |
76 bool waiting_connect_; | 75 bool waiting_connect_; |
77 | 76 |
78 // The pipe used for communication. | 77 // The pipe used for communication. |
79 int pipe_; | 78 int pipe_; |
80 | 79 |
81 // The "name" of our pipe. On Windows this is the global identifier for | 80 // The "name" of our pipe. On Windows this is the global identifier for |
82 // the pipe. On POSIX it's used as a key in a local map of file descriptors. | 81 // the pipe. On POSIX it's used as a key in a local map of file descriptors. |
83 // For NaCl, we don't actually support looking up file descriptors by name, | 82 // For NaCl, we don't actually support looking up file descriptors by name, |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
122 | 121 |
123 // |broker_| must outlive this instance. | 122 // |broker_| must outlive this instance. |
124 AttachmentBroker* broker_; | 123 AttachmentBroker* broker_; |
125 | 124 |
126 DISALLOW_IMPLICIT_CONSTRUCTORS(ChannelNacl); | 125 DISALLOW_IMPLICIT_CONSTRUCTORS(ChannelNacl); |
127 }; | 126 }; |
128 | 127 |
129 } // namespace IPC | 128 } // namespace IPC |
130 | 129 |
131 #endif // IPC_IPC_CHANNEL_NACL_H_ | 130 #endif // IPC_IPC_CHANNEL_NACL_H_ |
OLD | NEW |