1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef MINIBIND_CHANNEL_H_
6 #define MINIBIND_CHANNEL_H_
20 explicit Channel(uint32_t handle
);
23 void QueueCommand(Command
* cmd
);
25 int TransactCommands();
27 Parcel
* reader() { return &reader_
; }
29 uint32_t handle() const { return handle_
; }
30 const std
::vector
<Command
*>& write_commands() const { return write_commands_
; }
38 size_t write_commands_size_
;
39 std
::vector
<Command
*> write_commands_
;
42 } // namespace minibind
44 #endif // MINIBIND_CHANNEL_H_