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

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

Issue 2934004: Try to cut down Browser/TabContents header dependencies. (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: fix unit tests compile Created 10 years, 5 months 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
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/test/test_backing_store.h" 8 #include "chrome/browser/renderer_host/test/test_backing_store.h"
9 #include "chrome/browser/tab_contents/test_tab_contents.h" 9 #include "chrome/browser/tab_contents/test_tab_contents.h"
10 #include "chrome/common/dom_storage_common.h" 10 #include "chrome/common/dom_storage_common.h"
11 #include "chrome/common/render_messages.h" 11 #include "chrome/common/render_messages.h"
12 #include "gfx/rect.h" 12 #include "gfx/rect.h"
13 #include "webkit/glue/webpreferences.h"
13 14
14 using webkit_glue::PasswordForm; 15 using webkit_glue::PasswordForm;
15 16
16 TestRenderViewHost::TestRenderViewHost(SiteInstance* instance, 17 TestRenderViewHost::TestRenderViewHost(SiteInstance* instance,
17 RenderViewHostDelegate* delegate, 18 RenderViewHostDelegate* delegate,
18 int routing_id) 19 int routing_id)
19 : RenderViewHost(instance, delegate, routing_id, 20 : RenderViewHost(instance, delegate, routing_id,
20 kInvalidSessionStorageNamespaceId), 21 kInvalidSessionStorageNamespaceId),
21 render_view_created_(false), 22 render_view_created_(false),
22 delete_counter_(NULL) { 23 delete_counter_(NULL) {
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 contents_.reset(); 168 contents_.reset();
168 169
169 // Make sure that we flush any messages related to TabContents destruction 170 // Make sure that we flush any messages related to TabContents destruction
170 // before we destroy the profile. 171 // before we destroy the profile.
171 MessageLoop::current()->RunAllPending(); 172 MessageLoop::current()->RunAllPending();
172 173
173 // Release the profile on the UI thread. 174 // Release the profile on the UI thread.
174 message_loop_.DeleteSoon(FROM_HERE, profile_.release()); 175 message_loop_.DeleteSoon(FROM_HERE, profile_.release());
175 message_loop_.RunAllPending(); 176 message_loop_.RunAllPending();
176 } 177 }
OLDNEW
« no previous file with comments | « chrome/browser/omnibox_search_hint.cc ('k') | chrome/browser/tab_contents/render_view_context_menu.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698