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