| 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 279 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 290 } | 290 } |
| 291 | 291 |
| 292 void MockRenderProcessHost::IncrementWorkerRefCount() { | 292 void MockRenderProcessHost::IncrementWorkerRefCount() { |
| 293 ++worker_ref_count_; | 293 ++worker_ref_count_; |
| 294 } | 294 } |
| 295 | 295 |
| 296 void MockRenderProcessHost::DecrementWorkerRefCount() { | 296 void MockRenderProcessHost::DecrementWorkerRefCount() { |
| 297 --worker_ref_count_; | 297 --worker_ref_count_; |
| 298 } | 298 } |
| 299 | 299 |
| 300 void MockRenderProcessHost::ForceReleaseWorkerRefCount() {} |
| 301 |
| 300 void MockRenderProcessHost::PurgeAndSuspend() {} | 302 void MockRenderProcessHost::PurgeAndSuspend() {} |
| 301 | 303 |
| 302 void MockRenderProcessHost::FilterURL(bool empty_allowed, GURL* url) { | 304 void MockRenderProcessHost::FilterURL(bool empty_allowed, GURL* url) { |
| 303 RenderProcessHostImpl::FilterURL(this, empty_allowed, url); | 305 RenderProcessHostImpl::FilterURL(this, empty_allowed, url); |
| 304 } | 306 } |
| 305 | 307 |
| 306 #if defined(ENABLE_WEBRTC) | 308 #if defined(ENABLE_WEBRTC) |
| 307 void MockRenderProcessHost::EnableAudioDebugRecordings( | 309 void MockRenderProcessHost::EnableAudioDebugRecordings( |
| 308 const base::FilePath& file) { | 310 const base::FilePath& file) { |
| 309 } | 311 } |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 372 for (ScopedVector<MockRenderProcessHost>::iterator it = processes_.begin(); | 374 for (ScopedVector<MockRenderProcessHost>::iterator it = processes_.begin(); |
| 373 it != processes_.end(); ++it) { | 375 it != processes_.end(); ++it) { |
| 374 if (*it == host) { | 376 if (*it == host) { |
| 375 processes_.weak_erase(it); | 377 processes_.weak_erase(it); |
| 376 break; | 378 break; |
| 377 } | 379 } |
| 378 } | 380 } |
| 379 } | 381 } |
| 380 | 382 |
| 381 } // namespace content | 383 } // namespace content |
| OLD | NEW |