Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(482)

Side by Side Diff: content/public/test/mock_render_process_host.cc

Issue 1914143002: Experimental 'purging and suspending' backgrounded tabs behind the flag (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address on haraken's review Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « content/public/test/mock_render_process_host.h ('k') | content/renderer/render_thread_impl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « content/public/test/mock_render_process_host.h ('k') | content/renderer/render_thread_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698