| 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 <memory> | 9 #include <memory> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 25 matching lines...) Expand all Loading... |
| 36 public internal::ChannelReader { | 36 public internal::ChannelReader { |
| 37 public: | 37 public: |
| 38 // Mirror methods of Channel, see ipc_channel.h for description. | 38 // Mirror methods of Channel, see ipc_channel.h for description. |
| 39 ChannelNacl(const IPC::ChannelHandle& channel_handle, | 39 ChannelNacl(const IPC::ChannelHandle& channel_handle, |
| 40 Mode mode, | 40 Mode mode, |
| 41 Listener* listener); | 41 Listener* listener); |
| 42 ~ChannelNacl() override; | 42 ~ChannelNacl() override; |
| 43 | 43 |
| 44 // Channel implementation. | 44 // Channel implementation. |
| 45 base::ProcessId GetPeerPID() const override; | 45 base::ProcessId GetPeerPID() const override; |
| 46 base::ProcessId GetSelfPID() const override; | |
| 47 bool Connect() override; | 46 bool Connect() override; |
| 48 void Close() override; | 47 void Close() override; |
| 49 bool Send(Message* message) override; | 48 bool Send(Message* message) override; |
| 50 | 49 |
| 51 // Posted to the main thread by ReaderThreadRunner. | 50 // Posted to the main thread by ReaderThreadRunner. |
| 52 void DidRecvMsg(std::unique_ptr<MessageContents> contents); | 51 void DidRecvMsg(std::unique_ptr<MessageContents> contents); |
| 53 void ReadDidFail(); | 52 void ReadDidFail(); |
| 54 | 53 |
| 55 private: | 54 private: |
| 56 class ReaderThreadRunner; | 55 class ReaderThreadRunner; |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 116 std::deque<linked_ptr<Message> > output_queue_; | 115 std::deque<linked_ptr<Message> > output_queue_; |
| 117 | 116 |
| 118 base::WeakPtrFactory<ChannelNacl> weak_ptr_factory_; | 117 base::WeakPtrFactory<ChannelNacl> weak_ptr_factory_; |
| 119 | 118 |
| 120 DISALLOW_IMPLICIT_CONSTRUCTORS(ChannelNacl); | 119 DISALLOW_IMPLICIT_CONSTRUCTORS(ChannelNacl); |
| 121 }; | 120 }; |
| 122 | 121 |
| 123 } // namespace IPC | 122 } // namespace IPC |
| 124 | 123 |
| 125 #endif // IPC_IPC_CHANNEL_NACL_H_ | 124 #endif // IPC_IPC_CHANNEL_NACL_H_ |
| OLD | NEW |