| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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/test/test_render_view_host.h" | 5 #include "chrome/browser/renderer_host/test/test_render_view_host.h" |
| 6 | 6 |
| 7 #include "chrome/browser/browser_url_handler.h" | 7 #include "chrome/browser/browser_url_handler.h" |
| 8 #include "chrome/browser/renderer_host/site_instance.h" | 8 #include "chrome/browser/renderer_host/site_instance.h" |
| 9 #include "chrome/browser/renderer_host/test/test_backing_store.h" | 9 #include "chrome/browser/renderer_host/test/test_backing_store.h" |
| 10 #include "chrome/browser/tab_contents/navigation_controller.h" | 10 #include "chrome/browser/tab_contents/navigation_controller.h" |
| (...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 174 void TestRenderWidgetHostView::AcceleratedSurfaceBuffersSwapped( | 174 void TestRenderWidgetHostView::AcceleratedSurfaceBuffersSwapped( |
| 175 gfx::PluginWindowHandle window, | 175 gfx::PluginWindowHandle window, |
| 176 uint64 surface_id, | 176 uint64 surface_id, |
| 177 int renderer_id, | 177 int renderer_id, |
| 178 int32 route_id, | 178 int32 route_id, |
| 179 uint64 swap_buffers_count) { | 179 uint64 swap_buffers_count) { |
| 180 } | 180 } |
| 181 | 181 |
| 182 void TestRenderWidgetHostView::GpuRenderingStateDidChange() { | 182 void TestRenderWidgetHostView::GpuRenderingStateDidChange() { |
| 183 } | 183 } |
| 184 #elif defined(OS_WIN) |
| 185 gfx::PluginWindowHandle TestRenderWidgetHostView::CreateCompositorHostWindow( |
| 186 ) { |
| 187 return gfx::kNullPluginWindow; |
| 188 } |
| 189 |
| 190 void TestRenderWidgetHostView::WillWmDestroy() { |
| 191 } |
| 192 |
| 193 void TestRenderWidgetHostView::ShowCompositorHostWindow(bool show) { |
| 194 } |
| 184 #endif | 195 #endif |
| 185 | 196 |
| 186 TestRenderViewHostFactory::TestRenderViewHostFactory( | 197 TestRenderViewHostFactory::TestRenderViewHostFactory( |
| 187 RenderProcessHostFactory* rph_factory) | 198 RenderProcessHostFactory* rph_factory) |
| 188 : render_process_host_factory_(rph_factory) { | 199 : render_process_host_factory_(rph_factory) { |
| 189 RenderViewHostFactory::RegisterFactory(this); | 200 RenderViewHostFactory::RegisterFactory(this); |
| 190 } | 201 } |
| 191 | 202 |
| 192 TestRenderViewHostFactory::~TestRenderViewHostFactory() { | 203 TestRenderViewHostFactory::~TestRenderViewHostFactory() { |
| 193 RenderViewHostFactory::UnregisterFactory(); | 204 RenderViewHostFactory::UnregisterFactory(); |
| (...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 282 contents_.reset(); | 293 contents_.reset(); |
| 283 | 294 |
| 284 // Make sure that we flush any messages related to TabContents destruction | 295 // Make sure that we flush any messages related to TabContents destruction |
| 285 // before we destroy the profile. | 296 // before we destroy the profile. |
| 286 MessageLoop::current()->RunAllPending(); | 297 MessageLoop::current()->RunAllPending(); |
| 287 | 298 |
| 288 // Release the profile on the UI thread. | 299 // Release the profile on the UI thread. |
| 289 message_loop_.DeleteSoon(FROM_HERE, profile_.release()); | 300 message_loop_.DeleteSoon(FROM_HERE, profile_.release()); |
| 290 message_loop_.RunAllPending(); | 301 message_loop_.RunAllPending(); |
| 291 } | 302 } |
| OLD | NEW |