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

Side by Side Diff: android_webview/browser/aw_contents_client_bridge_base.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
« no previous file with comments | « android_webview/BUILD.gn ('k') | android_webview/browser/aw_contents_io_thread_client.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_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 "base/supports_user_data.h" 11 #include "base/supports_user_data.h"
11 #include "content/public/browser/certificate_request_result_type.h" 12 #include "content/public/browser/certificate_request_result_type.h"
12 #include "content/public/browser/javascript_dialog_manager.h" 13 #include "content/public/browser/javascript_dialog_manager.h"
13 #include "content/public/browser/resource_request_info.h" 14 #include "content/public/browser/resource_request_info.h"
15 #include "net/http/http_response_headers.h"
14 16
15 class GURL; 17 class GURL;
16 18
17 namespace content { 19 namespace content {
18 class ClientCertificateDelegate; 20 class ClientCertificateDelegate;
19 class WebContents; 21 class WebContents;
20 } 22 }
21 23
22 namespace net { 24 namespace net {
23 class SSLCertRequestInfo; 25 class SSLCertRequestInfo;
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 const std::string& content_disposition, 82 const std::string& content_disposition,
81 const std::string& mime_type, 83 const std::string& mime_type,
82 int64_t content_length) = 0; 84 int64_t content_length) = 0;
83 85
84 // Called when a new login request is detected. See the documentation for 86 // Called when a new login request is detected. See the documentation for
85 // WebViewClient.onReceivedLoginRequest for arguments. Note that |account| 87 // WebViewClient.onReceivedLoginRequest for arguments. Note that |account|
86 // may be empty. 88 // may be empty.
87 virtual void NewLoginRequest(const std::string& realm, 89 virtual void NewLoginRequest(const std::string& realm,
88 const std::string& account, 90 const std::string& account,
89 const std::string& args) = 0; 91 const std::string& args) = 0;
92
93 // Called when a resource loading error has occured (e.g. an I/O error,
94 // host name lookup failure etc.)
95 virtual void OnReceivedError(const AwWebResourceRequest& request,
96 int error_code) = 0;
97
98 // Called when a response from the server is received with status code >= 400.
99 virtual void OnReceivedHttpError(
100 const AwWebResourceRequest& request,
101 const scoped_refptr<const net::HttpResponseHeaders>&
102 response_headers) = 0;
90 }; 103 };
91 104
92 } // namespace android_webview 105 } // namespace android_webview
93 106
94 #endif // ANDROID_WEBVIEW_BROWSER_AW_CONTENTS_CLIENT_BRIDGE_BASE_H_ 107 #endif // ANDROID_WEBVIEW_BROWSER_AW_CONTENTS_CLIENT_BRIDGE_BASE_H_
OLDNEW
« no previous file with comments | « android_webview/BUILD.gn ('k') | android_webview/browser/aw_contents_io_thread_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698