| 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 317 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 328 void OnGotExtensionPrinterCapabilities( | 328 void OnGotExtensionPrinterCapabilities( |
| 329 const std::string& printer_id, | 329 const std::string& printer_id, |
| 330 const base::DictionaryValue& capabilities); | 330 const base::DictionaryValue& capabilities); |
| 331 | 331 |
| 332 // Called when an extension print job is completed. | 332 // Called when an extension print job is completed. |
| 333 // |success|: Whether the job succeeded. | 333 // |success|: Whether the job succeeded. |
| 334 // |status|: The returned print job status. Useful for reporting a specific | 334 // |status|: The returned print job status. Useful for reporting a specific |
| 335 // error. | 335 // error. |
| 336 void OnExtensionPrintResult(bool success, const std::string& status); | 336 void OnExtensionPrintResult(bool success, const std::string& status); |
| 337 | 337 |
| 338 // Called when the DOM Distiller determines whether or not this page can | |
| 339 // be distilled. | |
| 340 // |distillable|: Whether or not this page can be distilled. | |
| 341 void HandleIsPageDistillableResult(bool distillable); | |
| 342 | |
| 343 // Register/unregister from notifications of changes done to the GAIA | 338 // Register/unregister from notifications of changes done to the GAIA |
| 344 // cookie. | 339 // cookie. |
| 345 void RegisterForGaiaCookieChanges(); | 340 void RegisterForGaiaCookieChanges(); |
| 346 void UnregisterForGaiaCookieChanges(); | 341 void UnregisterForGaiaCookieChanges(); |
| 347 | 342 |
| 348 // The underlying dialog object. | 343 // The underlying dialog object. |
| 349 scoped_refptr<ui::SelectFileDialog> select_file_dialog_; | 344 scoped_refptr<ui::SelectFileDialog> select_file_dialog_; |
| 350 | 345 |
| 351 // A count of how many requests received to regenerate preview data. | 346 // A count of how many requests received to regenerate preview data. |
| 352 // Initialized to 0 then incremented and emitted to a histogram. | 347 // Initialized to 0 then incremented and emitted to a histogram. |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 399 // A print preview that is responsible for rendering the page after | 394 // A print preview that is responsible for rendering the page after |
| 400 // being processed by the DOM Distiller. | 395 // being processed by the DOM Distiller. |
| 401 scoped_ptr<PrintPreviewDistiller> print_preview_distiller_; | 396 scoped_ptr<PrintPreviewDistiller> print_preview_distiller_; |
| 402 | 397 |
| 403 base::WeakPtrFactory<PrintPreviewHandler> weak_factory_; | 398 base::WeakPtrFactory<PrintPreviewHandler> weak_factory_; |
| 404 | 399 |
| 405 DISALLOW_COPY_AND_ASSIGN(PrintPreviewHandler); | 400 DISALLOW_COPY_AND_ASSIGN(PrintPreviewHandler); |
| 406 }; | 401 }; |
| 407 | 402 |
| 408 #endif // CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_PRINT_PREVIEW_HANDLER_H_ | 403 #endif // CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_PRINT_PREVIEW_HANDLER_H_ |
| OLD | NEW |