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 "android_webview/browser/aw_http_auth_handler_base.h" | 8 #include "android_webview/browser/aw_http_auth_handler_base.h" |
9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
(...skipping 17 matching lines...) Expand all Loading... |
28 virtual void Cancel(); | 28 virtual void Cancel(); |
29 | 29 |
30 // from ResourceDispatcherHostLoginDelegate | 30 // from ResourceDispatcherHostLoginDelegate |
31 virtual void OnRequestCancelled() OVERRIDE; | 31 virtual void OnRequestCancelled() OVERRIDE; |
32 | 32 |
33 private: | 33 private: |
34 virtual ~AwLoginDelegate(); | 34 virtual ~AwLoginDelegate(); |
35 void HandleHttpAuthRequestOnUIThread(bool first_auth_attempt); | 35 void HandleHttpAuthRequestOnUIThread(bool first_auth_attempt); |
36 void CancelOnIOThread(); | 36 void CancelOnIOThread(); |
37 void ProceedOnIOThread(const string16& user, const string16& password); | 37 void ProceedOnIOThread(const string16& user, const string16& password); |
| 38 void DeleteAuthHandlerSoon(); |
38 | 39 |
39 scoped_ptr<AwHttpAuthHandlerBase> aw_http_auth_handler_; | 40 scoped_ptr<AwHttpAuthHandlerBase> aw_http_auth_handler_; |
40 scoped_refptr<net::AuthChallengeInfo> auth_info_; | 41 scoped_refptr<net::AuthChallengeInfo> auth_info_; |
41 net::URLRequest* request_; | 42 net::URLRequest* request_; |
42 int render_process_id_; | 43 int render_process_id_; |
43 int render_view_id_; | 44 int render_view_id_; |
44 }; | 45 }; |
45 | 46 |
46 } // namespace android_webview | 47 } // namespace android_webview |
47 | 48 |
48 #endif // ANDROID_WEBVIEW_BROWSER_AW_LOGIN_DELEGATE_H_ | 49 #endif // ANDROID_WEBVIEW_BROWSER_AW_LOGIN_DELEGATE_H_ |
OLD | NEW |