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

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

Issue 2161933003: Define printer configuration objects for Chrome OS. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: \ Created 4 years, 4 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 CHROME_BROWSER_CHROMEOS_PRINTING_PRINTER_PREF_MANAGER_H_
6 #define CHROME_BROWSER_CHROMEOS_PRINTING_PRINTER_PREF_MANAGER_H_
7
8 #include <memory>
9 #include <vector>
10
11 #include "chromeos/printing/printer_configuration.h"
12 #include "chromeos/printing/printer_translator.h"
13
14 class Profile;
15
16 namespace user_prefs {
17 class PrefRegistrySyncable;
18 }
19
20 namespace chromeos {
21
22 class PrinterPrefManager {
23 public:
24 explicit PrinterPrefManager(Profile* profile);
25
26 // Register the printing preferences with the |registry|.
27 static void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry);
28
29 // Returns the printers that are saved in preferences.
30 std::vector<std::unique_ptr<Printer>> GetPrinters() const;
31
32 // Add or update a printer. Printers are identified by the id field. Use an
stevenjb 2016/08/01 20:48:16 nit: Adds or Updates
skau 2016/08/01 21:10:10 Done.
33 // empty id to add a new printer.
34 void RegisterPrinter(std::unique_ptr<Printer> printer);
35
36 private:
37 Profile* profile_;
38 };
39
40 } // namespace chromeos
41
42 #endif // CHROME_BROWSER_CHROMEOS_PRINTING_PRINTER_PREF_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698