| 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/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" |
| 11 #include "chrome/browser/tab_contents/test_tab_contents.h" | 11 #include "chrome/browser/tab_contents/test_tab_contents.h" |
| 12 #include "chrome/common/dom_storage_common.h" | 12 #include "chrome/common/dom_storage_common.h" |
| 13 #include "chrome/common/render_messages.h" | 13 #include "chrome/common/render_messages.h" |
| 14 #include "chrome/common/render_messages_params.h" | 14 #include "chrome/common/render_messages_params.h" |
| 15 #include "chrome/test/testing_profile.h" | 15 #include "chrome/test/testing_profile.h" |
| 16 #include "gfx/rect.h" | 16 #include "ui/gfx/rect.h" |
| 17 #include "webkit/glue/webpreferences.h" | 17 #include "webkit/glue/webpreferences.h" |
| 18 #include "webkit/glue/password_form.h" | 18 #include "webkit/glue/password_form.h" |
| 19 | 19 |
| 20 using webkit_glue::PasswordForm; | 20 using webkit_glue::PasswordForm; |
| 21 | 21 |
| 22 void InitNavigateParams(ViewHostMsg_FrameNavigate_Params* params, | 22 void InitNavigateParams(ViewHostMsg_FrameNavigate_Params* params, |
| 23 int page_id, | 23 int page_id, |
| 24 const GURL& url, | 24 const GURL& url, |
| 25 PageTransition::Type transition) { | 25 PageTransition::Type transition) { |
| 26 params->page_id = page_id; | 26 params->page_id = page_id; |
| (...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 301 contents_.reset(); | 301 contents_.reset(); |
| 302 | 302 |
| 303 // Make sure that we flush any messages related to TabContents destruction | 303 // Make sure that we flush any messages related to TabContents destruction |
| 304 // before we destroy the profile. | 304 // before we destroy the profile. |
| 305 MessageLoop::current()->RunAllPending(); | 305 MessageLoop::current()->RunAllPending(); |
| 306 | 306 |
| 307 // Release the profile on the UI thread. | 307 // Release the profile on the UI thread. |
| 308 message_loop_.DeleteSoon(FROM_HERE, profile_.release()); | 308 message_loop_.DeleteSoon(FROM_HERE, profile_.release()); |
| 309 message_loop_.RunAllPending(); | 309 message_loop_.RunAllPending(); |
| 310 } | 310 } |
| OLD | NEW |