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

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

Issue 383623002: Add a browser test that can communicate with the layout test framework and print pdfs. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added the keyword 'virtual' to overriden functions for combatibility with clang. Created 6 years, 5 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"
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 print_operation) OVERRIDE; 99 print_operation) OVERRIDE;
100 virtual void OnPrivetPrintingError( 100 virtual void OnPrivetPrintingError(
101 const local_discovery::PrivetLocalPrintOperation* print_operation, 101 const local_discovery::PrivetLocalPrintOperation* print_operation,
102 int http_code) OVERRIDE; 102 int http_code) OVERRIDE;
103 #endif // ENABLE_SERVICE_DISCOVERY 103 #endif // ENABLE_SERVICE_DISCOVERY
104 int regenerate_preview_request_count() const { 104 int regenerate_preview_request_count() const {
105 return regenerate_preview_request_count_; 105 return regenerate_preview_request_count_;
106 } 106 }
107 107
108 private: 108 private:
109 friend class PrintPreviewPdfGeneratedBrowserTest;
110 FRIEND_TEST_ALL_PREFIXES(PrintPreviewPdfGeneratedBrowserTest,
111 MANUAL_DummyTest);
109 class AccessTokenService; 112 class AccessTokenService;
110 113
111 static bool PrivetPrintingEnabled(); 114 static bool PrivetPrintingEnabled();
112 115
113 content::WebContents* preview_web_contents() const; 116 content::WebContents* preview_web_contents() const;
114 117
115 // Gets the list of printers. |args| is unused. 118 // Gets the list of printers. |args| is unused.
116 void HandleGetPrinters(const base::ListValue* args); 119 void HandleGetPrinters(const base::ListValue* args);
117 120
118 // Starts getting all local privet printers. |arg| is unused. 121 // Starts getting all local privet printers. |arg| is unused.
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after
326 scoped_ptr<local_discovery::PrivetLocalPrintOperation> 329 scoped_ptr<local_discovery::PrivetLocalPrintOperation>
327 privet_local_print_operation_; 330 privet_local_print_operation_;
328 #endif 331 #endif
329 332
330 base::WeakPtrFactory<PrintPreviewHandler> weak_factory_; 333 base::WeakPtrFactory<PrintPreviewHandler> weak_factory_;
331 334
332 DISALLOW_COPY_AND_ASSIGN(PrintPreviewHandler); 335 DISALLOW_COPY_AND_ASSIGN(PrintPreviewHandler);
333 }; 336 };
334 337
335 #endif // CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_PRINT_PREVIEW_HANDLER_H_ 338 #endif // CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_PRINT_PREVIEW_HANDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698