summaryrefslogtreecommitdiffstats
path: root/printing/backend/cups_helper.h
diff options
context:
space:
mode:
authorthestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-10-25 20:05:44 +0000
committerthestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-10-25 20:05:44 +0000
commit8e553f499860ac0b3bdea8326b7bc95a7650e250 (patch)
tree7c28ec6cbfae93e10038d97507a936a6e918aa2b /printing/backend/cups_helper.h
parent992848f4eb2e39e73b0bc2932253e9396eaf0369 (diff)
downloadchromium_src-8e553f499860ac0b3bdea8326b7bc95a7650e250.zip
chromium_src-8e553f499860ac0b3bdea8326b7bc95a7650e250.tar.gz
chromium_src-8e553f499860ac0b3bdea8326b7bc95a7650e250.tar.bz2
Move useful printing backend code from chrome/service/cloud_print to printing/backend.
BUG=none TEST=none Review URL: http://codereview.chromium.org/3945003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@63772 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'printing/backend/cups_helper.h')
-rw-r--r--printing/backend/cups_helper.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/printing/backend/cups_helper.h b/printing/backend/cups_helper.h
new file mode 100644
index 0000000..16841bc
--- /dev/null
+++ b/printing/backend/cups_helper.h
@@ -0,0 +1,31 @@
+// Copyright (c) 2010 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef PRINTING_BACKEND_CUPS_HELPER_H_
+#define PRINTING_BACKEND_CUPS_HELPER_H_
+#pragma once
+
+#include <cups/cups.h>
+
+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();
+
+ http_t* http();
+
+ private:
+ http_t* http_;
+};
+
+} // namespace printing
+
+#endif // PRINTING_BACKEND_CUPS_HELPER_H_