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 "chrome/common/render_messages_params.h" |
12 #include "gfx/rect.h" | 13 #include "gfx/rect.h" |
13 #include "webkit/glue/webpreferences.h" | 14 #include "webkit/glue/webpreferences.h" |
| 15 #include "webkit/glue/password_form.h" |
14 | 16 |
15 using webkit_glue::PasswordForm; | 17 using webkit_glue::PasswordForm; |
16 | 18 |
17 void InitNavigateParams(ViewHostMsg_FrameNavigate_Params* params, | 19 void InitNavigateParams(ViewHostMsg_FrameNavigate_Params* params, |
18 int page_id, | 20 int page_id, |
19 const GURL& url, | 21 const GURL& url, |
20 PageTransition::Type transition) { | 22 PageTransition::Type transition) { |
21 params->page_id = page_id; | 23 params->page_id = page_id; |
22 params->url = url; | 24 params->url = url; |
23 params->referrer = GURL(); | 25 params->referrer = GURL(); |
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
186 contents_.reset(); | 188 contents_.reset(); |
187 | 189 |
188 // Make sure that we flush any messages related to TabContents destruction | 190 // Make sure that we flush any messages related to TabContents destruction |
189 // before we destroy the profile. | 191 // before we destroy the profile. |
190 MessageLoop::current()->RunAllPending(); | 192 MessageLoop::current()->RunAllPending(); |
191 | 193 |
192 // Release the profile on the UI thread. | 194 // Release the profile on the UI thread. |
193 message_loop_.DeleteSoon(FROM_HERE, profile_.release()); | 195 message_loop_.DeleteSoon(FROM_HERE, profile_.release()); |
194 message_loop_.RunAllPending(); | 196 message_loop_.RunAllPending(); |
195 } | 197 } |
OLD | NEW |