Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(19)

Side by Side Diff: android_webview/browser/aw_login_delegate.h

Issue 100453010: Add base:: to string16s in android_webview/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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"
11 #include "base/strings/string16.h" 11 #include "base/strings/string16.h"
12 #include "content/public/browser/resource_dispatcher_host_login_delegate.h" 12 #include "content/public/browser/resource_dispatcher_host_login_delegate.h"
13 13
14 namespace net { 14 namespace net {
15 class AuthChallengeInfo; 15 class AuthChallengeInfo;
16 class URLRequest; 16 class URLRequest;
17 } 17 }
18 18
19 namespace android_webview { 19 namespace android_webview {
20 20
21 class AwLoginDelegate : 21 class AwLoginDelegate :
22 public content::ResourceDispatcherHostLoginDelegate { 22 public content::ResourceDispatcherHostLoginDelegate {
23 public: 23 public:
24 AwLoginDelegate(net::AuthChallengeInfo* auth_info, 24 AwLoginDelegate(net::AuthChallengeInfo* auth_info,
25 net::URLRequest* request); 25 net::URLRequest* request);
26 26
27 virtual void Proceed(const string16& user, const string16& password); 27 virtual void Proceed(const base::string16& user,
28 const base::string16& password);
28 virtual void Cancel(); 29 virtual void Cancel();
29 30
30 // from ResourceDispatcherHostLoginDelegate 31 // from ResourceDispatcherHostLoginDelegate
31 virtual void OnRequestCancelled() OVERRIDE; 32 virtual void OnRequestCancelled() OVERRIDE;
32 33
33 private: 34 private:
34 virtual ~AwLoginDelegate(); 35 virtual ~AwLoginDelegate();
35 void HandleHttpAuthRequestOnUIThread(bool first_auth_attempt); 36 void HandleHttpAuthRequestOnUIThread(bool first_auth_attempt);
36 void CancelOnIOThread(); 37 void CancelOnIOThread();
37 void ProceedOnIOThread(const string16& user, const string16& password); 38 void ProceedOnIOThread(const base::string16& user,
39 const base::string16& password);
38 void DeleteAuthHandlerSoon(); 40 void DeleteAuthHandlerSoon();
39 41
40 scoped_ptr<AwHttpAuthHandlerBase> aw_http_auth_handler_; 42 scoped_ptr<AwHttpAuthHandlerBase> aw_http_auth_handler_;
41 scoped_refptr<net::AuthChallengeInfo> auth_info_; 43 scoped_refptr<net::AuthChallengeInfo> auth_info_;
42 net::URLRequest* request_; 44 net::URLRequest* request_;
43 int render_process_id_; 45 int render_process_id_;
44 int render_view_id_; 46 int render_view_id_;
45 }; 47 };
46 48
47 } // namespace android_webview 49 } // namespace android_webview
48 50
49 #endif // ANDROID_WEBVIEW_BROWSER_AW_LOGIN_DELEGATE_H_ 51 #endif // ANDROID_WEBVIEW_BROWSER_AW_LOGIN_DELEGATE_H_
OLDNEW
« no previous file with comments | « android_webview/browser/aw_javascript_dialog_manager.cc ('k') | android_webview/browser/aw_login_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698