| 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 "content/public/test/mock_render_thread.h" | 5 #include "content/public/test/mock_render_thread.h" |
| 6 | 6 |
| 7 #include "base/message_loop/message_loop_proxy.h" | 7 #include "base/message_loop/message_loop_proxy.h" |
| 8 #include "content/common/frame_messages.h" | 8 #include "content/common/frame_messages.h" |
| 9 #include "content/common/view_messages.h" | 9 #include "content/common/view_messages.h" |
| 10 #include "content/public/renderer/render_process_observer.h" | 10 #include "content/public/renderer/render_process_observer.h" |
| (...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 162 } | 162 } |
| 163 | 163 |
| 164 int64 MockRenderThread::GetIdleNotificationDelayInMs() const { | 164 int64 MockRenderThread::GetIdleNotificationDelayInMs() const { |
| 165 return 0; | 165 return 0; |
| 166 } | 166 } |
| 167 | 167 |
| 168 void MockRenderThread::SetIdleNotificationDelayInMs( | 168 void MockRenderThread::SetIdleNotificationDelayInMs( |
| 169 int64 idle_notification_delay_in_ms) { | 169 int64 idle_notification_delay_in_ms) { |
| 170 } | 170 } |
| 171 | 171 |
| 172 void MockRenderThread::ToggleWebKitSharedTimer(bool suspend) { | |
| 173 } | |
| 174 | |
| 175 void MockRenderThread::UpdateHistograms(int sequence_number) { | 172 void MockRenderThread::UpdateHistograms(int sequence_number) { |
| 176 } | 173 } |
| 177 | 174 |
| 178 int MockRenderThread::PostTaskToAllWebWorkers(const base::Closure& closure) { | 175 int MockRenderThread::PostTaskToAllWebWorkers(const base::Closure& closure) { |
| 179 return 0; | 176 return 0; |
| 180 } | 177 } |
| 181 | 178 |
| 182 bool MockRenderThread::ResolveProxy(const GURL& url, std::string* proxy_list) { | 179 bool MockRenderThread::ResolveProxy(const GURL& url, std::string* proxy_list) { |
| 183 return false; | 180 return false; |
| 184 } | 181 } |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 258 void MockRenderThread::OnDuplicateSection( | 255 void MockRenderThread::OnDuplicateSection( |
| 259 base::SharedMemoryHandle renderer_handle, | 256 base::SharedMemoryHandle renderer_handle, |
| 260 base::SharedMemoryHandle* browser_handle) { | 257 base::SharedMemoryHandle* browser_handle) { |
| 261 // We don't have to duplicate the input handles since RenderViewTest does not | 258 // We don't have to duplicate the input handles since RenderViewTest does not |
| 262 // separate a browser process from a renderer process. | 259 // separate a browser process from a renderer process. |
| 263 *browser_handle = renderer_handle; | 260 *browser_handle = renderer_handle; |
| 264 } | 261 } |
| 265 #endif // defined(OS_WIN) | 262 #endif // defined(OS_WIN) |
| 266 | 263 |
| 267 } // namespace content | 264 } // namespace content |
| OLD | NEW |