| 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_BROWSER_AW_CONTENTS_CLIENT_BRIDGE_BASE_H_ | 5 #ifndef ANDROID_WEBVIEW_BROWSER_AW_CONTENTS_CLIENT_BRIDGE_BASE_H_ |
| 6 #define ANDROID_WEBVIEW_BROWSER_AW_CONTENTS_CLIENT_BRIDGE_BASE_H_ | 6 #define ANDROID_WEBVIEW_BROWSER_AW_CONTENTS_CLIENT_BRIDGE_BASE_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "android_webview/browser/net/aw_web_resource_request.h" | 10 #include "android_webview/browser/net/aw_web_resource_request.h" |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 net::X509Certificate* cert, | 53 net::X509Certificate* cert, |
| 54 const GURL& request_url, | 54 const GURL& request_url, |
| 55 const base::Callback<void(content::CertificateRequestResultType)>& | 55 const base::Callback<void(content::CertificateRequestResultType)>& |
| 56 callback, | 56 callback, |
| 57 bool* cancel_request) = 0; | 57 bool* cancel_request) = 0; |
| 58 virtual void SelectClientCertificate( | 58 virtual void SelectClientCertificate( |
| 59 net::SSLCertRequestInfo* cert_request_info, | 59 net::SSLCertRequestInfo* cert_request_info, |
| 60 std::unique_ptr<content::ClientCertificateDelegate> delegate) = 0; | 60 std::unique_ptr<content::ClientCertificateDelegate> delegate) = 0; |
| 61 | 61 |
| 62 virtual void RunJavaScriptDialog( | 62 virtual void RunJavaScriptDialog( |
| 63 content::JavaScriptMessageType message_type, | 63 content::JavaScriptDialogType dialog_type, |
| 64 const GURL& origin_url, | 64 const GURL& origin_url, |
| 65 const base::string16& message_text, | 65 const base::string16& message_text, |
| 66 const base::string16& default_prompt_text, | 66 const base::string16& default_prompt_text, |
| 67 const content::JavaScriptDialogManager::DialogClosedCallback& callback) | 67 const content::JavaScriptDialogManager::DialogClosedCallback& |
| 68 = 0; | 68 callback) = 0; |
| 69 | 69 |
| 70 virtual void RunBeforeUnloadDialog( | 70 virtual void RunBeforeUnloadDialog( |
| 71 const GURL& origin_url, | 71 const GURL& origin_url, |
| 72 const content::JavaScriptDialogManager::DialogClosedCallback& callback) | 72 const content::JavaScriptDialogManager::DialogClosedCallback& callback) |
| 73 = 0; | 73 = 0; |
| 74 | 74 |
| 75 virtual bool ShouldOverrideUrlLoading(const base::string16& url, | 75 virtual bool ShouldOverrideUrlLoading(const base::string16& url, |
| 76 bool has_user_gesture, | 76 bool has_user_gesture, |
| 77 bool is_redirect, | 77 bool is_redirect, |
| 78 bool is_main_frame) = 0; | 78 bool is_main_frame) = 0; |
| (...skipping 19 matching lines...) Expand all Loading... |
| 98 // Called when a response from the server is received with status code >= 400. | 98 // Called when a response from the server is received with status code >= 400. |
| 99 virtual void OnReceivedHttpError( | 99 virtual void OnReceivedHttpError( |
| 100 const AwWebResourceRequest& request, | 100 const AwWebResourceRequest& request, |
| 101 const scoped_refptr<const net::HttpResponseHeaders>& | 101 const scoped_refptr<const net::HttpResponseHeaders>& |
| 102 response_headers) = 0; | 102 response_headers) = 0; |
| 103 }; | 103 }; |
| 104 | 104 |
| 105 } // namespace android_webview | 105 } // namespace android_webview |
| 106 | 106 |
| 107 #endif // ANDROID_WEBVIEW_BROWSER_AW_CONTENTS_CLIENT_BRIDGE_BASE_H_ | 107 #endif // ANDROID_WEBVIEW_BROWSER_AW_CONTENTS_CLIENT_BRIDGE_BASE_H_ |
| OLD | NEW |