| OLD | NEW |
| (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 #include "chrome/browser/chromeos/printing/cups_print_job.h" |
| 6 |
| 7 #include "base/strings/string_number_conversions.h" |
| 8 |
| 9 namespace chromeos { |
| 10 |
| 11 CupsPrintJob::CupsPrintJob(const Printer& printer, |
| 12 int job_id, |
| 13 const std::string& document_title, |
| 14 int total_page_number) |
| 15 : printer_(printer), |
| 16 job_id_(job_id), |
| 17 document_title_(document_title), |
| 18 total_page_number_(total_page_number) {} |
| 19 |
| 20 CupsPrintJob::~CupsPrintJob() {} |
| 21 |
| 22 std::string CupsPrintJob::GetUniqueId() const { |
| 23 return printer_.id() + base::IntToString(job_id_); |
| 24 } |
| 25 |
| 26 } // namespace chromeos |
| OLD | NEW |