| 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 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 91 print_operation) OVERRIDE; | 91 print_operation) OVERRIDE; |
| 92 virtual void OnPrivetPrintingError( | 92 virtual void OnPrivetPrintingError( |
| 93 const local_discovery::PrivetLocalPrintOperation* print_operation, | 93 const local_discovery::PrivetLocalPrintOperation* print_operation, |
| 94 int http_code) OVERRIDE; | 94 int http_code) OVERRIDE; |
| 95 #endif // ENABLE_SERVICE_DISCOVERY | 95 #endif // ENABLE_SERVICE_DISCOVERY |
| 96 int regenerate_preview_request_count() const { | 96 int regenerate_preview_request_count() const { |
| 97 return regenerate_preview_request_count_; | 97 return regenerate_preview_request_count_; |
| 98 } | 98 } |
| 99 | 99 |
| 100 private: | 100 private: |
| 101 friend class PrintPreviewPdfGeneratedBrowserTest; |
| 102 FRIEND_TEST_ALL_PREFIXES(PrintPreviewPdfGeneratedBrowserTest, |
| 103 DummyTest); |
| 101 class AccessTokenService; | 104 class AccessTokenService; |
| 102 struct CUPSPrinterColorModels; | 105 struct CUPSPrinterColorModels; |
| 103 | 106 |
| 104 static bool PrivetPrintingEnabled(); | 107 static bool PrivetPrintingEnabled(); |
| 105 | 108 |
| 106 content::WebContents* preview_web_contents() const; | 109 content::WebContents* preview_web_contents() const; |
| 107 | 110 |
| 108 // Gets the list of printers. |args| is unused. | 111 // Gets the list of printers. |args| is unused. |
| 109 void HandleGetPrinters(const base::ListValue* args); | 112 void HandleGetPrinters(const base::ListValue* args); |
| 110 | 113 |
| (...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 315 scoped_ptr<local_discovery::PrivetLocalPrintOperation> | 318 scoped_ptr<local_discovery::PrivetLocalPrintOperation> |
| 316 privet_local_print_operation_; | 319 privet_local_print_operation_; |
| 317 #endif | 320 #endif |
| 318 | 321 |
| 319 base::WeakPtrFactory<PrintPreviewHandler> weak_factory_; | 322 base::WeakPtrFactory<PrintPreviewHandler> weak_factory_; |
| 320 | 323 |
| 321 DISALLOW_COPY_AND_ASSIGN(PrintPreviewHandler); | 324 DISALLOW_COPY_AND_ASSIGN(PrintPreviewHandler); |
| 322 }; | 325 }; |
| 323 | 326 |
| 324 #endif // CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_PRINT_PREVIEW_HANDLER_H_ | 327 #endif // CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_PRINT_PREVIEW_HANDLER_H_ |
| OLD | NEW |