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

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

Issue 2558223002: Move onReceivedError and onReceivedHttpError out of AwContentsIoThreadClientImpl (Closed)
Patch Set: add move assignment Created 4 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
OLDNEW
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
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
74 // Methods called from Java. 81 // Methods called from Java.
75 void ProceedSslError(JNIEnv* env, 82 void ProceedSslError(JNIEnv* env,
76 const base::android::JavaRef<jobject>& obj, 83 const base::android::JavaRef<jobject>& obj,
77 jboolean proceed, 84 jboolean proceed,
78 jint id); 85 jint id);
79 void ProvideClientCertificateResponse( 86 void ProvideClientCertificateResponse(
80 JNIEnv* env, 87 JNIEnv* env,
81 const base::android::JavaRef<jobject>& object, 88 const base::android::JavaRef<jobject>& object,
82 jint request_id, 89 jint request_id,
83 const base::android::JavaRef<jobjectArray>& encoded_chain_ref, 90 const base::android::JavaRef<jobjectArray>& encoded_chain_ref,
(...skipping 18 matching lines...) Expand all
102 // doesn't provide Release, so ownership is managed manually. 109 // doesn't provide Release, so ownership is managed manually.
103 IDMap<content::ClientCertificateDelegate*> 110 IDMap<content::ClientCertificateDelegate*>
104 pending_client_cert_request_delegates_; 111 pending_client_cert_request_delegates_;
105 }; 112 };
106 113
107 bool RegisterAwContentsClientBridge(JNIEnv* env); 114 bool RegisterAwContentsClientBridge(JNIEnv* env);
108 115
109 } // namespace android_webview 116 } // namespace android_webview
110 117
111 #endif // ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_CLIENT_BRIDGE_H_ 118 #endif // ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_CLIENT_BRIDGE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698