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_process_host.h" | 5 #include "content/public/test/mock_render_process_host.h" |
6 | 6 |
7 #include "base/lazy_instance.h" | 7 #include "base/lazy_instance.h" |
8 #include "base/message_loop.h" | 8 #include "base/message_loop.h" |
9 #include "base/time.h" | 9 #include "base/time.h" |
10 #include "content/browser/child_process_security_policy_impl.h" | 10 #include "content/browser/child_process_security_policy_impl.h" |
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
201 return false; | 201 return false; |
202 } | 202 } |
203 | 203 |
204 base::TimeDelta MockRenderProcessHost::GetChildProcessIdleTime() const { | 204 base::TimeDelta MockRenderProcessHost::GetChildProcessIdleTime() const { |
205 return base::TimeDelta::FromMilliseconds(0); | 205 return base::TimeDelta::FromMilliseconds(0); |
206 } | 206 } |
207 | 207 |
208 void MockRenderProcessHost::SurfaceUpdated(int32 surface_id) { | 208 void MockRenderProcessHost::SurfaceUpdated(int32 surface_id) { |
209 } | 209 } |
210 | 210 |
| 211 void MockRenderProcessHost::ResumeRequestsForView(int route_id) { |
| 212 } |
| 213 |
211 RenderProcessHost::RenderWidgetHostsIterator | 214 RenderProcessHost::RenderWidgetHostsIterator |
212 MockRenderProcessHost::GetRenderWidgetHostsIterator() { | 215 MockRenderProcessHost::GetRenderWidgetHostsIterator() { |
213 return RenderWidgetHostsIterator(&render_widget_hosts_); | 216 return RenderWidgetHostsIterator(&render_widget_hosts_); |
214 } | 217 } |
215 | 218 |
216 bool MockRenderProcessHost::OnMessageReceived(const IPC::Message& msg) { | 219 bool MockRenderProcessHost::OnMessageReceived(const IPC::Message& msg) { |
217 return false; | 220 return false; |
218 } | 221 } |
219 | 222 |
220 void MockRenderProcessHost::OnChannelConnected(int32 peer_pid) { | 223 void MockRenderProcessHost::OnChannelConnected(int32 peer_pid) { |
(...skipping 24 matching lines...) Expand all Loading... |
245 for (ScopedVector<MockRenderProcessHost>::iterator it = processes_.begin(); | 248 for (ScopedVector<MockRenderProcessHost>::iterator it = processes_.begin(); |
246 it != processes_.end(); ++it) { | 249 it != processes_.end(); ++it) { |
247 if (*it == host) { | 250 if (*it == host) { |
248 processes_.weak_erase(it); | 251 processes_.weak_erase(it); |
249 break; | 252 break; |
250 } | 253 } |
251 } | 254 } |
252 } | 255 } |
253 | 256 |
254 } // content | 257 } // content |
OLD | NEW |