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 238 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
249 base::string16* title) const; | 249 base::string16* title) const; |
250 | 250 |
251 #if defined(USE_CUPS) | 251 #if defined(USE_CUPS) |
252 void SaveCUPSColorSetting(const base::DictionaryValue* settings); | 252 void SaveCUPSColorSetting(const base::DictionaryValue* settings); |
253 | 253 |
254 void ConvertColorSettingToCUPSColorModel( | 254 void ConvertColorSettingToCUPSColorModel( |
255 base::DictionaryValue* settings) const; | 255 base::DictionaryValue* settings) const; |
256 #endif | 256 #endif |
257 | 257 |
258 #if defined(ENABLE_SERVICE_DISCOVERY) | 258 #if defined(ENABLE_SERVICE_DISCOVERY) |
| 259 void StartPrivetLister( |
| 260 scoped_refptr<local_discovery::ServiceDiscoverySharedClient> client); |
259 void OnPrivetCapabilities(const base::DictionaryValue* capabilities); | 261 void OnPrivetCapabilities(const base::DictionaryValue* capabilities); |
260 void PrivetCapabilitiesUpdateClient( | 262 void PrivetCapabilitiesUpdateClient( |
261 scoped_ptr<local_discovery::PrivetHTTPClient> http_client); | 263 scoped_ptr<local_discovery::PrivetHTTPClient> http_client); |
262 void PrivetLocalPrintUpdateClient( | 264 void PrivetLocalPrintUpdateClient( |
263 std::string print_ticket, | 265 std::string print_ticket, |
264 std::string capabilities, | 266 std::string capabilities, |
265 gfx::Size page_size, | 267 gfx::Size page_size, |
266 scoped_ptr<local_discovery::PrivetHTTPClient> http_client); | 268 scoped_ptr<local_discovery::PrivetHTTPClient> http_client); |
267 bool PrivetUpdateClient( | 269 bool PrivetUpdateClient( |
268 scoped_ptr<local_discovery::PrivetHTTPClient> http_client); | 270 scoped_ptr<local_discovery::PrivetHTTPClient> http_client); |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
336 base::WeakPtrFactory<PrintPreviewHandler> weak_factory_; | 338 base::WeakPtrFactory<PrintPreviewHandler> weak_factory_; |
337 | 339 |
338 // Notifies tests that want to know if the PDF has been saved. This doesn't | 340 // Notifies tests that want to know if the PDF has been saved. This doesn't |
339 // notify the test if it was a successful save, only that it was attempted. | 341 // notify the test if it was a successful save, only that it was attempted. |
340 base::Closure pdf_file_saved_closure_; | 342 base::Closure pdf_file_saved_closure_; |
341 | 343 |
342 DISALLOW_COPY_AND_ASSIGN(PrintPreviewHandler); | 344 DISALLOW_COPY_AND_ASSIGN(PrintPreviewHandler); |
343 }; | 345 }; |
344 | 346 |
345 #endif // CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_PRINT_PREVIEW_HANDLER_H_ | 347 #endif // CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_PRINT_PREVIEW_HANDLER_H_ |
OLD | NEW |