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/memory/ref_counted.h" | 14 #include "base/memory/ref_counted.h" |
15 #include "base/memory/scoped_ptr.h" | 15 #include "base/memory/scoped_ptr.h" |
16 #include "base/memory/weak_ptr.h" | 16 #include "base/memory/weak_ptr.h" |
17 #include "base/time/time.h" | 17 #include "base/time/time.h" |
18 #include "chrome/common/cloud_print/cloud_print_constants.h" | 18 #include "chrome/common/cloud_print/cloud_print_constants.h" |
19 | 19 |
20 namespace base { | 20 namespace base { |
21 class DictionaryValue; | 21 class DictionaryValue; |
22 } | 22 } |
23 | 23 |
24 namespace cloud_print { | 24 namespace cloud_print { |
25 | 25 |
26 struct JobDetails { | 26 struct JobDetails { |
27 JobDetails(); | 27 JobDetails(); |
28 ~JobDetails(); | 28 ~JobDetails(); |
29 void Clear(); | 29 void Clear(); |
30 static bool ordering(const JobDetails& first, const JobDetails& second); | 30 static bool ordering(const JobDetails& first, const JobDetails& second); |
31 | 31 |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
90 base::TimeDelta ComputeBackoffTime(const std::string& job_id); | 90 base::TimeDelta ComputeBackoffTime(const std::string& job_id); |
91 | 91 |
92 DISALLOW_COPY_AND_ASSIGN(PrinterJobQueueHandler); | 92 DISALLOW_COPY_AND_ASSIGN(PrinterJobQueueHandler); |
93 }; | 93 }; |
94 | 94 |
95 } // namespace cloud_print | 95 } // namespace cloud_print |
96 | 96 |
97 #endif // CHROME_SERVICE_CLOUD_PRINT_PRINTER_JOB_QUEUE_HANDLER_H_ | 97 #endif // CHROME_SERVICE_CLOUD_PRINT_PRINTER_JOB_QUEUE_HANDLER_H_ |
98 | 98 |
99 | 99 |
OLD | NEW |