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/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 Loading... |
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 } |
OLD | NEW |