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

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

Issue 2105463002: Create a new print backend for the updated CUPS APIs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix comment. Created 4 years, 5 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
OLDNEW
(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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698