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

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

Issue 1991323002: Send input event IPCs directly from the UI thread (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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') | ipc/ipc_channel_proxy.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 <algorithm> 7 #include <algorithm>
8 #include <utility> 8 #include <utility>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after
233 return browser_context_; 233 return browser_context_;
234 } 234 }
235 235
236 bool MockRenderProcessHost::InSameStoragePartition( 236 bool MockRenderProcessHost::InSameStoragePartition(
237 StoragePartition* partition) const { 237 StoragePartition* partition) const {
238 // Mock RPHs only have one partition. 238 // Mock RPHs only have one partition.
239 return true; 239 return true;
240 } 240 }
241 241
242 IPC::ChannelProxy* MockRenderProcessHost::GetChannel() { 242 IPC::ChannelProxy* MockRenderProcessHost::GetChannel() {
243 return NULL; 243 return nullptr;
244 }
245
246 IPC::Sender* MockRenderProcessHost::GetImmediateSender() {
247 return this;
248 }
249
250 IPC::Sender* MockRenderProcessHost::GetIOThreadSender() {
251 return this;
244 } 252 }
245 253
246 void MockRenderProcessHost::AddFilter(BrowserMessageFilter* filter) { 254 void MockRenderProcessHost::AddFilter(BrowserMessageFilter* filter) {
247 } 255 }
248 256
249 bool MockRenderProcessHost::FastShutdownForPageCount(size_t count) { 257 bool MockRenderProcessHost::FastShutdownForPageCount(size_t count) {
250 if (GetActiveViewCount() == count) 258 if (GetActiveViewCount() == count)
251 return FastShutdownIfPossible(); 259 return FastShutdownIfPossible();
252 return false; 260 return false;
253 } 261 }
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
369 for (ScopedVector<MockRenderProcessHost>::iterator it = processes_.begin(); 377 for (ScopedVector<MockRenderProcessHost>::iterator it = processes_.begin();
370 it != processes_.end(); ++it) { 378 it != processes_.end(); ++it) {
371 if (*it == host) { 379 if (*it == host) {
372 processes_.weak_erase(it); 380 processes_.weak_erase(it);
373 break; 381 break;
374 } 382 }
375 } 383 }
376 } 384 }
377 385
378 } // namespace content 386 } // namespace content
OLDNEW
« no previous file with comments | « content/public/test/mock_render_process_host.h ('k') | ipc/ipc_channel_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698