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

Side by Side Diff: chrome/browser/chromeos/printing/printer_info.h

Issue 2891643002: Add a method to query IPP printers for attributes. (Closed)
Patch Set: Created 3 years, 7 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 2017 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 CHROME_BROWSER_CHROMEOS_PRINTING_PRINTER_INFO_H_
6 #define CHROME_BROWSER_CHROMEOS_PRINTING_PRINTER_INFO_H_
7
8 #include <string>
9
10 #include "base/callback_forward.h"
11
12 namespace chromeos {
13
14 // Callback for basic printer information. |success| indicates if the request
15 // succeeded at all. |make| represents the printer manufacturer. |model| is
16 // the printer model. |autoconf| indicates if we think we can compute the
17 // printer capabilites without a PPD.
18 using PrinterInfoCallback = base::Callback<void(bool success,
19 const std::string& make,
20 const std::string& model,
21 bool autoconf)>;
22
23 // Dispatch an IPP request to |host| on |port| for |path| to obtain
24 // basic printer information.
25 void QueryPrinter(const std::string& host,
Carlson 2017/05/25 19:04:35 Function name should probably reflect the fact tha
skau 2017/05/27 02:01:19 Done.
26 const int port,
27 const std::string& path,
28 const PrinterInfoCallback& callback);
29
30 } // namespace chromeos
31
32 #endif // CHROME_BROWSER_CHROMEOS_PRINTING_PRINTER_INFO_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698