Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1476)

Side by Side Diff: chrome/service/cloud_print/print_system.h

Issue 58513004: Added CloudPrint.NativeJobStatus histogram. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/service/cloud_print/job_status_updater.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « chrome/service/cloud_print/job_status_updater.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698