OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_PRINT_SYSTEM_H_ | 5 #ifndef CHROME_SERVICE_CLOUD_PRINT_PRINT_SYSTEM_H_ |
6 #define CHROME_SERVICE_CLOUD_PRINT_PRINT_SYSTEM_H_ | 6 #define CHROME_SERVICE_CLOUD_PRINT_PRINT_SYSTEM_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 14 matching lines...) Expand all Loading... |
25 | 25 |
26 // This is the interface for platform-specific code for cloud print | 26 // This is the interface for platform-specific code for cloud print |
27 namespace cloud_print { | 27 namespace cloud_print { |
28 | 28 |
29 typedef int PlatformJobId; | 29 typedef int PlatformJobId; |
30 | 30 |
31 enum PrintJobStatus { | 31 enum PrintJobStatus { |
32 PRINT_JOB_STATUS_INVALID, | 32 PRINT_JOB_STATUS_INVALID, |
33 PRINT_JOB_STATUS_IN_PROGRESS, | 33 PRINT_JOB_STATUS_IN_PROGRESS, |
34 PRINT_JOB_STATUS_ERROR, | 34 PRINT_JOB_STATUS_ERROR, |
35 PRINT_JOB_STATUS_COMPLETED | 35 PRINT_JOB_STATUS_COMPLETED, |
| 36 PRINT_JOB_STATUS_CANCELED, |
| 37 PRINT_JOB_STATUS_MAX, |
36 }; | 38 }; |
37 | 39 |
38 struct PrintJobDetails { | 40 struct PrintJobDetails { |
39 PrintJobDetails(); | 41 PrintJobDetails(); |
40 | 42 |
41 void Clear(); | 43 void Clear(); |
42 | 44 |
43 bool operator ==(const PrintJobDetails& other) const { | 45 bool operator ==(const PrintJobDetails& other) const { |
44 return (status == other.status) && | 46 return (status == other.status) && |
45 (platform_status_flags == other.platform_status_flags) && | 47 (platform_status_flags == other.platform_status_flags) && |
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
215 // Visual Studio where it gets confused between multiple Delegate | 217 // Visual Studio where it gets confused between multiple Delegate |
216 // classes and gives a C2500 error. (I saw this error on the try bots - | 218 // classes and gives a C2500 error. (I saw this error on the try bots - |
217 // the workaround was not needed for my machine). | 219 // the workaround was not needed for my machine). |
218 typedef PrintSystem::PrintServerWatcher::Delegate PrintServerWatcherDelegate; | 220 typedef PrintSystem::PrintServerWatcher::Delegate PrintServerWatcherDelegate; |
219 typedef PrintSystem::PrinterWatcher::Delegate PrinterWatcherDelegate; | 221 typedef PrintSystem::PrinterWatcher::Delegate PrinterWatcherDelegate; |
220 typedef PrintSystem::JobSpooler::Delegate JobSpoolerDelegate; | 222 typedef PrintSystem::JobSpooler::Delegate JobSpoolerDelegate; |
221 | 223 |
222 } // namespace cloud_print | 224 } // namespace cloud_print |
223 | 225 |
224 #endif // CHROME_SERVICE_CLOUD_PRINT_PRINT_SYSTEM_H_ | 226 #endif // CHROME_SERVICE_CLOUD_PRINT_PRINT_SYSTEM_H_ |
OLD | NEW |