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" |
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
116 // Optional attributes for /submitdoc. Call before calling |Start()| | 116 // Optional attributes for /submitdoc. Call before calling |Start()| |
117 // |ticket| should be in CJT format. | 117 // |ticket| should be in CJT format. |
118 virtual void SetTicket(const std::string& ticket) = 0; | 118 virtual void SetTicket(const std::string& ticket) = 0; |
119 // Username and jobname are for display only. | 119 // Username and jobname are for display only. |
120 virtual void SetUsername(const std::string& username) = 0; | 120 virtual void SetUsername(const std::string& username) = 0; |
121 virtual void SetJobname(const std::string& jobname) = 0; | 121 virtual void SetJobname(const std::string& jobname) = 0; |
122 // If |offline| is true, we will indicate to the printer not to post the job | 122 // If |offline| is true, we will indicate to the printer not to post the job |
123 // to Google Cloud Print. | 123 // to Google Cloud Print. |
124 virtual void SetOffline(bool offline) = 0; | 124 virtual void SetOffline(bool offline) = 0; |
125 // Document page size. | 125 // Document page size. |
126 virtual void SetConversionSettings( | 126 virtual void SetPageSize(const gfx::Size& page_size) = 0; |
127 const printing::PdfRenderSettings& conversion_settings) = 0; | |
128 | 127 |
129 // For testing, inject an alternative PWG raster converter. | 128 // For testing, inject an alternative PWG raster converter. |
130 virtual void SetPWGRasterConverterForTesting( | 129 virtual void SetPWGRasterConverterForTesting( |
131 scoped_ptr<PWGRasterConverter> pwg_raster_converter) = 0; | 130 scoped_ptr<PWGRasterConverter> pwg_raster_converter) = 0; |
132 | 131 |
133 virtual PrivetHTTPClient* GetHTTPClient() = 0; | 132 virtual PrivetHTTPClient* GetHTTPClient() = 0; |
134 }; | 133 }; |
135 | 134 |
136 // Privet HTTP client. Must not outlive the operations it creates. | 135 // Privet HTTP client. Must not outlive the operations it creates. |
137 class PrivetHTTPClient { | 136 class PrivetHTTPClient { |
(...skipping 13 matching lines...) Expand all Loading... |
151 virtual scoped_ptr<PrivetJSONOperation> CreateStorageListOperation( | 150 virtual scoped_ptr<PrivetJSONOperation> CreateStorageListOperation( |
152 const std::string& path, | 151 const std::string& path, |
153 const PrivetJSONOperation::ResultCallback& callback) = 0; | 152 const PrivetJSONOperation::ResultCallback& callback) = 0; |
154 | 153 |
155 // A name for the HTTP client, e.g. the device name for the privet device. | 154 // A name for the HTTP client, e.g. the device name for the privet device. |
156 virtual const std::string& GetName() = 0; | 155 virtual const std::string& GetName() = 0; |
157 }; | 156 }; |
158 | 157 |
159 } // namespace local_discovery | 158 } // namespace local_discovery |
160 #endif // CHROME_BROWSER_LOCAL_DISCOVERY_PRIVET_HTTP_H_ | 159 #endif // CHROME_BROWSER_LOCAL_DISCOVERY_PRIVET_HTTP_H_ |
OLD | NEW |