OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 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 | 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 #include "chromeos/binder/remote_object.h" | 5 #include "chromeos/binder/remote_object.h" |
6 | 6 |
7 #include "base/location.h" | 7 #include "base/location.h" |
8 #include "base/thread_task_runner_handle.h" | 8 #include "base/threading/thread_task_runner_handle.h" |
9 #include "chromeos/binder/command_broker.h" | 9 #include "chromeos/binder/command_broker.h" |
10 | 10 |
11 namespace binder { | 11 namespace binder { |
12 | 12 |
13 RemoteObject::RemoteObject(CommandBroker* command_broker, int32_t handle) | 13 RemoteObject::RemoteObject(CommandBroker* command_broker, int32_t handle) |
14 : release_closure_(command_broker->GetReleaseReferenceClosure(handle)), | 14 : release_closure_(command_broker->GetReleaseReferenceClosure(handle)), |
15 release_task_runner_(base::ThreadTaskRunnerHandle::Get()), | 15 release_task_runner_(base::ThreadTaskRunnerHandle::Get()), |
16 handle_(handle) { | 16 handle_(handle) { |
17 command_broker->AddReference(handle_); | 17 command_broker->AddReference(handle_); |
18 } | 18 } |
(...skipping 10 matching lines...) Expand all Loading... |
29 return TYPE_REMOTE; | 29 return TYPE_REMOTE; |
30 } | 30 } |
31 | 31 |
32 bool RemoteObject::Transact(CommandBroker* command_broker, | 32 bool RemoteObject::Transact(CommandBroker* command_broker, |
33 const TransactionData& data, | 33 const TransactionData& data, |
34 std::unique_ptr<TransactionData>* reply) { | 34 std::unique_ptr<TransactionData>* reply) { |
35 return command_broker->Transact(handle_, data, reply); | 35 return command_broker->Transact(handle_, data, reply); |
36 } | 36 } |
37 | 37 |
38 } // namespace binder | 38 } // namespace binder |
OLD | NEW |