Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(143)

Side by Side Diff: chrome/browser/ui/webui/print_preview/print_preview_handler.h

Issue 1125343004: Add a "Simplify Page" option to the print preview dialog (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update AUTHORS file to reflect the correct HP name used in the CLA Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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"
11 #include "base/memory/ref_counted.h" 11 #include "base/memory/ref_counted.h"
12 #include "base/memory/scoped_ptr.h" 12 #include "base/memory/scoped_ptr.h"
13 #include "base/memory/weak_ptr.h" 13 #include "base/memory/weak_ptr.h"
14 #include "chrome/browser/printing/print_view_manager_observer.h" 14 #include "chrome/browser/printing/print_view_manager_observer.h"
15 #include "chrome/browser/ui/webui/print_preview/hidden_print_preview.h"
15 #include "components/signin/core/browser/gaia_cookie_manager_service.h" 16 #include "components/signin/core/browser/gaia_cookie_manager_service.h"
16 #include "content/public/browser/web_ui_message_handler.h" 17 #include "content/public/browser/web_ui_message_handler.h"
17 #include "ui/shell_dialogs/select_file_dialog.h" 18 #include "ui/shell_dialogs/select_file_dialog.h"
18 19
19 #if defined(ENABLE_SERVICE_DISCOVERY) 20 #if defined(ENABLE_SERVICE_DISCOVERY)
20 #include "chrome/browser/local_discovery/privet_local_printer_lister.h" 21 #include "chrome/browser/local_discovery/privet_local_printer_lister.h"
21 #include "chrome/browser/local_discovery/service_discovery_shared_client.h" 22 #include "chrome/browser/local_discovery/service_discovery_shared_client.h"
22 #endif // ENABLE_SERVICE_DISCOVERY 23 #endif // ENABLE_SERVICE_DISCOVERY
23 24
24 class PrinterHandler; 25 class PrinterHandler;
(...skipping 346 matching lines...) Expand 10 before | Expand all | Expand 10 after
371 #endif 372 #endif
372 373
373 // Handles requests for extension printers. Created lazily by calling 374 // Handles requests for extension printers. Created lazily by calling
374 // |EnsureExtensionPrinterHandlerSet|. 375 // |EnsureExtensionPrinterHandlerSet|.
375 scoped_ptr<PrinterHandler> extension_printer_handler_; 376 scoped_ptr<PrinterHandler> extension_printer_handler_;
376 377
377 // Notifies tests that want to know if the PDF has been saved. This doesn't 378 // Notifies tests that want to know if the PDF has been saved. This doesn't
378 // notify the test if it was a successful save, only that it was attempted. 379 // notify the test if it was a successful save, only that it was attempted.
379 base::Closure pdf_file_saved_closure_; 380 base::Closure pdf_file_saved_closure_;
380 381
382 scoped_ptr<HiddenPrintPreview> hidden_print_preview_;
383
381 base::WeakPtrFactory<PrintPreviewHandler> weak_factory_; 384 base::WeakPtrFactory<PrintPreviewHandler> weak_factory_;
382 385
383 DISALLOW_COPY_AND_ASSIGN(PrintPreviewHandler); 386 DISALLOW_COPY_AND_ASSIGN(PrintPreviewHandler);
384 }; 387 };
385 388
386 #endif // CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_PRINT_PREVIEW_HANDLER_H_ 389 #endif // CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_PRINT_PREVIEW_HANDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698