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

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

Issue 147953009: Fallback to CDD/CJT if connector can't initialize XPS API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 10 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 #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 177 matching lines...) Expand 10 before | Expand all | Expand 10 after
188 PlatformJobId job_id, 188 PlatformJobId job_id,
189 PrintJobDetails* job_details) = 0; 189 PrintJobDetails* job_details) = 0;
190 190
191 // Factory methods to create corresponding watcher. Callee is responsible 191 // Factory methods to create corresponding watcher. Callee is responsible
192 // for deleting objects. Return NULL if failed. 192 // for deleting objects. Return NULL if failed.
193 virtual PrintServerWatcher* CreatePrintServerWatcher() = 0; 193 virtual PrintServerWatcher* CreatePrintServerWatcher() = 0;
194 virtual PrinterWatcher* CreatePrinterWatcher( 194 virtual PrinterWatcher* CreatePrinterWatcher(
195 const std::string& printer_name) = 0; 195 const std::string& printer_name) = 0;
196 virtual JobSpooler* CreateJobSpooler() = 0; 196 virtual JobSpooler* CreateJobSpooler() = 0;
197 197
198 // Returns a true if connector should use CDD for capabilities and CJT as
199 // print ticket.
200 virtual bool UseCddAndCjt() = 0;
201
198 // Returns a comma separated list of mimetypes for print data that are 202 // Returns a comma separated list of mimetypes for print data that are
199 // supported by this print system. The format of this string is the same as 203 // supported by this print system. The format of this string is the same as
200 // that used for the HTTP Accept: header. 204 // that used for the HTTP Accept: header.
201 virtual std::string GetSupportedMimeTypes() = 0; 205 virtual std::string GetSupportedMimeTypes() = 0;
202 206
203 // Generate unique for proxy. 207 // Generate unique for proxy.
204 static std::string GenerateProxyId(); 208 static std::string GenerateProxyId();
205 209
206 // Call this function to obtain printing system for specified print server. 210 // Call this function to obtain printing system for specified print server.
207 // If print settings are NULL, default settings will be used. 211 // If print settings are NULL, default settings will be used.
208 // Return NULL if no print system available. 212 // Return NULL if no print system available.
209 static scoped_refptr<PrintSystem> CreateInstance( 213 static scoped_refptr<PrintSystem> CreateInstance(
210 const base::DictionaryValue* print_system_settings); 214 const base::DictionaryValue* print_system_settings);
211 215
212 protected: 216 protected:
213 friend class base::RefCountedThreadSafe<PrintSystem>; 217 friend class base::RefCountedThreadSafe<PrintSystem>;
214 virtual ~PrintSystem(); 218 virtual ~PrintSystem();
215 }; 219 };
216 220
217 } // namespace cloud_print 221 } // namespace cloud_print
218 222
219 #endif // CHROME_SERVICE_CLOUD_PRINT_PRINT_SYSTEM_H_ 223 #endif // CHROME_SERVICE_CLOUD_PRINT_PRINT_SYSTEM_H_
OLDNEW
« no previous file with comments | « chrome/service/cloud_print/cloud_print_connector.cc ('k') | chrome/service/cloud_print/print_system_cups.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698