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

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: Addressed nits Created 5 years, 10 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_frame_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 "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) {
176 }
177
178 bool MockRenderProcessHost::SuddenTerminationAllowed() const { 175 bool MockRenderProcessHost::SuddenTerminationAllowed() const {
179 return true; 176 return true;
180 } 177 }
181 178
182 BrowserContext* MockRenderProcessHost::GetBrowserContext() const { 179 BrowserContext* MockRenderProcessHost::GetBrowserContext() const {
183 return browser_context_; 180 return browser_context_;
184 } 181 }
185 182
186 bool MockRenderProcessHost::InSameStoragePartition( 183 bool MockRenderProcessHost::InSameStoragePartition(
187 StoragePartition* partition) const { 184 StoragePartition* partition) const {
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
311 for (ScopedVector<MockRenderProcessHost>::iterator it = processes_.begin(); 308 for (ScopedVector<MockRenderProcessHost>::iterator it = processes_.begin();
312 it != processes_.end(); ++it) { 309 it != processes_.end(); ++it) {
313 if (*it == host) { 310 if (*it == host) {
314 processes_.weak_erase(it); 311 processes_.weak_erase(it);
315 break; 312 break;
316 } 313 }
317 } 314 }
318 } 315 }
319 316
320 } // content 317 } // content
OLDNEW
« no previous file with comments | « content/public/test/mock_render_process_host.h ('k') | content/renderer/render_frame_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698