Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(649)

Side by Side Diff: chromeos/dbus/fake_lorgnette_manager_client.cc

Issue 2299143002: chromeos: Remove dbus::FileDescriptor from LorgnetteManagerClient (Closed)
Patch Set: Update comment Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « chromeos/dbus/fake_lorgnette_manager_client.h ('k') | chromeos/dbus/lorgnette_manager_client.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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>
10 9
11 #include "base/bind.h" 10 #include "base/bind.h"
12 #include "base/callback.h" 11 #include "base/callback.h"
13 #include "base/location.h" 12 #include "base/location.h"
14 #include "base/single_thread_task_runner.h" 13 #include "base/single_thread_task_runner.h"
15 #include "base/threading/thread_task_runner_handle.h" 14 #include "base/threading/thread_task_runner_handle.h"
16 15
17 namespace chromeos { 16 namespace chromeos {
18 17
19 FakeLorgnetteManagerClient::FakeLorgnetteManagerClient() {} 18 FakeLorgnetteManagerClient::FakeLorgnetteManagerClient() {}
20 19
21 FakeLorgnetteManagerClient::~FakeLorgnetteManagerClient() {} 20 FakeLorgnetteManagerClient::~FakeLorgnetteManagerClient() {}
22 21
23 void FakeLorgnetteManagerClient::Init(dbus::Bus* bus) {} 22 void FakeLorgnetteManagerClient::Init(dbus::Bus* bus) {}
24 23
25 void FakeLorgnetteManagerClient::ListScanners( 24 void FakeLorgnetteManagerClient::ListScanners(
26 const ListScannersCallback& callback) { 25 const ListScannersCallback& callback) {
27 std::map<std::string, ScannerTableEntry> scanners; 26 std::map<std::string, ScannerTableEntry> scanners;
28 base::ThreadTaskRunnerHandle::Get()->PostTask( 27 base::ThreadTaskRunnerHandle::Get()->PostTask(
29 FROM_HERE, base::Bind(callback, false, scanners)); 28 FROM_HERE, base::Bind(callback, false, scanners));
30 } 29 }
31 30
32 void FakeLorgnetteManagerClient::ScanImageToFile(
33 std::string device_name,
34 const ScanProperties& properties,
35 const ScanImageToFileCallback& callback,
36 base::File* file) {
37 base::ThreadTaskRunnerHandle::Get()->PostTask(FROM_HERE,
38 base::Bind(callback, false));
39 }
40
41 void FakeLorgnetteManagerClient::ScanImageToString( 31 void FakeLorgnetteManagerClient::ScanImageToString(
42 std::string device_name, 32 std::string device_name,
43 const ScanProperties& properties, 33 const ScanProperties& properties,
44 const ScanImageToStringCallback& callback) { 34 const ScanImageToStringCallback& callback) {
45 base::ThreadTaskRunnerHandle::Get()->PostTask( 35 base::ThreadTaskRunnerHandle::Get()->PostTask(
46 FROM_HERE, base::Bind(callback, false, std::string())); 36 FROM_HERE, base::Bind(callback, false, std::string()));
47 } 37 }
48 38
49 } // namespace chromeos 39 } // namespace chromeos
OLDNEW
« no previous file with comments | « chromeos/dbus/fake_lorgnette_manager_client.h ('k') | chromeos/dbus/lorgnette_manager_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698