OLD | NEW |
1 // Copyright (c) 2011 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 |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
96 void OnMsgOpenChannelToExtension( | 96 void OnMsgOpenChannelToExtension( |
97 int routing_id, const std::string& extension_id, | 97 int routing_id, const std::string& extension_id, |
98 const std::string& source_extension_id, | 98 const std::string& source_extension_id, |
99 const std::string& target_extension_id, int* port_id); | 99 const std::string& target_extension_id, int* port_id); |
100 | 100 |
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) | |
107 void OnAllocateSharedMemoryBuffer(uint32 buffer_size, | 106 void OnAllocateSharedMemoryBuffer(uint32 buffer_size, |
108 base::SharedMemoryHandle* handle); | 107 base::SharedMemoryHandle* handle); |
109 #endif | |
110 | 108 |
111 #if defined(OS_CHROMEOS) | 109 #if defined(OS_CHROMEOS) |
112 void OnAllocateTempFileForPrinting(base::FileDescriptor* renderer_fd, | 110 void OnAllocateTempFileForPrinting(base::FileDescriptor* renderer_fd, |
113 int* browser_fd); | 111 int* browser_fd); |
114 void OnTempFileForPrintingWritten(int browser_fd); | 112 void OnTempFileForPrintingWritten(int browser_fd); |
115 #endif | 113 #endif |
116 | 114 |
117 // The RenderView expects default print settings. | 115 // The RenderView expects default print settings. |
118 void OnGetDefaultPrintSettings(ViewMsg_Print_Params* setting); | 116 void OnGetDefaultPrintSettings(ViewMsg_Print_Params* setting); |
119 | 117 |
(...skipping 23 matching lines...) Expand all Loading... |
143 scoped_ptr<MockPrinter> printer_; | 141 scoped_ptr<MockPrinter> printer_; |
144 | 142 |
145 // Contains extensions currently loaded by browser. This is usually empty | 143 // Contains extensions currently loaded by browser. This is usually empty |
146 // for MockRenderThread. | 144 // for MockRenderThread. |
147 ExtensionSet extensions_; | 145 ExtensionSet extensions_; |
148 | 146 |
149 bool is_extension_process_; | 147 bool is_extension_process_; |
150 }; | 148 }; |
151 | 149 |
152 #endif // CHROME_RENDERER_MOCK_RENDER_THREAD_H_ | 150 #endif // CHROME_RENDERER_MOCK_RENDER_THREAD_H_ |
OLD | NEW |