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_
21 FIRST_CALL_CODE
= 0x00000001,
22 LAST_CALL_CODE
= 0x00ffffff,
24 PING_TRANSACTION
= B_PACK_CHARS('_','P','N','G'),
27 explicit Channel(uint32_t handle
);
30 int Call(uint32_t code
, const Parcel
& in
, Parcel
* out
);
32 Parcel
* reader() { return &reader_
; }
34 uint32_t handle() const { return handle_
; }
37 bool ProcessCommand(uint32_t command
, size_t data_remaining
);
45 } // namespace minibind
47 #endif // MINIBIND_CHANNEL_H_