OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/ui/login/login_handler.h" | 5 #include "chrome/browser/ui/login/login_handler.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 #include "extensions/browser/view_type_utils.h" | 49 #include "extensions/browser/view_type_utils.h" |
50 #endif | 50 #endif |
51 | 51 |
52 #if !defined(OS_ANDROID) | 52 #if !defined(OS_ANDROID) |
53 #include "chrome/browser/ui/blocked_content/app_modal_dialog_helper.h" | 53 #include "chrome/browser/ui/blocked_content/app_modal_dialog_helper.h" |
54 #endif | 54 #endif |
55 | 55 |
56 using autofill::PasswordForm; | 56 using autofill::PasswordForm; |
57 using content::BrowserThread; | 57 using content::BrowserThread; |
58 using content::NavigationController; | 58 using content::NavigationController; |
59 using content::RenderViewHost; | |
60 using content::RenderViewHostDelegate; | |
61 using content::ResourceDispatcherHost; | 59 using content::ResourceDispatcherHost; |
62 using content::ResourceRequestInfo; | 60 using content::ResourceRequestInfo; |
63 using content::WebContents; | 61 using content::WebContents; |
64 | 62 |
65 class LoginHandlerImpl; | 63 class LoginHandlerImpl; |
66 | 64 |
67 namespace { | 65 namespace { |
68 | 66 |
69 // Auth prompt types for UMA. Do not reorder or delete entries; only add to the | 67 // Auth prompt types for UMA. Do not reorder or delete entries; only add to the |
70 // end. | 68 // end. |
(...skipping 589 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
660 bool is_main_frame = | 658 bool is_main_frame = |
661 (request->load_flags() & net::LOAD_MAIN_FRAME_DEPRECATED) != 0; | 659 (request->load_flags() & net::LOAD_MAIN_FRAME_DEPRECATED) != 0; |
662 LoginHandler* handler = LoginHandler::Create(auth_info, request); | 660 LoginHandler* handler = LoginHandler::Create(auth_info, request); |
663 BrowserThread::PostTask( | 661 BrowserThread::PostTask( |
664 BrowserThread::UI, FROM_HERE, | 662 BrowserThread::UI, FROM_HERE, |
665 base::Bind(&LoginHandler::LoginDialogCallback, request->url(), | 663 base::Bind(&LoginHandler::LoginDialogCallback, request->url(), |
666 base::RetainedRef(auth_info), base::RetainedRef(handler), | 664 base::RetainedRef(auth_info), base::RetainedRef(handler), |
667 is_main_frame)); | 665 is_main_frame)); |
668 return handler; | 666 return handler; |
669 } | 667 } |
OLD | NEW |