| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 CHROME_BROWSER_LOCAL_DISCOVERY_PRIVET_HTTP_H_ | 5 #ifndef CHROME_BROWSER_LOCAL_DISCOVERY_PRIVET_HTTP_H_ |
| 6 #define CHROME_BROWSER_LOCAL_DISCOVERY_PRIVET_HTTP_H_ | 6 #define CHROME_BROWSER_LOCAL_DISCOVERY_PRIVET_HTTP_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/callback.h" | 10 #include "base/callback.h" |
| 11 #include "chrome/browser/local_discovery/privet_url_fetcher.h" | 11 #include "chrome/browser/local_discovery/privet_url_fetcher.h" |
| 12 #include "chrome/browser/local_discovery/pwg_raster_converter.h" | |
| 13 #include "net/base/host_port_pair.h" | 12 #include "net/base/host_port_pair.h" |
| 14 | 13 |
| 15 namespace base { | 14 namespace base { |
| 16 class RefCountedBytes; | 15 class RefCountedBytes; |
| 17 } | 16 } |
| 18 | 17 |
| 19 namespace gfx { | 18 namespace gfx { |
| 20 class Size; | 19 class Size; |
| 21 } | 20 } |
| 22 | 21 |
| 23 namespace printing { | 22 namespace printing { |
| 24 class PdfRenderSettings; | 23 class PdfRenderSettings; |
| 25 } | 24 } |
| 26 | 25 |
| 27 namespace local_discovery { | 26 namespace local_discovery { |
| 28 | 27 |
| 28 class PWGRasterConverter; |
| 29 class PrivetHTTPClient; | 29 class PrivetHTTPClient; |
| 30 | 30 |
| 31 // Represents a simple request that returns pure JSON. | 31 // Represents a simple request that returns pure JSON. |
| 32 class PrivetJSONOperation { | 32 class PrivetJSONOperation { |
| 33 public: | 33 public: |
| 34 // If value is null, the operation failed. | 34 // If value is null, the operation failed. |
| 35 typedef base::Callback<void( | 35 typedef base::Callback<void( |
| 36 const base::DictionaryValue* /*value*/)> ResultCallback; | 36 const base::DictionaryValue* /*value*/)> ResultCallback; |
| 37 | 37 |
| 38 virtual ~PrivetJSONOperation() {} | 38 virtual ~PrivetJSONOperation() {} |
| (...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 201 const std::string& user, | 201 const std::string& user, |
| 202 PrivetRegisterOperation::Delegate* delegate) = 0; | 202 PrivetRegisterOperation::Delegate* delegate) = 0; |
| 203 | 203 |
| 204 // Creates operation to query capabilities of local printer. | 204 // Creates operation to query capabilities of local printer. |
| 205 virtual scoped_ptr<PrivetJSONOperation> CreateCapabilitiesOperation( | 205 virtual scoped_ptr<PrivetJSONOperation> CreateCapabilitiesOperation( |
| 206 const PrivetJSONOperation::ResultCallback& callback) = 0; | 206 const PrivetJSONOperation::ResultCallback& callback) = 0; |
| 207 | 207 |
| 208 // Creates operation to submit print job to local printer. | 208 // Creates operation to submit print job to local printer. |
| 209 virtual scoped_ptr<PrivetLocalPrintOperation> CreateLocalPrintOperation( | 209 virtual scoped_ptr<PrivetLocalPrintOperation> CreateLocalPrintOperation( |
| 210 PrivetLocalPrintOperation::Delegate* delegate) = 0; | 210 PrivetLocalPrintOperation::Delegate* delegate) = 0; |
| 211 | |
| 212 }; | 211 }; |
| 213 | 212 |
| 214 } // namespace local_discovery | 213 } // namespace local_discovery |
| 215 #endif // CHROME_BROWSER_LOCAL_DISCOVERY_PRIVET_HTTP_H_ | 214 #endif // CHROME_BROWSER_LOCAL_DISCOVERY_PRIVET_HTTP_H_ |
| OLD | NEW |