OLD | NEW |
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 #include "printing/backend/cups_helper.h" | 5 #include "printing/backend/cups_helper.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "googleurl/src/gurl.h" | 8 #include "googleurl/src/gurl.h" |
9 | 9 |
10 namespace printing { | 10 namespace printing { |
(...skipping 19 matching lines...) Expand all Loading... |
30 LOG(ERROR) << "CP_CUPS: Failed connecting to print server: " << | 30 LOG(ERROR) << "CP_CUPS: Failed connecting to print server: " << |
31 print_server_url; | 31 print_server_url; |
32 } | 32 } |
33 } | 33 } |
34 | 34 |
35 HttpConnectionCUPS::~HttpConnectionCUPS() { | 35 HttpConnectionCUPS::~HttpConnectionCUPS() { |
36 if (http_ != NULL) | 36 if (http_ != NULL) |
37 httpClose(http_); | 37 httpClose(http_); |
38 } | 38 } |
39 | 39 |
| 40 void HttpConnectionCUPS::SetBlocking(bool blocking) { |
| 41 httpBlocking(http_, blocking ? 1 : 0); |
| 42 } |
| 43 |
40 http_t* HttpConnectionCUPS::http() { | 44 http_t* HttpConnectionCUPS::http() { |
41 return http_; | 45 return http_; |
42 } | 46 } |
43 | 47 |
44 } // namespace printing | 48 } // namespace printing |
OLD | NEW |