Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef PRINTING_BACKEND_CUPS_DELETERS_H_ | |
| 6 #define PRINTING_BACKEND_CUPS_DELETERS_H_ | |
| 7 | |
| 8 #include <cups/cups.h> | |
| 9 | |
| 10 namespace printing { | |
| 11 | |
| 12 class HttpDeleter { | |
|
Lei Zhang
2016/07/19 19:32:58
Can we make these structs and avoid all the defaul
skau
2016/07/20 23:58:22
Done.
| |
| 13 public: | |
| 14 HttpDeleter() = default; | |
| 15 HttpDeleter(const HttpDeleter& deleter) = default; | |
| 16 | |
| 17 HttpDeleter& operator=(const HttpDeleter& deleter) = default; | |
| 18 | |
| 19 void operator()(http_t* http) const; | |
| 20 }; | |
| 21 | |
| 22 class DestinationDeleter { | |
| 23 public: | |
| 24 DestinationDeleter() = default; | |
| 25 DestinationDeleter(const DestinationDeleter& deleter) = default; | |
| 26 | |
| 27 DestinationDeleter& operator=(const DestinationDeleter& deleter) = default; | |
| 28 | |
| 29 void operator()(cups_dest_t* dest) const; | |
| 30 }; | |
| 31 | |
| 32 class DestInfoDeleter { | |
| 33 public: | |
| 34 DestInfoDeleter() = default; | |
| 35 DestInfoDeleter(const DestInfoDeleter& deleter) = default; | |
| 36 | |
| 37 DestInfoDeleter& operator=(const DestInfoDeleter& deleter) = default; | |
| 38 | |
| 39 void operator()(cups_dinfo_t* info) const; | |
| 40 }; | |
| 41 | |
| 42 } // namespace printing | |
| 43 | |
| 44 #endif // PRINTING_BACKEND_CUPS_DELETERS_H_ | |
| OLD | NEW |