| 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_CHROME_MOCK_RENDER_THREAD_H_ | 5 #ifndef CHROME_RENDERER_CHROME_MOCK_RENDER_THREAD_H_ |
| 6 #define CHROME_RENDERER_CHROME_MOCK_RENDER_THREAD_H_ | 6 #define CHROME_RENDERER_CHROME_MOCK_RENDER_THREAD_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 // print and extensions. | 53 // print and extensions. |
| 54 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE; | 54 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE; |
| 55 | 55 |
| 56 // The callee expects to be returned a valid channel_id. | 56 // The callee expects to be returned a valid channel_id. |
| 57 void OnOpenChannelToExtension(int routing_id, | 57 void OnOpenChannelToExtension(int routing_id, |
| 58 const ExtensionMsg_ExternalConnectionInfo& info, | 58 const ExtensionMsg_ExternalConnectionInfo& info, |
| 59 const std::string& channel_name, | 59 const std::string& channel_name, |
| 60 int* port_id); | 60 int* port_id); |
| 61 | 61 |
| 62 #if defined(ENABLE_PRINTING) | 62 #if defined(ENABLE_PRINTING) |
| 63 #if defined(OS_CHROMEOS) | 63 #if defined(OS_CHROMEOS) || defined(OS_ANDROID) |
| 64 void OnAllocateTempFileForPrinting(base::FileDescriptor* renderer_fd, | 64 void OnAllocateTempFileForPrinting(int render_view_id, |
| 65 base::FileDescriptor* renderer_fd, |
| 65 int* browser_fd); | 66 int* browser_fd); |
| 66 void OnTempFileForPrintingWritten(int render_view_id, int browser_fd); | 67 void OnTempFileForPrintingWritten(int render_view_id, int browser_fd); |
| 67 #endif | 68 #endif |
| 68 | 69 |
| 69 // PrintWebViewHelper expects default print settings. | 70 // PrintWebViewHelper expects default print settings. |
| 70 void OnGetDefaultPrintSettings(PrintMsg_Print_Params* setting); | 71 void OnGetDefaultPrintSettings(PrintMsg_Print_Params* setting); |
| 71 | 72 |
| 72 // PrintWebViewHelper expects final print settings from the user. | 73 // PrintWebViewHelper expects final print settings from the user. |
| 73 void OnScriptedPrint(const PrintHostMsg_ScriptedPrint_Params& params, | 74 void OnScriptedPrint(const PrintHostMsg_ScriptedPrint_Params& params, |
| 74 PrintMsg_PrintPages_Params* settings); | 75 PrintMsg_PrintPages_Params* settings); |
| (...skipping 24 matching lines...) Expand all Loading... |
| 99 int print_preview_cancel_page_number_; | 100 int print_preview_cancel_page_number_; |
| 100 | 101 |
| 101 // Number of pages to generate for print preview. | 102 // Number of pages to generate for print preview. |
| 102 int print_preview_pages_remaining_; | 103 int print_preview_pages_remaining_; |
| 103 #endif | 104 #endif |
| 104 | 105 |
| 105 DISALLOW_COPY_AND_ASSIGN(ChromeMockRenderThread); | 106 DISALLOW_COPY_AND_ASSIGN(ChromeMockRenderThread); |
| 106 }; | 107 }; |
| 107 | 108 |
| 108 #endif // CHROME_RENDERER_CHROME_MOCK_RENDER_THREAD_H_ | 109 #endif // CHROME_RENDERER_CHROME_MOCK_RENDER_THREAD_H_ |
| OLD | NEW |