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

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

Issue 8515027: Define the public version of the browser side RenderProcessHost interface. This interface is not ... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 1 month 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 1
2 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 2 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
3 // Use of this source code is governed by a BSD-style license that can be 3 // Use of this source code is governed by a BSD-style license that can be
4 // found in the LICENSE file. 4 // found in the LICENSE file.
5 5
6 #include "content/browser/browser_url_handler.h" 6 #include "content/browser/browser_url_handler.h"
7 #include "content/browser/renderer_host/test_backing_store.h" 7 #include "content/browser/renderer_host/test_backing_store.h"
8 #include "content/browser/renderer_host/test_render_view_host.h" 8 #include "content/browser/renderer_host/test_render_view_host.h"
9 #include "content/browser/site_instance.h" 9 #include "content/browser/site_instance.h"
10 #include "content/browser/tab_contents/navigation_controller.h" 10 #include "content/browser/tab_contents/navigation_controller.h"
(...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after
251 } 251 }
252 252
253 bool TestRenderWidgetHostView::LockMouse() { 253 bool TestRenderWidgetHostView::LockMouse() {
254 return false; 254 return false;
255 } 255 }
256 256
257 void TestRenderWidgetHostView::UnlockMouse() { 257 void TestRenderWidgetHostView::UnlockMouse() {
258 } 258 }
259 259
260 TestRenderViewHostFactory::TestRenderViewHostFactory( 260 TestRenderViewHostFactory::TestRenderViewHostFactory(
261 RenderProcessHostFactory* rph_factory) 261 content::RenderProcessHostFactory* rph_factory)
262 : render_process_host_factory_(rph_factory) { 262 : render_process_host_factory_(rph_factory) {
263 RenderViewHostFactory::RegisterFactory(this); 263 RenderViewHostFactory::RegisterFactory(this);
264 } 264 }
265 265
266 TestRenderViewHostFactory::~TestRenderViewHostFactory() { 266 TestRenderViewHostFactory::~TestRenderViewHostFactory() {
267 RenderViewHostFactory::UnregisterFactory(); 267 RenderViewHostFactory::UnregisterFactory();
268 } 268 }
269 269
270 void TestRenderViewHostFactory::set_render_process_host_factory( 270 void TestRenderViewHostFactory::set_render_process_host_factory(
271 RenderProcessHostFactory* rph_factory) { 271 content::RenderProcessHostFactory* rph_factory) {
272 render_process_host_factory_ = rph_factory; 272 render_process_host_factory_ = rph_factory;
273 } 273 }
274 274
275 RenderViewHost* TestRenderViewHostFactory::CreateRenderViewHost( 275 RenderViewHost* TestRenderViewHostFactory::CreateRenderViewHost(
276 SiteInstance* instance, 276 SiteInstance* instance,
277 RenderViewHostDelegate* delegate, 277 RenderViewHostDelegate* delegate,
278 int routing_id, 278 int routing_id,
279 SessionStorageNamespace* session_storage) { 279 SessionStorageNamespace* session_storage) {
280 // See declaration of render_process_host_factory_ below. 280 // See declaration of render_process_host_factory_ below.
281 instance->set_render_process_host_factory(render_process_host_factory_); 281 instance->set_render_process_host_factory(render_process_host_factory_);
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
361 SetContents(NULL); 361 SetContents(NULL);
362 362
363 // Make sure that we flush any messages related to TabContents destruction 363 // Make sure that we flush any messages related to TabContents destruction
364 // before we destroy the browser context. 364 // before we destroy the browser context.
365 MessageLoop::current()->RunAllPending(); 365 MessageLoop::current()->RunAllPending();
366 366
367 // Release the browser context on the UI thread. 367 // Release the browser context on the UI thread.
368 message_loop_.DeleteSoon(FROM_HERE, browser_context_.release()); 368 message_loop_.DeleteSoon(FROM_HERE, browser_context_.release());
369 message_loop_.RunAllPending(); 369 message_loop_.RunAllPending();
370 } 370 }
OLDNEW
« no previous file with comments | « content/browser/renderer_host/test_render_view_host.h ('k') | content/browser/renderer_host/text_input_client_mac_unittest.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698