| 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 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 171 } | 171 } |
| 172 | 172 |
| 173 void TestRenderWidgetHostView::AcceleratedSurfaceSetTransportDIB( | 173 void TestRenderWidgetHostView::AcceleratedSurfaceSetTransportDIB( |
| 174 gfx::PluginWindowHandle window, | 174 gfx::PluginWindowHandle window, |
| 175 int32 width, | 175 int32 width, |
| 176 int32 height, | 176 int32 height, |
| 177 TransportDIB::Handle transport_dib) { | 177 TransportDIB::Handle transport_dib) { |
| 178 } | 178 } |
| 179 | 179 |
| 180 void TestRenderWidgetHostView::AcceleratedSurfaceBuffersSwapped( | 180 void TestRenderWidgetHostView::AcceleratedSurfaceBuffersSwapped( |
| 181 gfx::PluginWindowHandle window) { | 181 gfx::PluginWindowHandle window, uint64 surface_id) { |
| 182 } | 182 } |
| 183 | 183 |
| 184 void TestRenderWidgetHostView::GpuRenderingStateDidChange() { | 184 void TestRenderWidgetHostView::GpuRenderingStateDidChange() { |
| 185 } | 185 } |
| 186 #endif | 186 #endif |
| 187 | 187 |
| 188 TestRenderViewHostFactory::TestRenderViewHostFactory( | 188 TestRenderViewHostFactory::TestRenderViewHostFactory( |
| 189 RenderProcessHostFactory* rph_factory) | 189 RenderProcessHostFactory* rph_factory) |
| 190 : render_process_host_factory_(rph_factory) { | 190 : render_process_host_factory_(rph_factory) { |
| 191 RenderViewHostFactory::RegisterFactory(this); | 191 RenderViewHostFactory::RegisterFactory(this); |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 284 contents_.reset(); | 284 contents_.reset(); |
| 285 | 285 |
| 286 // Make sure that we flush any messages related to TabContents destruction | 286 // Make sure that we flush any messages related to TabContents destruction |
| 287 // before we destroy the profile. | 287 // before we destroy the profile. |
| 288 MessageLoop::current()->RunAllPending(); | 288 MessageLoop::current()->RunAllPending(); |
| 289 | 289 |
| 290 // Release the profile on the UI thread. | 290 // Release the profile on the UI thread. |
| 291 message_loop_.DeleteSoon(FROM_HERE, profile_.release()); | 291 message_loop_.DeleteSoon(FROM_HERE, profile_.release()); |
| 292 message_loop_.RunAllPending(); | 292 message_loop_.RunAllPending(); |
| 293 } | 293 } |
| OLD | NEW |