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

Unified Diff: chrome/renderer/chrome_mock_render_thread.h

Issue 22577010: Printing: Add a basic printing mode without print preview and cloud print. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 7 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/common/url_constants.cc ('k') | chrome/renderer/chrome_mock_render_thread.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/chrome_mock_render_thread.h
diff --git a/chrome/renderer/chrome_mock_render_thread.h b/chrome/renderer/chrome_mock_render_thread.h
index 49fe79f45474df1bc506860822ba79bfbc743088..e4214f32bf13c0ac4a312581fcf703cf4efea299 100644
--- a/chrome/renderer/chrome_mock_render_thread.h
+++ b/chrome/renderer/chrome_mock_render_thread.h
@@ -33,6 +33,7 @@ class ChromeMockRenderThread : public content::MockRenderThread {
//////////////////////////////////////////////////////////////////////////
// The following functions are called by the test itself.
+#if defined(ENABLE_PRINTING)
// Returns the pseudo-printer instance.
MockPrinter* printer();
@@ -45,6 +46,7 @@ class ChromeMockRenderThread : public content::MockRenderThread {
// Get the number of pages to generate for print preview.
int print_preview_pages_remaining() const;
+#endif
private:
// Overrides base class implementation to add custom handling for
@@ -57,6 +59,7 @@ class ChromeMockRenderThread : public content::MockRenderThread {
const std::string& channel_name,
int* port_id);
+#if defined(ENABLE_PRINTING)
#if defined(OS_CHROMEOS)
void OnAllocateTempFileForPrinting(base::FileDescriptor* renderer_fd,
int* browser_fd);
@@ -97,6 +100,9 @@ class ChromeMockRenderThread : public content::MockRenderThread {
// Number of pages to generate for print preview.
int print_preview_pages_remaining_;
+#endif
+
+ DISALLOW_COPY_AND_ASSIGN(ChromeMockRenderThread);
};
#endif // CHROME_RENDERER_CHROME_MOCK_RENDER_THREAD_H_
« no previous file with comments | « chrome/common/url_constants.cc ('k') | chrome/renderer/chrome_mock_render_thread.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698