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

Side by Side Diff: chrome/service/cloud_print/print_system_cups.cc

Issue 24649002: Clean up a few more unused globals. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: thestig comment Created 7 years, 2 months 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
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 #include "chrome/service/cloud_print/print_system.h" 5 #include "chrome/service/cloud_print/print_system.h"
6 6
7 #include <cups/cups.h> 7 #include <cups/cups.h>
8 #include <dlfcn.h> 8 #include <dlfcn.h>
9 #include <errno.h> 9 #include <errno.h>
10 #include <pthread.h> 10 #include <pthread.h>
(...skipping 19 matching lines...) Expand all
30 #include "chrome/service/cloud_print/cloud_print_helpers.h" 30 #include "chrome/service/cloud_print/cloud_print_helpers.h"
31 #include "grit/generated_resources.h" 31 #include "grit/generated_resources.h"
32 #include "printing/backend/cups_helper.h" 32 #include "printing/backend/cups_helper.h"
33 #include "printing/backend/print_backend.h" 33 #include "printing/backend/print_backend.h"
34 #include "printing/backend/print_backend_consts.h" 34 #include "printing/backend/print_backend_consts.h"
35 #include "ui/base/l10n/l10n_util.h" 35 #include "ui/base/l10n/l10n_util.h"
36 #include "url/gurl.h" 36 #include "url/gurl.h"
37 37
38 namespace { 38 namespace {
39 39
40 // CUPS specific options.
41 const char kCUPSPrinterInfoOpt[] = "printer-info";
42 const char kCUPSPrinterStateOpt[] = "printer-state";
43
44 // Print system config options. 40 // Print system config options.
45 const char kCUPSPrintServerURLs[] = "print_server_urls"; 41 const char kCUPSPrintServerURLs[] = "print_server_urls";
46 const char kCUPSUpdateTimeoutMs[] = "update_timeout_ms"; 42 const char kCUPSUpdateTimeoutMs[] = "update_timeout_ms";
47 const char kCUPSNotifyDelete[] = "notify_delete"; 43 const char kCUPSNotifyDelete[] = "notify_delete";
48 const char kCUPSSupportedMimeTipes[] = "supported_mime_types"; 44 const char kCUPSSupportedMimeTipes[] = "supported_mime_types";
49 45
50 // Default mime types supported by CUPS 46 // Default mime types supported by CUPS
51 // http://www.cups.org/articles.php?L205+TFAQ+Q 47 // http://www.cups.org/articles.php?L205+TFAQ+Q
52 const char kCUPSDefaultSupportedTypes[] = 48 const char kCUPSDefaultSupportedTypes[] =
53 "application/pdf,application/postscript,image/jpeg,image/png,image/gif"; 49 "application/pdf,application/postscript,image/jpeg,image/png,image/gif";
54 50
55 // Default port for IPP print servers.
56 const int kDefaultIPPServerPort = 631;
57
58 // Time interval to check for printer's updates. 51 // Time interval to check for printer's updates.
59 const int kCheckForPrinterUpdatesMinutes = 5; 52 const int kCheckForPrinterUpdatesMinutes = 5;
60 53
61 // Job update timeout 54 // Job update timeout
62 const int kJobUpdateTimeoutSeconds = 5; 55 const int kJobUpdateTimeoutSeconds = 5;
63 56
64 // Job id for dry run (it should not affect CUPS job ids, since 0 job-id is 57 // Job id for dry run (it should not affect CUPS job ids, since 0 job-id is
65 // invalid in CUPS. 58 // invalid in CUPS.
66 const int kDryRunJobId = 0; 59 const int kDryRunJobId = 0;
67 60
(...skipping 799 matching lines...) Expand 10 before | Expand all | Expand 10 after
867 860
868 void PrintSystemCUPS::RunCapsCallback( 861 void PrintSystemCUPS::RunCapsCallback(
869 const PrinterCapsAndDefaultsCallback& callback, 862 const PrinterCapsAndDefaultsCallback& callback,
870 bool succeeded, 863 bool succeeded,
871 const std::string& printer_name, 864 const std::string& printer_name,
872 const printing::PrinterCapsAndDefaults& printer_info) { 865 const printing::PrinterCapsAndDefaults& printer_info) {
873 callback.Run(succeeded, printer_name, printer_info); 866 callback.Run(succeeded, printer_name, printer_info);
874 } 867 }
875 868
876 } // namespace cloud_print 869 } // namespace cloud_print
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698