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

Side by Side Diff: content/browser/renderer_host/mock_render_process_host.cc

Issue 6532073: Move core pieces of browser\renderer_host to src\content. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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 "chrome/browser/renderer_host/mock_render_process_host.h" 5 #include "content/browser/renderer_host/mock_render_process_host.h"
6 6
7 #include "chrome/browser/child_process_security_policy.h" 7 #include "chrome/browser/child_process_security_policy.h"
8 8
9 MockRenderProcessHost::MockRenderProcessHost(Profile* profile) 9 MockRenderProcessHost::MockRenderProcessHost(Profile* profile)
10 : RenderProcessHost(profile), 10 : RenderProcessHost(profile),
11 transport_dib_(NULL), 11 transport_dib_(NULL),
12 bad_msg_count_(0), 12 bad_msg_count_(0),
13 factory_(NULL) { 13 factory_(NULL) {
14 // Child process security operations can't be unit tested unless we add 14 // Child process security operations can't be unit tested unless we add
15 // ourselves as an existing child process. 15 // ourselves as an existing child process.
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 147
148 void MockRenderProcessHostFactory::Remove(MockRenderProcessHost* host) const { 148 void MockRenderProcessHostFactory::Remove(MockRenderProcessHost* host) const {
149 for (ScopedVector<MockRenderProcessHost>::iterator it = processes_.begin(); 149 for (ScopedVector<MockRenderProcessHost>::iterator it = processes_.begin();
150 it != processes_.end(); ++it) { 150 it != processes_.end(); ++it) {
151 if (*it == host) { 151 if (*it == host) {
152 processes_.weak_erase(it); 152 processes_.weak_erase(it);
153 break; 153 break;
154 } 154 }
155 } 155 }
156 } 156 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698