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

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

Issue 862023002: Fix crash on NULL pointer when the browser is compiled with use_cups=0 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: private dtor Created 5 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
« no previous file with comments | « no previous file | printing/backend/print_backend_dummy.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) 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>
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 104
105 // Gets the information about driver for a specific printer. 105 // Gets the information about driver for a specific printer.
106 virtual std::string GetPrinterDriverInfo( 106 virtual std::string GetPrinterDriverInfo(
107 const std::string& printer_name) = 0; 107 const std::string& printer_name) = 0;
108 108
109 // Returns true if printer_name points to a valid printer. 109 // Returns true if printer_name points to a valid printer.
110 virtual bool IsValidPrinter(const std::string& printer_name) = 0; 110 virtual bool IsValidPrinter(const std::string& printer_name) = 0;
111 111
112 // Allocate a print backend. If |print_backend_settings| is NULL, default 112 // Allocate a print backend. If |print_backend_settings| is NULL, default
113 // settings will be used. 113 // settings will be used.
114 // Return NULL if no print backend available.
115 static scoped_refptr<PrintBackend> CreateInstance( 114 static scoped_refptr<PrintBackend> CreateInstance(
116 const base::DictionaryValue* print_backend_settings); 115 const base::DictionaryValue* print_backend_settings);
117 116
118 protected: 117 protected:
119 friend class base::RefCountedThreadSafe<PrintBackend>; 118 friend class base::RefCountedThreadSafe<PrintBackend>;
120 virtual ~PrintBackend(); 119 virtual ~PrintBackend();
121 }; 120 };
122 121
123 } // namespace printing 122 } // namespace printing
124 123
125 #endif // PRINTING_BACKEND_PRINT_BACKEND_H_ 124 #endif // PRINTING_BACKEND_PRINT_BACKEND_H_
OLDNEW
« no previous file with comments | « no previous file | printing/backend/print_backend_dummy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698