| 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_IMPL_H_ | 5 #ifndef CHROME_BROWSER_LOCAL_DISCOVERY_PRIVET_HTTP_IMPL_H_ |
| 6 #define CHROME_BROWSER_LOCAL_DISCOVERY_PRIVET_HTTP_IMPL_H_ | 6 #define CHROME_BROWSER_LOCAL_DISCOVERY_PRIVET_HTTP_IMPL_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/callback.h" | 10 #include "base/callback.h" |
| (...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 160 virtual void SetData(base::RefCountedBytes* data) OVERRIDE; | 160 virtual void SetData(base::RefCountedBytes* data) OVERRIDE; |
| 161 | 161 |
| 162 virtual void SetTicket(const std::string& ticket) OVERRIDE; | 162 virtual void SetTicket(const std::string& ticket) OVERRIDE; |
| 163 | 163 |
| 164 virtual void SetUsername(const std::string& user) OVERRIDE; | 164 virtual void SetUsername(const std::string& user) OVERRIDE; |
| 165 | 165 |
| 166 virtual void SetJobname(const std::string& jobname) OVERRIDE; | 166 virtual void SetJobname(const std::string& jobname) OVERRIDE; |
| 167 | 167 |
| 168 virtual void SetOffline(bool offline) OVERRIDE; | 168 virtual void SetOffline(bool offline) OVERRIDE; |
| 169 | 169 |
| 170 virtual void SetConversionSettings( | 170 virtual void SetPageSize(const gfx::Size& page_size) OVERRIDE; |
| 171 const printing::PdfRenderSettings& conversion_settings) OVERRIDE; | |
| 172 | 171 |
| 173 virtual void SetPWGRasterConverterForTesting( | 172 virtual void SetPWGRasterConverterForTesting( |
| 174 scoped_ptr<PWGRasterConverter> pwg_raster_converter) OVERRIDE; | 173 scoped_ptr<PWGRasterConverter> pwg_raster_converter) OVERRIDE; |
| 175 | 174 |
| 176 virtual PrivetHTTPClient* GetHTTPClient() OVERRIDE; | 175 virtual PrivetHTTPClient* GetHTTPClient() OVERRIDE; |
| 177 | 176 |
| 178 virtual void OnError(PrivetURLFetcher* fetcher, | 177 virtual void OnError(PrivetURLFetcher* fetcher, |
| 179 PrivetURLFetcher::ErrorType error) OVERRIDE; | 178 PrivetURLFetcher::ErrorType error) OVERRIDE; |
| 180 virtual void OnParsedJson(PrivetURLFetcher* fetcher, | 179 virtual void OnParsedJson(PrivetURLFetcher* fetcher, |
| 181 const base::DictionaryValue* value, | 180 const base::DictionaryValue* value, |
| (...skipping 30 matching lines...) Expand all Loading... |
| 212 | 211 |
| 213 std::string ticket_; | 212 std::string ticket_; |
| 214 scoped_refptr<base::RefCountedBytes> data_; | 213 scoped_refptr<base::RefCountedBytes> data_; |
| 215 base::FilePath pwg_file_path_; | 214 base::FilePath pwg_file_path_; |
| 216 | 215 |
| 217 bool use_pdf_; | 216 bool use_pdf_; |
| 218 bool has_capabilities_; | 217 bool has_capabilities_; |
| 219 bool has_extended_workflow_; | 218 bool has_extended_workflow_; |
| 220 bool started_; | 219 bool started_; |
| 221 bool offline_; | 220 bool offline_; |
| 222 printing::PdfRenderSettings conversion_settings_; | 221 gfx::Size page_size_; |
| 222 int dpi_; |
| 223 | 223 |
| 224 std::string user_; | 224 std::string user_; |
| 225 std::string jobname_; | 225 std::string jobname_; |
| 226 | 226 |
| 227 std::string jobid_; | 227 std::string jobid_; |
| 228 | 228 |
| 229 int invalid_job_retries_; | 229 int invalid_job_retries_; |
| 230 | 230 |
| 231 scoped_ptr<PrivetURLFetcher> url_fetcher_; | 231 scoped_ptr<PrivetURLFetcher> url_fetcher_; |
| 232 scoped_ptr<PrivetJSONOperation> info_operation_; | 232 scoped_ptr<PrivetJSONOperation> info_operation_; |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 285 PrivetURLFetcherFactory fetcher_factory_; | 285 PrivetURLFetcherFactory fetcher_factory_; |
| 286 net::HostPortPair host_port_; | 286 net::HostPortPair host_port_; |
| 287 scoped_ptr<base::DictionaryValue> cached_info_; | 287 scoped_ptr<base::DictionaryValue> cached_info_; |
| 288 | 288 |
| 289 scoped_ptr<PrivetJSONOperation> info_operation_; | 289 scoped_ptr<PrivetJSONOperation> info_operation_; |
| 290 TokenCallbackVector token_callbacks_; | 290 TokenCallbackVector token_callbacks_; |
| 291 }; | 291 }; |
| 292 | 292 |
| 293 } // namespace local_discovery | 293 } // namespace local_discovery |
| 294 #endif // CHROME_BROWSER_LOCAL_DISCOVERY_PRIVET_HTTP_IMPL_H_ | 294 #endif // CHROME_BROWSER_LOCAL_DISCOVERY_PRIVET_HTTP_IMPL_H_ |
| OLD | NEW |