| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_UI_WEBUI_PRINT_PREVIEW_PRINT_PREVIEW_HANDLER_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_PRINT_PREVIEW_HANDLER_H_ |
| 6 #define CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_PRINT_PREVIEW_HANDLER_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_PRINT_PREVIEW_HANDLER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/files/file_path.h" | 10 #include "base/files/file_path.h" |
| (...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 256 const std::string& capabilities, | 256 const std::string& capabilities, |
| 257 const gfx::Size& page_size); | 257 const gfx::Size& page_size); |
| 258 void SendPrivetCapabilitiesError(const std::string& id); | 258 void SendPrivetCapabilitiesError(const std::string& id); |
| 259 void PrintToPrivetPrinter(const std::string& printer_name, | 259 void PrintToPrivetPrinter(const std::string& printer_name, |
| 260 const std::string& print_ticket, | 260 const std::string& print_ticket, |
| 261 const std::string& capabilities, | 261 const std::string& capabilities, |
| 262 const gfx::Size& page_size); | 262 const gfx::Size& page_size); |
| 263 bool CreatePrivetHTTP( | 263 bool CreatePrivetHTTP( |
| 264 const std::string& name, | 264 const std::string& name, |
| 265 const local_discovery::PrivetHTTPAsynchronousFactory::ResultCallback& | 265 const local_discovery::PrivetHTTPAsynchronousFactory::ResultCallback& |
| 266 callback); | 266 callback); |
| 267 void FillPrinterDescription( | 267 void FillPrinterDescription( |
| 268 const std::string& name, | 268 const std::string& name, |
| 269 const local_discovery::DeviceDescription& description, | 269 const local_discovery::DeviceDescription& description, |
| 270 bool has_local_printing, | 270 bool has_local_printing, |
| 271 base::DictionaryValue* printer_value); | 271 base::DictionaryValue* printer_value); |
| 272 #endif | 272 #endif |
| 273 | 273 |
| 274 // The underlying dialog object. | 274 // The underlying dialog object. |
| 275 scoped_refptr<ui::SelectFileDialog> select_file_dialog_; | 275 scoped_refptr<ui::SelectFileDialog> select_file_dialog_; |
| 276 | 276 |
| (...skipping 19 matching lines...) Expand all Loading... |
| 296 scoped_ptr<AccessTokenService> token_service_; | 296 scoped_ptr<AccessTokenService> token_service_; |
| 297 | 297 |
| 298 #if defined(ENABLE_SERVICE_DISCOVERY) | 298 #if defined(ENABLE_SERVICE_DISCOVERY) |
| 299 scoped_refptr<local_discovery::ServiceDiscoverySharedClient> | 299 scoped_refptr<local_discovery::ServiceDiscoverySharedClient> |
| 300 service_discovery_client_; | 300 service_discovery_client_; |
| 301 scoped_ptr<local_discovery::PrivetLocalPrinterLister> printer_lister_; | 301 scoped_ptr<local_discovery::PrivetLocalPrinterLister> printer_lister_; |
| 302 | 302 |
| 303 scoped_ptr<local_discovery::PrivetHTTPAsynchronousFactory> | 303 scoped_ptr<local_discovery::PrivetHTTPAsynchronousFactory> |
| 304 privet_http_factory_; | 304 privet_http_factory_; |
| 305 scoped_ptr<local_discovery::PrivetHTTPResolution> privet_http_resolution_; | 305 scoped_ptr<local_discovery::PrivetHTTPResolution> privet_http_resolution_; |
| 306 scoped_ptr<local_discovery::PrivetHTTPClient> privet_http_client_; | 306 scoped_ptr<local_discovery::PrivetV1HTTPClient> privet_http_client_; |
| 307 scoped_ptr<local_discovery::PrivetJSONOperation> | 307 scoped_ptr<local_discovery::PrivetJSONOperation> |
| 308 privet_capabilities_operation_; | 308 privet_capabilities_operation_; |
| 309 scoped_ptr<local_discovery::PrivetLocalPrintOperation> | 309 scoped_ptr<local_discovery::PrivetLocalPrintOperation> |
| 310 privet_local_print_operation_; | 310 privet_local_print_operation_; |
| 311 #endif | 311 #endif |
| 312 | 312 |
| 313 base::WeakPtrFactory<PrintPreviewHandler> weak_factory_; | 313 base::WeakPtrFactory<PrintPreviewHandler> weak_factory_; |
| 314 | 314 |
| 315 DISALLOW_COPY_AND_ASSIGN(PrintPreviewHandler); | 315 DISALLOW_COPY_AND_ASSIGN(PrintPreviewHandler); |
| 316 }; | 316 }; |
| 317 | 317 |
| 318 #endif // CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_PRINT_PREVIEW_HANDLER_H_ | 318 #endif // CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_PRINT_PREVIEW_HANDLER_H_ |
| OLD | NEW |