OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 #ifndef CHROME_SERVICE_CLOUD_PRINT_PRINTER_JOB_QUEUE_HANDLER_H_ | 5 #ifndef CHROME_SERVICE_CLOUD_PRINT_PRINTER_JOB_QUEUE_HANDLER_H_ |
6 #define CHROME_SERVICE_CLOUD_PRINT_PRINTER_JOB_QUEUE_HANDLER_H_ | 6 #define CHROME_SERVICE_CLOUD_PRINT_PRINTER_JOB_QUEUE_HANDLER_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 #include <utility> | 10 #include <utility> |
11 #include <vector> | 11 #include <vector> |
12 | 12 |
13 #include "base/files/file_path.h" | 13 #include "base/files/file_path.h" |
14 #include "base/macros.h" | 14 #include "base/macros.h" |
15 #include "base/memory/ref_counted.h" | 15 #include "base/memory/ref_counted.h" |
16 #include "base/memory/scoped_ptr.h" | 16 #include "base/memory/scoped_ptr.h" |
17 #include "base/memory/weak_ptr.h" | 17 #include "base/memory/weak_ptr.h" |
18 #include "base/time/time.h" | 18 #include "base/time/time.h" |
19 #include "chrome/common/cloud_print/cloud_print_constants.h" | 19 #include "chrome/common/cloud_print/cloud_print_constants.h" |
20 | 20 |
21 namespace base { | 21 namespace base { |
22 class DictionaryValue; | 22 class DictionaryValue; |
23 } | 23 } |
24 | 24 |
25 namespace cloud_print { | 25 namespace cloud_print { |
26 | 26 |
27 struct JobDetails { | 27 struct JobDetails { |
28 JobDetails(); | 28 JobDetails(); |
| 29 JobDetails(const JobDetails& other); |
29 ~JobDetails(); | 30 ~JobDetails(); |
30 void Clear(); | 31 void Clear(); |
31 static bool ordering(const JobDetails& first, const JobDetails& second); | 32 static bool ordering(const JobDetails& first, const JobDetails& second); |
32 | 33 |
33 std::string job_id_; | 34 std::string job_id_; |
34 std::string job_title_; | 35 std::string job_title_; |
35 std::string job_owner_; | 36 std::string job_owner_; |
36 | 37 |
37 std::string print_ticket_url_; | 38 std::string print_ticket_url_; |
38 std::string print_data_url_; | 39 std::string print_data_url_; |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
92 base::TimeDelta ComputeBackoffTime(const std::string& job_id); | 93 base::TimeDelta ComputeBackoffTime(const std::string& job_id); |
93 | 94 |
94 DISALLOW_COPY_AND_ASSIGN(PrinterJobQueueHandler); | 95 DISALLOW_COPY_AND_ASSIGN(PrinterJobQueueHandler); |
95 }; | 96 }; |
96 | 97 |
97 } // namespace cloud_print | 98 } // namespace cloud_print |
98 | 99 |
99 #endif // CHROME_SERVICE_CLOUD_PRINT_PRINTER_JOB_QUEUE_HANDLER_H_ | 100 #endif // CHROME_SERVICE_CLOUD_PRINT_PRINTER_JOB_QUEUE_HANDLER_H_ |
100 | 101 |
101 | 102 |
OLD | NEW |