class GURL;

// These are helper functions for dealing with CUPS.
namespace printing {

// Helper wrapper around http_t structure, with connection and cleanup
// functionality.
class HttpConnectionCUPS {
 public:
  explicit HttpConnectionCUPS(const GURL& print_server_url);
  ~HttpConnectionCUPS();

  void SetBlocking(bool blocking);

  http_t* http();

 private:
  http_t* http_;
};

}  // namespace printing

#endif  // PRINTING_BACKEND_CUPS_HELPER_H_
