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

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

Issue 3117017: Remove deprecated wstring Get(As)String() methods from Value, etc. (Closed)
Patch Set: fix win Created 10 years, 4 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
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 <gcrypt.h> 10 #include <gcrypt.h>
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 } 76 }
77 } 77 }
78 } 78 }
79 79
80 } // namespace 80 } // namespace
81 81
82 namespace cloud_print { 82 namespace cloud_print {
83 83
84 static const char kCUPSPrinterInfoOpt[] = "printer-info"; 84 static const char kCUPSPrinterInfoOpt[] = "printer-info";
85 static const char kCUPSPrinterStateOpt[] = "printer-state"; 85 static const char kCUPSPrinterStateOpt[] = "printer-state";
86 static const wchar_t kCUPSPrintServerURL[] = L"print_server_url"; 86 static const char kCUPSPrintServerURL[] = "print_server_url";
87 87
88 // Default port for IPP print servers. 88 // Default port for IPP print servers.
89 static const int kDefaultIPPServerPort = 631; 89 static const int kDefaultIPPServerPort = 631;
90 90
91 // Helper wrapper around http_t structure, with connection and cleanup 91 // Helper wrapper around http_t structure, with connection and cleanup
92 // functionality. 92 // functionality.
93 class HttpConnectionCUPS { 93 class HttpConnectionCUPS {
94 public: 94 public:
95 explicit HttpConnectionCUPS(const GURL& print_server_url) : http_(NULL) { 95 explicit HttpConnectionCUPS(const GURL& print_server_url) : http_(NULL) {
96 // If we have an empty url, use default print server. 96 // If we have an empty url, use default print server.
(...skipping 468 matching lines...) Expand 10 before | Expand all | Expand 10 after
565 job_title.c_str(), 565 job_title.c_str(),
566 cups_options.size(), 566 cups_options.size(),
567 &(cups_options[0])); 567 &(cups_options[0]));
568 568
569 LOG(INFO) << "CP_CUPS: Job spooled, id: " << job_id; 569 LOG(INFO) << "CP_CUPS: Job spooled, id: " << job_id;
570 570
571 return job_id; 571 return job_id;
572 } 572 }
573 573
574 } // namespace cloud_print 574 } // namespace cloud_print
OLDNEW
« no previous file with comments | « chrome/service/cloud_print/cloud_print_proxy_backend.cc ('k') | chrome/service/cloud_print/printer_job_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698