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

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

Issue 1542743002: [RDHI] Refactored blocked_loaders_map_ to key by render frame route id (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: just comments / minor restructuring (trybots previous) Created 4 years, 11 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
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 239 matching lines...) Expand 10 before | Expand all | Expand 10 after
250 bool MockRenderProcessHost::FastShutdownForPageCount(size_t count) { 250 bool MockRenderProcessHost::FastShutdownForPageCount(size_t count) {
251 if (GetActiveViewCount() == count) 251 if (GetActiveViewCount() == count)
252 return FastShutdownIfPossible(); 252 return FastShutdownIfPossible();
253 return false; 253 return false;
254 } 254 }
255 255
256 base::TimeDelta MockRenderProcessHost::GetChildProcessIdleTime() const { 256 base::TimeDelta MockRenderProcessHost::GetChildProcessIdleTime() const {
257 return base::TimeDelta::FromMilliseconds(0); 257 return base::TimeDelta::FromMilliseconds(0);
258 } 258 }
259 259
260 void MockRenderProcessHost::ResumeRequestsForView(int route_id) { 260 void MockRenderProcessHost::ResumeRequestsForFrame(int route_id) {}
Charlie Harrison 2015/12/28 15:37:32 Will fix {} in next patch.
Charlie Harrison 2015/12/30 20:51:49 Done.
261 }
262 261
263 void MockRenderProcessHost::NotifyTimezoneChange(const std::string& zone_id) { 262 void MockRenderProcessHost::NotifyTimezoneChange(const std::string& zone_id) {
264 } 263 }
265 264
266 ServiceRegistry* MockRenderProcessHost::GetServiceRegistry() { 265 ServiceRegistry* MockRenderProcessHost::GetServiceRegistry() {
267 return NULL; 266 return NULL;
268 } 267 }
269 268
270 const base::TimeTicks& MockRenderProcessHost::GetInitTimeForNavigationMetrics() 269 const base::TimeTicks& MockRenderProcessHost::GetInitTimeForNavigationMetrics()
271 const { 270 const {
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
376 for (ScopedVector<MockRenderProcessHost>::iterator it = processes_.begin(); 375 for (ScopedVector<MockRenderProcessHost>::iterator it = processes_.begin();
377 it != processes_.end(); ++it) { 376 it != processes_.end(); ++it) {
378 if (*it == host) { 377 if (*it == host) {
379 processes_.weak_erase(it); 378 processes_.weak_erase(it);
380 break; 379 break;
381 } 380 }
382 } 381 }
383 } 382 }
384 383
385 } // namespace content 384 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698