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

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

Issue 2312633002: For debugging, split worker ref count into service worker and shared worker counts (Closed)
Patch Set: size_t Created 4 years, 3 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') | no next file » | 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 271 matching lines...) Expand 10 before | Expand all | Expand 10 after
282 int render_frame_id, 282 int render_frame_id,
283 int cdm_id) const { 283 int cdm_id) const {
284 return nullptr; 284 return nullptr;
285 } 285 }
286 #endif 286 #endif
287 287
288 bool MockRenderProcessHost::IsProcessBackgrounded() const { 288 bool MockRenderProcessHost::IsProcessBackgrounded() const {
289 return is_process_backgrounded_; 289 return is_process_backgrounded_;
290 } 290 }
291 291
292 void MockRenderProcessHost::IncrementWorkerRefCount() { 292 void MockRenderProcessHost::IncrementServiceWorkerRefCount() {
293 ++worker_ref_count_; 293 ++worker_ref_count_;
294 } 294 }
295 295
296 void MockRenderProcessHost::DecrementWorkerRefCount() { 296 void MockRenderProcessHost::DecrementServiceWorkerRefCount() {
297 --worker_ref_count_; 297 --worker_ref_count_;
298 } 298 }
299 299
300 void MockRenderProcessHost::IncrementSharedWorkerRefCount() {
301 ++worker_ref_count_;
302 }
303
304 void MockRenderProcessHost::DecrementSharedWorkerRefCount() {
305 --worker_ref_count_;
306 }
307
300 void MockRenderProcessHost::PurgeAndSuspend() {} 308 void MockRenderProcessHost::PurgeAndSuspend() {}
301 309
302 void MockRenderProcessHost::FilterURL(bool empty_allowed, GURL* url) { 310 void MockRenderProcessHost::FilterURL(bool empty_allowed, GURL* url) {
303 RenderProcessHostImpl::FilterURL(this, empty_allowed, url); 311 RenderProcessHostImpl::FilterURL(this, empty_allowed, url);
304 } 312 }
305 313
306 #if defined(ENABLE_WEBRTC) 314 #if defined(ENABLE_WEBRTC)
307 void MockRenderProcessHost::EnableAudioDebugRecordings( 315 void MockRenderProcessHost::EnableAudioDebugRecordings(
308 const base::FilePath& file) { 316 const base::FilePath& file) {
309 } 317 }
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
372 for (ScopedVector<MockRenderProcessHost>::iterator it = processes_.begin(); 380 for (ScopedVector<MockRenderProcessHost>::iterator it = processes_.begin();
373 it != processes_.end(); ++it) { 381 it != processes_.end(); ++it) {
374 if (*it == host) { 382 if (*it == host) {
375 processes_.weak_erase(it); 383 processes_.weak_erase(it);
376 break; 384 break;
377 } 385 }
378 } 386 }
379 } 387 }
380 388
381 } // namespace content 389 } // namespace content
OLDNEW
« no previous file with comments | « content/public/test/mock_render_process_host.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698