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

Side by Side Diff: android_webview/native/aw_http_auth_handler.h

Issue 10918248: Added virtual destructor. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 3 months 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_NATIVE_AW_HTTP_AUTH_HANDLER_H_ 5 #ifndef ANDROID_WEBVIEW_NATIVE_AW_HTTP_AUTH_HANDLER_H_
6 #define ANDROID_WEBVIEW_NATIVE_AW_HTTP_AUTH_HANDLER_H_ 6 #define ANDROID_WEBVIEW_NATIVE_AW_HTTP_AUTH_HANDLER_H_
7 7
8 #include <jni.h> 8 #include <jni.h>
9 #include <string> 9 #include <string>
10 10
(...skipping 13 matching lines...) Expand all
24 24
25 namespace android_webview { 25 namespace android_webview {
26 26
27 // Native class for Java class of same name and owns an instance 27 // Native class for Java class of same name and owns an instance
28 // of that Java object. 28 // of that Java object.
29 // One instance of this class is created per underlying AwLoginDelegate. 29 // One instance of this class is created per underlying AwLoginDelegate.
30 class AwHttpAuthHandler : public AwHttpAuthHandlerBase { 30 class AwHttpAuthHandler : public AwHttpAuthHandlerBase {
31 public: 31 public:
32 AwHttpAuthHandler(AwLoginDelegate* login_delegate, 32 AwHttpAuthHandler(AwLoginDelegate* login_delegate,
33 net::AuthChallengeInfo* auth_info); 33 net::AuthChallengeInfo* auth_info);
34 virtual ~AwHttpAuthHandler();
34 35
35 // from AwHttpAuthHandler 36 // from AwHttpAuthHandler
36 virtual void HandleOnUIThread(content::WebContents* web_contents) OVERRIDE; 37 virtual void HandleOnUIThread(content::WebContents* web_contents) OVERRIDE;
37 38
38 void Proceed(JNIEnv* env, jobject obj, jstring username, jstring password); 39 void Proceed(JNIEnv* env, jobject obj, jstring username, jstring password);
39 void Cancel(JNIEnv* env, jobject obj); 40 void Cancel(JNIEnv* env, jobject obj);
40 41
41 private: 42 private:
42 scoped_refptr<AwLoginDelegate> login_delegate_; 43 scoped_refptr<AwLoginDelegate> login_delegate_;
43 base::android::ScopedJavaGlobalRef<jobject> http_auth_handler_; 44 base::android::ScopedJavaGlobalRef<jobject> http_auth_handler_;
44 std::string host_; 45 std::string host_;
45 std::string realm_; 46 std::string realm_;
46 }; 47 };
47 48
48 bool RegisterAwHttpAuthHandler(JNIEnv* env); 49 bool RegisterAwHttpAuthHandler(JNIEnv* env);
49 50
50 } // namespace android_webview 51 } // namespace android_webview
51 52
52 #endif // ANDROID_WEBVIEW_NATIVE_AW_HTTP_AUTH_HANDLER_H_ 53 #endif // ANDROID_WEBVIEW_NATIVE_AW_HTTP_AUTH_HANDLER_H_
OLDNEW
« no previous file with comments | « android_webview/browser/aw_login_delegate.cc ('k') | android_webview/native/aw_http_auth_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698