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 <algorithm> | 7 #include <algorithm> |
8 #include <utility> | 8 #include <utility> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
291 } | 291 } |
292 | 292 |
293 void MockRenderProcessHost::IncrementWorkerRefCount() { | 293 void MockRenderProcessHost::IncrementWorkerRefCount() { |
294 ++worker_ref_count_; | 294 ++worker_ref_count_; |
295 } | 295 } |
296 | 296 |
297 void MockRenderProcessHost::DecrementWorkerRefCount() { | 297 void MockRenderProcessHost::DecrementWorkerRefCount() { |
298 --worker_ref_count_; | 298 --worker_ref_count_; |
299 } | 299 } |
300 | 300 |
| 301 void MockRenderProcessHost::PurgeAndSuspend() {} |
| 302 |
301 void MockRenderProcessHost::FilterURL(bool empty_allowed, GURL* url) { | 303 void MockRenderProcessHost::FilterURL(bool empty_allowed, GURL* url) { |
302 RenderProcessHostImpl::FilterURL(this, empty_allowed, url); | 304 RenderProcessHostImpl::FilterURL(this, empty_allowed, url); |
303 } | 305 } |
304 | 306 |
305 #if defined(ENABLE_WEBRTC) | 307 #if defined(ENABLE_WEBRTC) |
306 void MockRenderProcessHost::EnableAudioDebugRecordings( | 308 void MockRenderProcessHost::EnableAudioDebugRecordings( |
307 const base::FilePath& file) { | 309 const base::FilePath& file) { |
308 } | 310 } |
309 | 311 |
310 void MockRenderProcessHost::DisableAudioDebugRecordings() {} | 312 void MockRenderProcessHost::DisableAudioDebugRecordings() {} |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
367 for (ScopedVector<MockRenderProcessHost>::iterator it = processes_.begin(); | 369 for (ScopedVector<MockRenderProcessHost>::iterator it = processes_.begin(); |
368 it != processes_.end(); ++it) { | 370 it != processes_.end(); ++it) { |
369 if (*it == host) { | 371 if (*it == host) { |
370 processes_.weak_erase(it); | 372 processes_.weak_erase(it); |
371 break; | 373 break; |
372 } | 374 } |
373 } | 375 } |
374 } | 376 } |
375 | 377 |
376 } // namespace content | 378 } // namespace content |
OLD | NEW |