OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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_CONTENTS_CLIENT_BRIDGE_H_ | 5 #ifndef ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_CLIENT_BRIDGE_H_ |
6 #define ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_CLIENT_BRIDGE_H_ | 6 #define ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_CLIENT_BRIDGE_H_ |
7 | 7 |
8 #include <jni.h> | 8 #include <jni.h> |
9 | 9 |
10 #include "android_webview/browser/aw_contents_client_bridge_base.h" | 10 #include "android_webview/browser/aw_contents_client_bridge_base.h" |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 void NewDownload(const GURL& url, | 64 void NewDownload(const GURL& url, |
65 const std::string& user_agent, | 65 const std::string& user_agent, |
66 const std::string& content_disposition, | 66 const std::string& content_disposition, |
67 const std::string& mime_type, | 67 const std::string& mime_type, |
68 int64_t content_length) override; | 68 int64_t content_length) override; |
69 | 69 |
70 void NewLoginRequest(const std::string& realm, | 70 void NewLoginRequest(const std::string& realm, |
71 const std::string& account, | 71 const std::string& account, |
72 const std::string& args) override; | 72 const std::string& args) override; |
73 | 73 |
74 void OnReceivedError(const AwWebResourceRequest& request, | |
75 int error_code) override; | |
76 | |
77 void OnReceivedHttpError(const AwWebResourceRequest& request, | |
78 const scoped_refptr<const net::HttpResponseHeaders>& | |
79 response_headers) override; | |
80 | |
81 // Methods called from Java. | 74 // Methods called from Java. |
82 void ProceedSslError(JNIEnv* env, | 75 void ProceedSslError(JNIEnv* env, |
83 const base::android::JavaRef<jobject>& obj, | 76 const base::android::JavaRef<jobject>& obj, |
84 jboolean proceed, | 77 jboolean proceed, |
85 jint id); | 78 jint id); |
86 void ProvideClientCertificateResponse( | 79 void ProvideClientCertificateResponse( |
87 JNIEnv* env, | 80 JNIEnv* env, |
88 const base::android::JavaRef<jobject>& object, | 81 const base::android::JavaRef<jobject>& object, |
89 jint request_id, | 82 jint request_id, |
90 const base::android::JavaRef<jobjectArray>& encoded_chain_ref, | 83 const base::android::JavaRef<jobjectArray>& encoded_chain_ref, |
(...skipping 18 matching lines...) Expand all Loading... |
109 // doesn't provide Release, so ownership is managed manually. | 102 // doesn't provide Release, so ownership is managed manually. |
110 IDMap<content::ClientCertificateDelegate*> | 103 IDMap<content::ClientCertificateDelegate*> |
111 pending_client_cert_request_delegates_; | 104 pending_client_cert_request_delegates_; |
112 }; | 105 }; |
113 | 106 |
114 bool RegisterAwContentsClientBridge(JNIEnv* env); | 107 bool RegisterAwContentsClientBridge(JNIEnv* env); |
115 | 108 |
116 } // namespace android_webview | 109 } // namespace android_webview |
117 | 110 |
118 #endif // ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_CLIENT_BRIDGE_H_ | 111 #endif // ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_CLIENT_BRIDGE_H_ |
OLD | NEW |