| 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/browser_url_handler.h" | 5 #include "chrome/browser/browser_url_handler.h" |
| 6 #include "chrome/common/render_messages.h" | |
| 7 #include "chrome/common/render_messages_params.h" | |
| 8 #include "chrome/test/testing_profile.h" | 6 #include "chrome/test/testing_profile.h" |
| 9 #include "content/browser/renderer_host/test_backing_store.h" | 7 #include "content/browser/renderer_host/test_backing_store.h" |
| 10 #include "content/browser/renderer_host/test_render_view_host.h" | 8 #include "content/browser/renderer_host/test_render_view_host.h" |
| 11 #include "content/browser/site_instance.h" | 9 #include "content/browser/site_instance.h" |
| 12 #include "content/browser/tab_contents/navigation_controller.h" | 10 #include "content/browser/tab_contents/navigation_controller.h" |
| 13 #include "content/browser/tab_contents/test_tab_contents.h" | 11 #include "content/browser/tab_contents/test_tab_contents.h" |
| 14 #include "content/common/content_client.h" | 12 #include "content/common/content_client.h" |
| 15 #include "content/common/dom_storage_common.h" | 13 #include "content/common/dom_storage_common.h" |
| 14 #include "content/common/view_messages.h" |
| 16 #include "ui/gfx/rect.h" | 15 #include "ui/gfx/rect.h" |
| 17 #include "webkit/glue/webkit_glue.h" | 16 #include "webkit/glue/webkit_glue.h" |
| 18 #include "webkit/glue/webpreferences.h" | 17 #include "webkit/glue/webpreferences.h" |
| 19 #include "webkit/glue/password_form.h" | 18 #include "webkit/glue/password_form.h" |
| 20 | 19 |
| 21 using webkit_glue::PasswordForm; | 20 using webkit_glue::PasswordForm; |
| 22 | 21 |
| 23 void InitNavigateParams(ViewHostMsg_FrameNavigate_Params* params, | 22 void InitNavigateParams(ViewHostMsg_FrameNavigate_Params* params, |
| 24 int page_id, | 23 int page_id, |
| 25 const GURL& url, | 24 const GURL& url, |
| (...skipping 323 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 349 contents_.reset(); | 348 contents_.reset(); |
| 350 | 349 |
| 351 // Make sure that we flush any messages related to TabContents destruction | 350 // Make sure that we flush any messages related to TabContents destruction |
| 352 // before we destroy the profile. | 351 // before we destroy the profile. |
| 353 MessageLoop::current()->RunAllPending(); | 352 MessageLoop::current()->RunAllPending(); |
| 354 | 353 |
| 355 // Release the profile on the UI thread. | 354 // Release the profile on the UI thread. |
| 356 message_loop_.DeleteSoon(FROM_HERE, profile_.release()); | 355 message_loop_.DeleteSoon(FROM_HERE, profile_.release()); |
| 357 message_loop_.RunAllPending(); | 356 message_loop_.RunAllPending(); |
| 358 } | 357 } |
| OLD | NEW |