OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 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 | 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/printing/printer_configuration.h" | 5 #include "chromeos/printing/printer_configuration.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "base/guid.h" | 9 #include "base/guid.h" |
10 | 10 |
11 namespace chromeos { | 11 namespace chromeos { |
12 | 12 |
13 Printer::Printer() : source_(SRC_USER_PREFS) { | 13 Printer::Printer() : source_(SRC_USER_PREFS) { |
14 id_ = base::GenerateGUID(); | 14 id_ = base::GenerateGUID(); |
15 } | 15 } |
16 | 16 |
17 Printer::Printer(const std::string& id) : id_(id), source_(SRC_USER_PREFS) { | 17 Printer::Printer(const std::string& id, const base::Time& last_updated) |
| 18 : id_(id), source_(SRC_USER_PREFS), last_updated_(last_updated) { |
18 if (id_.empty()) | 19 if (id_.empty()) |
19 id_ = base::GenerateGUID(); | 20 id_ = base::GenerateGUID(); |
20 } | 21 } |
21 | 22 |
22 Printer::Printer(const Printer& other) = default; | 23 Printer::Printer(const Printer& other) = default; |
23 | 24 |
24 Printer& Printer::operator=(const Printer& other) = default; | 25 Printer& Printer::operator=(const Printer& other) = default; |
25 | 26 |
26 Printer::~Printer() {} | 27 Printer::~Printer() {} |
27 | 28 |
28 bool Printer::IsIppEverywhere() const { | 29 bool Printer::IsIppEverywhere() const { |
29 // TODO(skau): Add check for IPP Everywhere value. | 30 // TODO(skau): Add check for IPP Everywhere value. |
30 return false; | 31 return false; |
31 } | 32 } |
32 | 33 |
33 } // namespace chromeos | 34 } // namespace chromeos |
OLD | NEW |