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

Side by Side Diff: android_webview/browser/aw_contents_io_thread_client.h

Issue 1001003004: [Android WebView] Implement a better OnReceivedError callback (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Restored empty line Created 5 years, 9 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
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_BROWSER_AW_CONTENTS_IO_THREAD_CLIENT_H_ 5 #ifndef ANDROID_WEBVIEW_BROWSER_AW_CONTENTS_IO_THREAD_CLIENT_H_
6 #define ANDROID_WEBVIEW_BROWSER_AW_CONTENTS_IO_THREAD_CLIENT_H_ 6 #define ANDROID_WEBVIEW_BROWSER_AW_CONTENTS_IO_THREAD_CLIENT_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 const std::string& mime_type, 97 const std::string& mime_type,
98 int64 content_length) = 0; 98 int64 content_length) = 0;
99 99
100 // Called when a new login request is detected. See the documentation for 100 // Called when a new login request is detected. See the documentation for
101 // WebViewClient.onReceivedLoginRequest for arguments. Note that |account| 101 // WebViewClient.onReceivedLoginRequest for arguments. Note that |account|
102 // may be empty. 102 // may be empty.
103 virtual void NewLoginRequest(const std::string& realm, 103 virtual void NewLoginRequest(const std::string& realm,
104 const std::string& account, 104 const std::string& account,
105 const std::string& args) = 0; 105 const std::string& args) = 0;
106 106
107 // Called when a resource loading error has occured (e.g. an I/O error,
108 // host name lookup failure etc.)
109 virtual void OnReceivedError(const net::URLRequest* request) = 0;
110
107 // Called when a response from the server is received with status code >= 400. 111 // Called when a response from the server is received with status code >= 400.
108 virtual void OnReceivedHttpError( 112 virtual void OnReceivedHttpError(
109 const net::URLRequest* request, 113 const net::URLRequest* request,
110 const net::HttpResponseHeaders* response_headers) = 0; 114 const net::HttpResponseHeaders* response_headers) = 0;
111 }; 115 };
112 116
113 } // namespace android_webview 117 } // namespace android_webview
114 118
115 #endif // ANDROID_WEBVIEW_BROWSER_AW_CONTENTS_IO_THREAD_CLIENT_H_ 119 #endif // ANDROID_WEBVIEW_BROWSER_AW_CONTENTS_IO_THREAD_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698