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 ANDROID_WEBVIEW_BROWSER_AW_LOGIN_DELEGATE_H_ | 5 #ifndef ANDROID_WEBVIEW_BROWSER_AW_LOGIN_DELEGATE_H_ |
6 #define ANDROID_WEBVIEW_BROWSER_AW_LOGIN_DELEGATE_H_ | 6 #define ANDROID_WEBVIEW_BROWSER_AW_LOGIN_DELEGATE_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 | 9 |
10 #include "android_webview/browser/aw_http_auth_handler_base.h" | 10 #include "android_webview/browser/aw_http_auth_handler.h" |
11 #include "base/memory/ref_counted.h" | 11 #include "base/memory/ref_counted.h" |
12 #include "base/strings/string16.h" | 12 #include "base/strings/string16.h" |
13 #include "content/public/browser/resource_dispatcher_host_login_delegate.h" | 13 #include "content/public/browser/resource_dispatcher_host_login_delegate.h" |
14 | 14 |
15 namespace net { | 15 namespace net { |
16 class AuthChallengeInfo; | 16 class AuthChallengeInfo; |
17 class URLRequest; | 17 class URLRequest; |
18 } | 18 } |
19 | 19 |
20 namespace android_webview { | 20 namespace android_webview { |
(...skipping 12 matching lines...) Expand all Loading... |
33 void OnRequestCancelled() override; | 33 void OnRequestCancelled() override; |
34 | 34 |
35 private: | 35 private: |
36 ~AwLoginDelegate() override; | 36 ~AwLoginDelegate() override; |
37 void HandleHttpAuthRequestOnUIThread(bool first_auth_attempt); | 37 void HandleHttpAuthRequestOnUIThread(bool first_auth_attempt); |
38 void CancelOnIOThread(); | 38 void CancelOnIOThread(); |
39 void ProceedOnIOThread(const base::string16& user, | 39 void ProceedOnIOThread(const base::string16& user, |
40 const base::string16& password); | 40 const base::string16& password); |
41 void DeleteAuthHandlerSoon(); | 41 void DeleteAuthHandlerSoon(); |
42 | 42 |
43 std::unique_ptr<AwHttpAuthHandlerBase> aw_http_auth_handler_; | 43 std::unique_ptr<AwHttpAuthHandler> aw_http_auth_handler_; |
44 scoped_refptr<net::AuthChallengeInfo> auth_info_; | 44 scoped_refptr<net::AuthChallengeInfo> auth_info_; |
45 net::URLRequest* request_; | 45 net::URLRequest* request_; |
46 int render_process_id_; | 46 int render_process_id_; |
47 int render_frame_id_; | 47 int render_frame_id_; |
48 }; | 48 }; |
49 | 49 |
50 } // namespace android_webview | 50 } // namespace android_webview |
51 | 51 |
52 #endif // ANDROID_WEBVIEW_BROWSER_AW_LOGIN_DELEGATE_H_ | 52 #endif // ANDROID_WEBVIEW_BROWSER_AW_LOGIN_DELEGATE_H_ |
OLD | NEW |