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

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

Issue 5736004: Added 'dry run' tag to the print job, to test proxy health without wasting pa... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years 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) 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 #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 #pragma once 7 #pragma once
8 8
9 #include <map> 9 #include <map>
10 #include <string> 10 #include <string>
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 virtual ~JobSpooler(); 119 virtual ~JobSpooler();
120 // Spool job to the printer asynchronously. Caller will be notified via 120 // Spool job to the printer asynchronously. Caller will be notified via
121 // |delegate|. Note that only one print job can be in progress at any given 121 // |delegate|. Note that only one print job can be in progress at any given
122 // time. Subsequent calls to Spool (before the Delegate::OnJobSpoolSucceeded 122 // time. Subsequent calls to Spool (before the Delegate::OnJobSpoolSucceeded
123 // or Delegate::OnJobSpoolFailed methods are called) can fail. 123 // or Delegate::OnJobSpoolFailed methods are called) can fail.
124 virtual bool Spool(const std::string& print_ticket, 124 virtual bool Spool(const std::string& print_ticket,
125 const FilePath& print_data_file_path, 125 const FilePath& print_data_file_path,
126 const std::string& print_data_mime_type, 126 const std::string& print_data_mime_type,
127 const std::string& printer_name, 127 const std::string& printer_name,
128 const std::string& job_title, 128 const std::string& job_title,
129 const std::vector<std::string>& tags,
129 JobSpooler::Delegate* delegate) = 0; 130 JobSpooler::Delegate* delegate) = 0;
130 }; 131 };
131 132
132 virtual ~PrintSystem(); 133 virtual ~PrintSystem();
133 134
134 // Initialize print system. This need to be called before any other function 135 // Initialize print system. This need to be called before any other function
135 // of PrintSystem. 136 // of PrintSystem.
136 virtual void Init() = 0; 137 virtual void Init() = 0;
137 138
138 // Enumerates the list of installed local and network printers. 139 // Enumerates the list of installed local and network printers.
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 // Visual Studio where it gets confused between multiple Delegate 178 // Visual Studio where it gets confused between multiple Delegate
178 // classes and gives a C2500 error. (I saw this error on the try bots - 179 // classes and gives a C2500 error. (I saw this error on the try bots -
179 // the workaround was not needed for my machine). 180 // the workaround was not needed for my machine).
180 typedef PrintSystem::PrintServerWatcher::Delegate PrintServerWatcherDelegate; 181 typedef PrintSystem::PrintServerWatcher::Delegate PrintServerWatcherDelegate;
181 typedef PrintSystem::PrinterWatcher::Delegate PrinterWatcherDelegate; 182 typedef PrintSystem::PrinterWatcher::Delegate PrinterWatcherDelegate;
182 typedef PrintSystem::JobSpooler::Delegate JobSpoolerDelegate; 183 typedef PrintSystem::JobSpooler::Delegate JobSpoolerDelegate;
183 184
184 } // namespace cloud_print 185 } // namespace cloud_print
185 186
186 #endif // CHROME_SERVICE_CLOUD_PRINT_PRINT_SYSTEM_H_ 187 #endif // CHROME_SERVICE_CLOUD_PRINT_PRINT_SYSTEM_H_
OLDNEW
« no previous file with comments | « chrome/service/cloud_print/cloud_print_proxy_backend.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