Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(599)

Side by Side Diff: chrome/browser/renderer_host/test/test_render_view_host.cc

Issue 5273011: An experimental fix for Bug 64726... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 10 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/browser/renderer_host/test/test_render_view_host.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 98
99 ViewHostMsg_FrameNavigate msg(1, params); 99 ViewHostMsg_FrameNavigate msg(1, params);
100 OnMsgNavigate(msg); 100 OnMsgNavigate(msg);
101 } 101 }
102 102
103 TestRenderWidgetHostView::TestRenderWidgetHostView(RenderWidgetHost* rwh) 103 TestRenderWidgetHostView::TestRenderWidgetHostView(RenderWidgetHost* rwh)
104 : rwh_(rwh), 104 : rwh_(rwh),
105 is_showing_(false) { 105 is_showing_(false) {
106 } 106 }
107 107
108 TestRenderWidgetHostView::~TestRenderWidgetHostView() {
109 }
110
108 gfx::Rect TestRenderWidgetHostView::GetViewBounds() const { 111 gfx::Rect TestRenderWidgetHostView::GetViewBounds() const {
109 return gfx::Rect(); 112 return gfx::Rect();
110 } 113 }
111 114
112 BackingStore* TestRenderWidgetHostView::AllocBackingStore( 115 BackingStore* TestRenderWidgetHostView::AllocBackingStore(
113 const gfx::Size& size) { 116 const gfx::Size& size) {
114 return new TestBackingStore(rwh_, size); 117 return new TestBackingStore(rwh_, size);
115 } 118 }
116 119
117 #if defined(OS_MACOSX) 120 #if defined(OS_MACOSX)
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after
293 contents_.reset(); 296 contents_.reset();
294 297
295 // Make sure that we flush any messages related to TabContents destruction 298 // Make sure that we flush any messages related to TabContents destruction
296 // before we destroy the profile. 299 // before we destroy the profile.
297 MessageLoop::current()->RunAllPending(); 300 MessageLoop::current()->RunAllPending();
298 301
299 // Release the profile on the UI thread. 302 // Release the profile on the UI thread.
300 message_loop_.DeleteSoon(FROM_HERE, profile_.release()); 303 message_loop_.DeleteSoon(FROM_HERE, profile_.release());
301 message_loop_.RunAllPending(); 304 message_loop_.RunAllPending();
302 } 305 }
OLDNEW
« no previous file with comments | « chrome/browser/renderer_host/test/test_render_view_host.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698