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 #ifndef CHROME_BROWSER_UI_LOGIN_LOGIN_HANDLER_H_ | 5 #ifndef CHROME_BROWSER_UI_LOGIN_LOGIN_HANDLER_H_ |
6 #define CHROME_BROWSER_UI_LOGIN_LOGIN_HANDLER_H_ | 6 #define CHROME_BROWSER_UI_LOGIN_LOGIN_HANDLER_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 #include <string> | 9 #include <string> |
10 | 10 |
11 #include "base/gtest_prod_util.h" | 11 #include "base/gtest_prod_util.h" |
12 #include "base/macros.h" | 12 #include "base/macros.h" |
13 #include "base/memory/weak_ptr.h" | 13 #include "base/memory/weak_ptr.h" |
14 #include "base/synchronization/lock.h" | 14 #include "base/synchronization/lock.h" |
15 #include "components/password_manager/core/browser/password_manager.h" | 15 #include "components/password_manager/core/browser/password_manager.h" |
16 #include "content/public/browser/notification_observer.h" | 16 #include "content/public/browser/notification_observer.h" |
17 #include "content/public/browser/resource_dispatcher_host_login_delegate.h" | 17 #include "content/public/browser/resource_dispatcher_host_login_delegate.h" |
18 #include "content/public/browser/resource_request_info.h" | 18 #include "content/public/browser/resource_request_info.h" |
19 | 19 |
20 class AppModalDialogHelper; | 20 class AppModalDialogHelper; |
21 class GURL; | 21 class GURL; |
22 class LoginInterstitialDelegate; | 22 class LoginInterstitialDelegate; |
23 | 23 |
24 namespace content { | 24 namespace content { |
25 class RenderViewHostDelegate; | |
26 class NotificationRegistrar; | 25 class NotificationRegistrar; |
27 class WebContents; | 26 class WebContents; |
28 } // namespace content | 27 } // namespace content |
29 | 28 |
30 namespace net { | 29 namespace net { |
31 class AuthChallengeInfo; | 30 class AuthChallengeInfo; |
32 class HttpNetworkSession; | 31 class HttpNetworkSession; |
33 class URLRequest; | 32 class URLRequest; |
34 } // namespace net | 33 } // namespace net |
35 | 34 |
(...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
298 // on the main UI thread via a call to UI loop's InvokeLater, and will send the | 297 // on the main UI thread via a call to UI loop's InvokeLater, and will send the |
299 // credentials back to the net::URLRequest on the calling thread. | 298 // credentials back to the net::URLRequest on the calling thread. |
300 // A LoginHandler object (which lives on the calling thread) is returned, | 299 // A LoginHandler object (which lives on the calling thread) is returned, |
301 // which can be used to set or cancel authentication programmatically. The | 300 // which can be used to set or cancel authentication programmatically. The |
302 // caller must invoke OnRequestCancelled() on this LoginHandler before | 301 // caller must invoke OnRequestCancelled() on this LoginHandler before |
303 // destroying the net::URLRequest. | 302 // destroying the net::URLRequest. |
304 LoginHandler* CreateLoginPrompt(net::AuthChallengeInfo* auth_info, | 303 LoginHandler* CreateLoginPrompt(net::AuthChallengeInfo* auth_info, |
305 net::URLRequest* request); | 304 net::URLRequest* request); |
306 | 305 |
307 #endif // CHROME_BROWSER_UI_LOGIN_LOGIN_HANDLER_H_ | 306 #endif // CHROME_BROWSER_UI_LOGIN_LOGIN_HANDLER_H_ |
OLD | NEW |