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

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

Issue 2437423002: Move NewLoginRequest plumbing to AwContentsClientBridge (Closed)
Patch Set: Created 4 years, 2 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 <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 // This method is called on the IO thread only. 91 // This method is called on the IO thread only.
92 virtual bool ShouldBlockFileUrls() const = 0; 92 virtual bool ShouldBlockFileUrls() const = 0;
93 93
94 // Retrieve the BlockNetworkLoads setting value of this AwContents. 94 // Retrieve the BlockNetworkLoads setting value of this AwContents.
95 // This method is called on the IO thread only. 95 // This method is called on the IO thread only.
96 virtual bool ShouldBlockNetworkLoads() const = 0; 96 virtual bool ShouldBlockNetworkLoads() const = 0;
97 97
98 // Retrieve the AcceptThirdPartyCookies setting value of this AwContents. 98 // Retrieve the AcceptThirdPartyCookies setting value of this AwContents.
99 virtual bool ShouldAcceptThirdPartyCookies() const = 0; 99 virtual bool ShouldAcceptThirdPartyCookies() const = 0;
100 100
101 // Called when a new login request is detected. See the documentation for
102 // WebViewClient.onReceivedLoginRequest for arguments. Note that |account|
103 // may be empty.
104 virtual void NewLoginRequest(const std::string& realm,
105 const std::string& account,
106 const std::string& args) = 0;
107
108 // Called when a resource loading error has occured (e.g. an I/O error, 101 // Called when a resource loading error has occured (e.g. an I/O error,
109 // host name lookup failure etc.) 102 // host name lookup failure etc.)
110 virtual void OnReceivedError(const net::URLRequest* request) = 0; 103 virtual void OnReceivedError(const net::URLRequest* request) = 0;
111 104
112 // Called when a response from the server is received with status code >= 400. 105 // Called when a response from the server is received with status code >= 400.
113 virtual void OnReceivedHttpError( 106 virtual void OnReceivedHttpError(
114 const net::URLRequest* request, 107 const net::URLRequest* request,
115 const net::HttpResponseHeaders* response_headers) = 0; 108 const net::HttpResponseHeaders* response_headers) = 0;
116 }; 109 };
117 110
118 } // namespace android_webview 111 } // namespace android_webview
119 112
120 #endif // ANDROID_WEBVIEW_BROWSER_AW_CONTENTS_IO_THREAD_CLIENT_H_ 113 #endif // ANDROID_WEBVIEW_BROWSER_AW_CONTENTS_IO_THREAD_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698