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