OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef PRINTING_BACKEND_CUPS_HELPER_H_ |
| 6 #define PRINTING_BACKEND_CUPS_HELPER_H_ |
| 7 #pragma once |
| 8 |
| 9 #include <cups/cups.h> |
| 10 |
| 11 class GURL; |
| 12 |
| 13 // These are helper functions for dealing with CUPS. |
| 14 namespace printing { |
| 15 |
| 16 // Helper wrapper around http_t structure, with connection and cleanup |
| 17 // functionality. |
| 18 class HttpConnectionCUPS { |
| 19 public: |
| 20 explicit HttpConnectionCUPS(const GURL& print_server_url); |
| 21 ~HttpConnectionCUPS(); |
| 22 |
| 23 http_t* http(); |
| 24 |
| 25 private: |
| 26 http_t* http_; |
| 27 }; |
| 28 |
| 29 } // namespace printing |
| 30 |
| 31 #endif // PRINTING_BACKEND_CUPS_HELPER_H_ |
OLD | NEW |