| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 "services/shell/public/cpp/lib/callback_binder.h" | 5 #include "services/service_manager/public/cpp/lib/callback_binder.h" |
| 6 | 6 |
| 7 namespace shell { | 7 namespace shell { |
| 8 namespace internal { | 8 namespace internal { |
| 9 | 9 |
| 10 GenericCallbackBinder::GenericCallbackBinder( | 10 GenericCallbackBinder::GenericCallbackBinder( |
| 11 const BindCallback& callback, | 11 const BindCallback& callback, |
| 12 const scoped_refptr<base::SingleThreadTaskRunner>& task_runner) | 12 const scoped_refptr<base::SingleThreadTaskRunner>& task_runner) |
| 13 : callback_(callback), task_runner_(task_runner) {} | 13 : callback_(callback), task_runner_(task_runner) {} |
| 14 | 14 |
| 15 GenericCallbackBinder::~GenericCallbackBinder() {} | 15 GenericCallbackBinder::~GenericCallbackBinder() {} |
| (...skipping 14 matching lines...) Expand all Loading... |
| 30 | 30 |
| 31 // static | 31 // static |
| 32 void GenericCallbackBinder::RunCallbackOnTaskRunner( | 32 void GenericCallbackBinder::RunCallbackOnTaskRunner( |
| 33 const BindCallback& callback, | 33 const BindCallback& callback, |
| 34 mojo::ScopedMessagePipeHandle client_handle) { | 34 mojo::ScopedMessagePipeHandle client_handle) { |
| 35 callback.Run(std::move(client_handle)); | 35 callback.Run(std::move(client_handle)); |
| 36 } | 36 } |
| 37 | 37 |
| 38 } // namespace internal | 38 } // namespace internal |
| 39 } // namespace shell | 39 } // namespace shell |
| OLD | NEW |