| 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 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 213 gfx::PluginWindowHandle window, | 213 gfx::PluginWindowHandle window, |
| 214 uint64 surface_id, | 214 uint64 surface_id, |
| 215 int renderer_id, | 215 int renderer_id, |
| 216 int32 route_id, | 216 int32 route_id, |
| 217 uint64 swap_buffers_count) { | 217 uint64 swap_buffers_count) { |
| 218 } | 218 } |
| 219 | 219 |
| 220 void TestRenderWidgetHostView::GpuRenderingStateDidChange() { | 220 void TestRenderWidgetHostView::GpuRenderingStateDidChange() { |
| 221 } | 221 } |
| 222 #elif defined(OS_WIN) | 222 #elif defined(OS_WIN) |
| 223 gfx::PluginWindowHandle TestRenderWidgetHostView::GetCompositorHostWindow() { | |
| 224 return gfx::kNullPluginWindow; | |
| 225 } | |
| 226 | |
| 227 void TestRenderWidgetHostView::WillWmDestroy() { | 223 void TestRenderWidgetHostView::WillWmDestroy() { |
| 228 } | 224 } |
| 229 | 225 |
| 230 void TestRenderWidgetHostView::ShowCompositorHostWindow(bool show) { | 226 void TestRenderWidgetHostView::ShowCompositorHostWindow(bool show) { |
| 231 } | 227 } |
| 232 #endif | 228 #endif |
| 233 | 229 |
| 234 bool TestRenderWidgetHostView::ContainsNativeView( | 230 bool TestRenderWidgetHostView::ContainsNativeView( |
| 235 gfx::NativeView native_view) const { | 231 gfx::NativeView native_view) const { |
| 236 return false; | 232 return false; |
| (...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 335 contents_.reset(); | 331 contents_.reset(); |
| 336 | 332 |
| 337 // Make sure that we flush any messages related to TabContents destruction | 333 // Make sure that we flush any messages related to TabContents destruction |
| 338 // before we destroy the profile. | 334 // before we destroy the profile. |
| 339 MessageLoop::current()->RunAllPending(); | 335 MessageLoop::current()->RunAllPending(); |
| 340 | 336 |
| 341 // Release the profile on the UI thread. | 337 // Release the profile on the UI thread. |
| 342 message_loop_.DeleteSoon(FROM_HERE, profile_.release()); | 338 message_loop_.DeleteSoon(FROM_HERE, profile_.release()); |
| 343 message_loop_.RunAllPending(); | 339 message_loop_.RunAllPending(); |
| 344 } | 340 } |
| OLD | NEW |