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_COMMAND_H_
6 #define MINIBIND_COMAMND_H_
11 #include <linux/binder.h>
21 virtual size_t GetSize() const = 0;
22 virtual binder_uintptr_t
GetData() const = 0;
28 class TransactionCommand
: public Command
{
35 TransactionCommand(Type type
);
36 ~TransactionCommand();
38 void SetHandle(uint32_t handle
);
39 void SetCode(uint32_t code
);
40 void SetParcel(const Parcel
& parcel
);
43 size_t GetSize() const override
;
44 binder_uintptr_t
GetData() const override
;
47 const binder_driver_command_protocol command_
;
48 struct binder_transaction_data transaction_
;
50 DISALLOW_COPY_AND_ASSIGN(TransactionCommand
);
53 } // namespace minibind
55 #endif // MINIBIND_COMAMND_H_