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

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

Issue 9271061: Cleanup: Remove static storage for variables in an unnamed namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Style change. Created 8 years, 11 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
« no previous file with comments | « chrome/browser/sync/syncable/syncable.cc ('k') | content/renderer/gpu/renderer_gl_context.cc » ('j') | 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 17 matching lines...) Expand all
28 #include "chrome/service/cloud_print/cloud_print_consts.h" 28 #include "chrome/service/cloud_print/cloud_print_consts.h"
29 #include "chrome/service/cloud_print/cloud_print_helpers.h" 29 #include "chrome/service/cloud_print/cloud_print_helpers.h"
30 #include "googleurl/src/gurl.h" 30 #include "googleurl/src/gurl.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 36
37 namespace { 37 namespace {
38
38 // CUPS specific options. 39 // CUPS specific options.
39 static const char kCUPSPrinterInfoOpt[] = "printer-info"; 40 const char kCUPSPrinterInfoOpt[] = "printer-info";
40 static const char kCUPSPrinterStateOpt[] = "printer-state"; 41 const char kCUPSPrinterStateOpt[] = "printer-state";
41 42
42 // Print system config options. 43 // Print system config options.
43 static const char kCUPSPrintServerURLs[] = "print_server_urls"; 44 const char kCUPSPrintServerURLs[] = "print_server_urls";
44 static const char kCUPSUpdateTimeoutMs[] = "update_timeout_ms"; 45 const char kCUPSUpdateTimeoutMs[] = "update_timeout_ms";
45 static const char kCUPSNotifyDelete[] = "notify_delete"; 46 const char kCUPSNotifyDelete[] = "notify_delete";
46 47
47 // Default port for IPP print servers. 48 // Default port for IPP print servers.
48 static const int kDefaultIPPServerPort = 631; 49 const int kDefaultIPPServerPort = 631;
49 50
50 // Time interval to check for printer's updates. 51 // Time interval to check for printer's updates.
51 const int kCheckForPrinterUpdatesMs = 5*60*1000; 52 const int kCheckForPrinterUpdatesMs = 5*60*1000;
52 53
53 // Job update timeout 54 // Job update timeout
54 const int kJobUpdateTimeoutMs = 5000; 55 const int kJobUpdateTimeoutMs = 5000;
55 56
56 // 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
57 // invalid in CUPS. 58 // invalid in CUPS.
58 const int kDryRunJobId = 0; 59 const int kDryRunJobId = 0;
(...skipping 757 matching lines...) Expand 10 before | Expand all | Expand 10 after
816 817
817 void PrintSystemCUPS::RunCapsCallback( 818 void PrintSystemCUPS::RunCapsCallback(
818 const PrinterCapsAndDefaultsCallback& callback, 819 const PrinterCapsAndDefaultsCallback& callback,
819 bool succeeded, 820 bool succeeded,
820 const std::string& printer_name, 821 const std::string& printer_name,
821 const printing::PrinterCapsAndDefaults& printer_info) { 822 const printing::PrinterCapsAndDefaults& printer_info) {
822 callback.Run(succeeded, printer_name, printer_info); 823 callback.Run(succeeded, printer_name, printer_info);
823 } 824 }
824 825
825 } // namespace cloud_print 826 } // namespace cloud_print
OLDNEW
« no previous file with comments | « chrome/browser/sync/syncable/syncable.cc ('k') | content/renderer/gpu/renderer_gl_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698