| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/dbus/fake_lorgnette_manager_client.h" | 5 #include "chromeos/dbus/fake_lorgnette_manager_client.h" |
| 6 | 6 |
| 7 #include <map> | 7 #include <map> |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| 11 #include "base/bind.h" | 11 #include "base/bind.h" |
| 12 #include "base/callback.h" | 12 #include "base/callback.h" |
| 13 #include "base/location.h" | 13 #include "base/location.h" |
| 14 #include "base/single_thread_task_runner.h" | 14 #include "base/single_thread_task_runner.h" |
| 15 #include "base/thread_task_runner_handle.h" | 15 #include "base/threading/thread_task_runner_handle.h" |
| 16 | 16 |
| 17 namespace chromeos { | 17 namespace chromeos { |
| 18 | 18 |
| 19 FakeLorgnetteManagerClient::FakeLorgnetteManagerClient() {} | 19 FakeLorgnetteManagerClient::FakeLorgnetteManagerClient() {} |
| 20 | 20 |
| 21 FakeLorgnetteManagerClient::~FakeLorgnetteManagerClient() {} | 21 FakeLorgnetteManagerClient::~FakeLorgnetteManagerClient() {} |
| 22 | 22 |
| 23 void FakeLorgnetteManagerClient::Init(dbus::Bus* bus) {} | 23 void FakeLorgnetteManagerClient::Init(dbus::Bus* bus) {} |
| 24 | 24 |
| 25 void FakeLorgnetteManagerClient::ListScanners( | 25 void FakeLorgnetteManagerClient::ListScanners( |
| (...skipping 14 matching lines...) Expand all Loading... |
| 40 | 40 |
| 41 void FakeLorgnetteManagerClient::ScanImageToString( | 41 void FakeLorgnetteManagerClient::ScanImageToString( |
| 42 std::string device_name, | 42 std::string device_name, |
| 43 const ScanProperties& properties, | 43 const ScanProperties& properties, |
| 44 const ScanImageToStringCallback& callback) { | 44 const ScanImageToStringCallback& callback) { |
| 45 base::ThreadTaskRunnerHandle::Get()->PostTask( | 45 base::ThreadTaskRunnerHandle::Get()->PostTask( |
| 46 FROM_HERE, base::Bind(callback, false, std::string())); | 46 FROM_HERE, base::Bind(callback, false, std::string())); |
| 47 } | 47 } |
| 48 | 48 |
| 49 } // namespace chromeos | 49 } // namespace chromeos |
| OLD | NEW |