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

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

Issue 12600018: ResourceScheduler should use renderer notifications instead of MRUCache to track renderers. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Reverse destruction order Created 7 years, 9 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 | Annotate | Revision Log
« 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 "base/lazy_instance.h" 7 #include "base/lazy_instance.h"
8 #include "base/message_loop.h" 8 #include "base/message_loop.h"
9 #include "base/time.h" 9 #include "base/time.h"
10 #include "content/browser/child_process_security_policy_impl.h" 10 #include "content/browser/child_process_security_policy_impl.h"
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 45
46 bool MockRenderProcessHost::Init() { 46 bool MockRenderProcessHost::Init() {
47 return true; 47 return true;
48 } 48 }
49 49
50 int MockRenderProcessHost::GetNextRoutingID() { 50 int MockRenderProcessHost::GetNextRoutingID() {
51 static int prev_routing_id = 0; 51 static int prev_routing_id = 0;
52 return ++prev_routing_id; 52 return ++prev_routing_id;
53 } 53 }
54 54
55 void MockRenderProcessHost::CancelResourceRequests(int render_widget_id) {
56 }
57
58 void MockRenderProcessHost::SimulateSwapOutACK( 55 void MockRenderProcessHost::SimulateSwapOutACK(
59 const ViewMsg_SwapOut_Params& params) { 56 const ViewMsg_SwapOut_Params& params) {
60 } 57 }
61 58
62 bool MockRenderProcessHost::WaitForBackingStoreMsg( 59 bool MockRenderProcessHost::WaitForBackingStoreMsg(
63 int render_widget_id, 60 int render_widget_id,
64 const base::TimeDelta& max_delay, 61 const base::TimeDelta& max_delay,
65 IPC::Message* msg) { 62 IPC::Message* msg) {
66 return false; 63 return false;
67 } 64 }
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after
261 for (ScopedVector<MockRenderProcessHost>::iterator it = processes_.begin(); 258 for (ScopedVector<MockRenderProcessHost>::iterator it = processes_.begin();
262 it != processes_.end(); ++it) { 259 it != processes_.end(); ++it) {
263 if (*it == host) { 260 if (*it == host) {
264 processes_.weak_erase(it); 261 processes_.weak_erase(it);
265 break; 262 break;
266 } 263 }
267 } 264 }
268 } 265 }
269 266
270 } // content 267 } // 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