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

Side by Side Diff: chrome/renderer/mock_render_thread.h

Issue 6516022: Linux: Refactor printing to be more like Windows/Mac.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix mac build Created 9 years, 10 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_RENDERER_MOCK_RENDER_THREAD_H_ 5 #ifndef CHROME_RENDERER_MOCK_RENDER_THREAD_H_
6 #define CHROME_RENDERER_MOCK_RENDER_THREAD_H_ 6 #define CHROME_RENDERER_MOCK_RENDER_THREAD_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
11 #include "chrome/common/extensions/extension_set.h" 11 #include "chrome/common/extensions/extension_set.h"
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 #if defined(OS_WIN) 101 #if defined(OS_WIN)
102 void OnDuplicateSection(base::SharedMemoryHandle renderer_handle, 102 void OnDuplicateSection(base::SharedMemoryHandle renderer_handle,
103 base::SharedMemoryHandle* browser_handle); 103 base::SharedMemoryHandle* browser_handle);
104 #endif 104 #endif
105 105
106 #if defined(OS_POSIX) 106 #if defined(OS_POSIX)
107 void OnAllocateSharedMemoryBuffer(uint32 buffer_size, 107 void OnAllocateSharedMemoryBuffer(uint32 buffer_size,
108 base::SharedMemoryHandle* handle); 108 base::SharedMemoryHandle* handle);
109 #endif 109 #endif
110 110
111 #if defined(OS_LINUX) 111 #if defined(OS_CHROMEOS)
112 void OnAllocateTempFileForPrinting(base::FileDescriptor* renderer_fd, 112 void OnAllocateTempFileForPrinting(base::FileDescriptor* renderer_fd,
113 int* browser_fd); 113 int* browser_fd);
114 void OnTempFileForPrintingWritten(int browser_fd); 114 void OnTempFileForPrintingWritten(int browser_fd);
115 #endif 115 #endif
116 116
117 // The RenderView expects default print settings. 117 // The RenderView expects default print settings.
118 void OnGetDefaultPrintSettings(ViewMsg_Print_Params* setting); 118 void OnGetDefaultPrintSettings(ViewMsg_Print_Params* setting);
119 119
120 // The RenderView expects final print settings from the user. 120 // The RenderView expects final print settings from the user.
121 void OnScriptedPrint(const ViewHostMsg_ScriptedPrint_Params& params, 121 void OnScriptedPrint(const ViewHostMsg_ScriptedPrint_Params& params,
(...skipping 21 matching lines...) Expand all
143 scoped_ptr<MockPrinter> printer_; 143 scoped_ptr<MockPrinter> printer_;
144 144
145 // Contains extensions currently loaded by browser. This is usually empty 145 // Contains extensions currently loaded by browser. This is usually empty
146 // for MockRenderThread. 146 // for MockRenderThread.
147 ExtensionSet extensions_; 147 ExtensionSet extensions_;
148 148
149 bool is_extension_process_; 149 bool is_extension_process_;
150 }; 150 };
151 151
152 #endif // CHROME_RENDERER_MOCK_RENDER_THREAD_H_ 152 #endif // CHROME_RENDERER_MOCK_RENDER_THREAD_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698