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

Side by Side Diff: chromeos/dbus/fake_cups_client.h

Issue 2232203003: Implement a dbus client for CupsTool. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase 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
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CHROMEOS_DBUS_FAKE_CUPS_CLIENT_H_
6 #define CHROMEOS_DBUS_FAKE_CUPS_CLIENT_H_
7
8 #include <set>
9 #include <string>
10
11 #include "chromeos/chromeos_export.h"
12 #include "chromeos/dbus/cups_client.h"
13
14 namespace chromeos {
hashimoto 2016/09/07 05:53:17 nit: Please add a blank line.
skau 2016/09/09 15:25:32 Acknowledged.
15 class CHROMEOS_EXPORT FakeCupsClient : public CupsClient {
16 public:
17 FakeCupsClient();
18
19 ~FakeCupsClient() override;
20
21 void AddPrinter(const std::string& name,
22 const std::string& uri,
23 const std::string& ppd_path,
24 bool ipp_everywhere,
25 const AddPrinterCallback& callback,
26 const base::Closure& error_callback) override;
27
28 void RemovePrinter(const std::string& name,
29 const RemovePrinterCallback& callback,
30 const base::Closure& error_callback) override;
31
32 protected:
33 void Init(dbus::Bus* bus) override;
34
35 private:
36 std::set<std::string> printers_;
37 };
hashimoto 2016/09/07 05:53:17 nit: Please add a blank line.
skau 2016/09/09 15:25:32 Acknowledged.
38 } // namespace chromeos
39
40 #endif // CHROMEOS_DBUS_FAKE_CUPS_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698