| OLD | NEW |
| 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 #include "chrome/renderer/chrome_mock_render_thread.h" | 5 #include "chrome/renderer/chrome_mock_render_thread.h" |
| 6 | 6 |
| 7 #include <vector> | 7 #include <vector> |
| 8 | 8 |
| 9 #include "base/values.h" | 9 #include "base/values.h" |
| 10 #include "chrome/common/extensions/extension_messages.h" | 10 #include "chrome/common/extensions/extension_messages.h" |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 IPC_MESSAGE_HANDLER(PrintHostMsg_TempFileForPrintingWritten, | 61 IPC_MESSAGE_HANDLER(PrintHostMsg_TempFileForPrintingWritten, |
| 62 OnTempFileForPrintingWritten) | 62 OnTempFileForPrintingWritten) |
| 63 #endif | 63 #endif |
| 64 IPC_MESSAGE_UNHANDLED(handled = false) | 64 IPC_MESSAGE_UNHANDLED(handled = false) |
| 65 IPC_END_MESSAGE_MAP_EX() | 65 IPC_END_MESSAGE_MAP_EX() |
| 66 return handled; | 66 return handled; |
| 67 } | 67 } |
| 68 | 68 |
| 69 void ChromeMockRenderThread::OnOpenChannelToExtension( | 69 void ChromeMockRenderThread::OnOpenChannelToExtension( |
| 70 int routing_id, | 70 int routing_id, |
| 71 const std::string& source_extension_id, | 71 const ExtensionMsg_ExternalConnectionInfo& info, |
| 72 const std::string& target_extension_id, | |
| 73 const std::string& channel_name, | 72 const std::string& channel_name, |
| 74 int* port_id) { | 73 int* port_id) { |
| 75 *port_id = 0; | 74 *port_id = 0; |
| 76 } | 75 } |
| 77 | 76 |
| 78 #if defined(OS_CHROMEOS) | 77 #if defined(OS_CHROMEOS) |
| 79 void ChromeMockRenderThread::OnAllocateTempFileForPrinting( | 78 void ChromeMockRenderThread::OnAllocateTempFileForPrinting( |
| 80 base::FileDescriptor* renderer_fd, | 79 base::FileDescriptor* renderer_fd, |
| 81 int* browser_fd) { | 80 int* browser_fd) { |
| 82 renderer_fd->fd = *browser_fd = -1; | 81 renderer_fd->fd = *browser_fd = -1; |
| (...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 199 print_dialog_user_response_ = response; | 198 print_dialog_user_response_ = response; |
| 200 } | 199 } |
| 201 | 200 |
| 202 void ChromeMockRenderThread::set_print_preview_cancel_page_number(int page) { | 201 void ChromeMockRenderThread::set_print_preview_cancel_page_number(int page) { |
| 203 print_preview_cancel_page_number_ = page; | 202 print_preview_cancel_page_number_ = page; |
| 204 } | 203 } |
| 205 | 204 |
| 206 int ChromeMockRenderThread::print_preview_pages_remaining() const { | 205 int ChromeMockRenderThread::print_preview_pages_remaining() const { |
| 207 return print_preview_pages_remaining_; | 206 return print_preview_pages_remaining_; |
| 208 } | 207 } |
| OLD | NEW |