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

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

Issue 857213003: Refactor sudden termination (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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 "base/lazy_instance.h" 7 #include "base/lazy_instance.h"
8 #include "base/message_loop/message_loop.h" 8 #include "base/message_loop/message_loop.h"
9 #include "base/process/process_handle.h" 9 #include "base/process/process_handle.h"
10 #include "base/time/time.h" 10 #include "base/time/time.h"
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 deletion_callback_called_ = true; 165 deletion_callback_called_ = true;
166 } 166 }
167 } 167 }
168 168
169 void MockRenderProcessHost::AddPendingView() { 169 void MockRenderProcessHost::AddPendingView() {
170 } 170 }
171 171
172 void MockRenderProcessHost::RemovePendingView() { 172 void MockRenderProcessHost::RemovePendingView() {
173 } 173 }
174 174
175 void MockRenderProcessHost::SetSuddenTerminationAllowed(bool allowed) { 175 void MockRenderProcessHost::SuddenTerminationChangedForFrame(bool allowed) {
176 } 176 }
177 177
178 bool MockRenderProcessHost::SuddenTerminationAllowed() const { 178 bool MockRenderProcessHost::SuddenTerminationAllowed() const {
179 return true; 179 return true;
180 } 180 }
181 181
182 BrowserContext* MockRenderProcessHost::GetBrowserContext() const { 182 BrowserContext* MockRenderProcessHost::GetBrowserContext() const {
183 return browser_context_; 183 return browser_context_;
184 } 184 }
185 185
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
311 for (ScopedVector<MockRenderProcessHost>::iterator it = processes_.begin(); 311 for (ScopedVector<MockRenderProcessHost>::iterator it = processes_.begin();
312 it != processes_.end(); ++it) { 312 it != processes_.end(); ++it) {
313 if (*it == host) { 313 if (*it == host) {
314 processes_.weak_erase(it); 314 processes_.weak_erase(it);
315 break; 315 break;
316 } 316 }
317 } 317 }
318 } 318 }
319 319
320 } // content 320 } // content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698