OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/browser_url_handler.h" | 5 #include "chrome/browser/browser_url_handler.h" |
6 #include "chrome/test/testing_profile.h" | 6 #include "chrome/test/testing_profile.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 224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
235 void TestRenderWidgetHostView::GpuRenderingStateDidChange() { | 235 void TestRenderWidgetHostView::GpuRenderingStateDidChange() { |
236 } | 236 } |
237 #elif defined(OS_WIN) | 237 #elif defined(OS_WIN) |
238 void TestRenderWidgetHostView::WillWmDestroy() { | 238 void TestRenderWidgetHostView::WillWmDestroy() { |
239 } | 239 } |
240 | 240 |
241 void TestRenderWidgetHostView::ShowCompositorHostWindow(bool show) { | 241 void TestRenderWidgetHostView::ShowCompositorHostWindow(bool show) { |
242 } | 242 } |
243 #endif | 243 #endif |
244 | 244 |
245 gfx::PluginWindowHandle TestRenderWidgetHostView::AcquireCompositingSurface() { | 245 gfx::PluginWindowHandle TestRenderWidgetHostView::GetCompositingSurface() { |
246 return gfx::kNullPluginWindow; | 246 return gfx::kNullPluginWindow; |
247 } | 247 } |
248 | 248 |
249 bool TestRenderWidgetHostView::ContainsNativeView( | 249 bool TestRenderWidgetHostView::ContainsNativeView( |
250 gfx::NativeView native_view) const { | 250 gfx::NativeView native_view) const { |
251 return false; | 251 return false; |
252 } | 252 } |
253 | 253 |
254 TestRenderViewHostFactory::TestRenderViewHostFactory( | 254 TestRenderViewHostFactory::TestRenderViewHostFactory( |
255 RenderProcessHostFactory* rph_factory) | 255 RenderProcessHostFactory* rph_factory) |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
354 SetContents(NULL); | 354 SetContents(NULL); |
355 | 355 |
356 // Make sure that we flush any messages related to TabContents destruction | 356 // Make sure that we flush any messages related to TabContents destruction |
357 // before we destroy the profile. | 357 // before we destroy the profile. |
358 MessageLoop::current()->RunAllPending(); | 358 MessageLoop::current()->RunAllPending(); |
359 | 359 |
360 // Release the profile on the UI thread. | 360 // Release the profile on the UI thread. |
361 message_loop_.DeleteSoon(FROM_HERE, profile_.release()); | 361 message_loop_.DeleteSoon(FROM_HERE, profile_.release()); |
362 message_loop_.RunAllPending(); | 362 message_loop_.RunAllPending(); |
363 } | 363 } |
OLD | NEW |