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

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

Issue 176843004: Add IncrementWorkerRefCount() and DecrementWorkerRefCount() to RenderProcessHostImpl. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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
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/time/time.h" 9 #include "base/time/time.h"
10 #include "content/browser/child_process_security_policy_impl.h" 10 #include "content/browser/child_process_security_policy_impl.h"
(...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after
260 } 260 }
261 261
262 void MockRenderProcessHost::SetWebRtcLogMessageCallback( 262 void MockRenderProcessHost::SetWebRtcLogMessageCallback(
263 base::Callback<void(const std::string&)> callback) { 263 base::Callback<void(const std::string&)> callback) {
264 } 264 }
265 #endif 265 #endif
266 266
267 void MockRenderProcessHost::ResumeDeferredNavigation( 267 void MockRenderProcessHost::ResumeDeferredNavigation(
268 const GlobalRequestID& request_id) {} 268 const GlobalRequestID& request_id) {}
269 269
270 void MockRenderProcessHost::SetExternalClientStatus(
271 bool has_external_worker_client) {
272 }
273
270 bool MockRenderProcessHost::OnMessageReceived(const IPC::Message& msg) { 274 bool MockRenderProcessHost::OnMessageReceived(const IPC::Message& msg) {
271 IPC::Listener* listener = listeners_.Lookup(msg.routing_id()); 275 IPC::Listener* listener = listeners_.Lookup(msg.routing_id());
272 if (listener) 276 if (listener)
273 return listener->OnMessageReceived(msg); 277 return listener->OnMessageReceived(msg);
274 return false; 278 return false;
275 } 279 }
276 280
277 void MockRenderProcessHost::OnChannelConnected(int32 peer_pid) { 281 void MockRenderProcessHost::OnChannelConnected(int32 peer_pid) {
278 } 282 }
279 283
(...skipping 23 matching lines...) Expand all
303 for (ScopedVector<MockRenderProcessHost>::iterator it = processes_.begin(); 307 for (ScopedVector<MockRenderProcessHost>::iterator it = processes_.begin();
304 it != processes_.end(); ++it) { 308 it != processes_.end(); ++it) {
305 if (*it == host) { 309 if (*it == host) {
306 processes_.weak_erase(it); 310 processes_.weak_erase(it);
307 break; 311 break;
308 } 312 }
309 } 313 }
310 } 314 }
311 315
312 } // content 316 } // content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698