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

Side by Side Diff: printing/backend/print_backend.h

Issue 10941025: Simplify document title for Windows printing. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 3 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 PRINTING_BACKEND_PRINT_BACKEND_H_ 5 #ifndef PRINTING_BACKEND_PRINT_BACKEND_H_
6 #define PRINTING_BACKEND_PRINT_BACKEND_H_ 6 #define PRINTING_BACKEND_PRINT_BACKEND_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
11 11
12 #include "base/memory/ref_counted.h" 12 #include "base/memory/ref_counted.h"
13 #include "base/string16.h"
13 #include "printing/print_job_constants.h" 14 #include "printing/print_job_constants.h"
14 #include "printing/printing_export.h" 15 #include "printing/printing_export.h"
15 16
16 namespace base { 17 namespace base {
17 class DictionaryValue; 18 class DictionaryValue;
18 } 19 }
19 20
20 // This is the interface for platform-specific code for a print backend 21 // This is the interface for platform-specific code for a print backend
21 namespace printing { 22 namespace printing {
22 23
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 const std::string& printer_name, 86 const std::string& printer_name,
86 PrinterCapsAndDefaults* printer_info) = 0; 87 PrinterCapsAndDefaults* printer_info) = 0;
87 88
88 // Gets the information about driver for a specific printer. 89 // Gets the information about driver for a specific printer.
89 virtual std::string GetPrinterDriverInfo( 90 virtual std::string GetPrinterDriverInfo(
90 const std::string& printer_name) = 0; 91 const std::string& printer_name) = 0;
91 92
92 // Returns true if printer_name points to a valid printer. 93 // Returns true if printer_name points to a valid printer.
93 virtual bool IsValidPrinter(const std::string& printer_name) = 0; 94 virtual bool IsValidPrinter(const std::string& printer_name) = 0;
94 95
96 // Simplify title to resolve issue with some drivers on Windows.
Albert Bodenhamer 2012/09/20 00:25:20 nit: Change is no longer Win specific.
Vitaly Buka (NO REVIEWS) 2012/09/20 00:28:44 Done.
97 static string16 SimplifyDocumentTitle(const string16& title);
98
95 // Allocate a print backend. If |print_backend_settings| is NULL, default 99 // Allocate a print backend. If |print_backend_settings| is NULL, default
96 // settings will be used. 100 // settings will be used.
97 // Return NULL if no print backend available. 101 // Return NULL if no print backend available.
98 static scoped_refptr<PrintBackend> CreateInstance( 102 static scoped_refptr<PrintBackend> CreateInstance(
99 const base::DictionaryValue* print_backend_settings); 103 const base::DictionaryValue* print_backend_settings);
100 104
101 protected: 105 protected:
102 friend class base::RefCountedThreadSafe<PrintBackend>; 106 friend class base::RefCountedThreadSafe<PrintBackend>;
103 virtual ~PrintBackend(); 107 virtual ~PrintBackend();
104 }; 108 };
105 109
106 } // namespace printing 110 } // namespace printing
107 111
108 #endif // PRINTING_BACKEND_PRINT_BACKEND_H_ 112 #endif // PRINTING_BACKEND_PRINT_BACKEND_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698