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

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

Issue 5609004: cupsGetPPD got stuck sometime for an infinite time due to network configurati... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 10 years 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | printing/backend/cups_helper.cc » ('j') | printing/backend/print_backend_cups.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef PRINTING_BACKEND_CUPS_HELPER_H_ 5 #ifndef PRINTING_BACKEND_CUPS_HELPER_H_
6 #define PRINTING_BACKEND_CUPS_HELPER_H_ 6 #define PRINTING_BACKEND_CUPS_HELPER_H_
7 #pragma once 7 #pragma once
8 8
9 #include <cups/cups.h> 9 #include <cups/cups.h>
10 10
11 class GURL; 11 class GURL;
12 12
13 // These are helper functions for dealing with CUPS. 13 // These are helper functions for dealing with CUPS.
14 namespace printing { 14 namespace printing {
15 15
16 // Helper wrapper around http_t structure, with connection and cleanup 16 // Helper wrapper around http_t structure, with connection and cleanup
17 // functionality. 17 // functionality.
18 class HttpConnectionCUPS { 18 class HttpConnectionCUPS {
19 public: 19 public:
20 explicit HttpConnectionCUPS(const GURL& print_server_url); 20 explicit HttpConnectionCUPS(const GURL& print_server_url);
21 ~HttpConnectionCUPS(); 21 ~HttpConnectionCUPS();
22 22
23 void SetBlocking(bool blocking);
sanjeevr 2010/12/03 23:46:37 Possible to unit-test this?
24
23 http_t* http(); 25 http_t* http();
24 26
25 private: 27 private:
26 http_t* http_; 28 http_t* http_;
27 }; 29 };
28 30
29 } // namespace printing 31 } // namespace printing
30 32
31 #endif // PRINTING_BACKEND_CUPS_HELPER_H_ 33 #endif // PRINTING_BACKEND_CUPS_HELPER_H_
OLDNEW
« no previous file with comments | « no previous file | printing/backend/cups_helper.cc » ('j') | printing/backend/print_backend_cups.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698