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

Unified Diff: android_webview/browser/aw_contents_client_bridge_base.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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | android_webview/browser/aw_contents_client_bridge_base.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: android_webview/browser/aw_contents_client_bridge_base.h
diff --git a/android_webview/browser/aw_contents_client_bridge_base.h b/android_webview/browser/aw_contents_client_bridge_base.h
index 65436b6e66647aeb1cad44fee8bb3579b8a19e38..c3834c6170676c297cd819182d6b79ea0f54e410 100644
--- a/android_webview/browser/aw_contents_client_bridge_base.h
+++ b/android_webview/browser/aw_contents_client_bridge_base.h
@@ -10,6 +10,7 @@
#include "base/supports_user_data.h"
#include "content/public/browser/certificate_request_result_type.h"
#include "content/public/browser/javascript_dialog_manager.h"
+#include "content/public/browser/resource_request_info.h"
class GURL;
@@ -37,6 +38,9 @@ class AwContentsClientBridgeBase {
AwContentsClientBridgeBase* handler);
static AwContentsClientBridgeBase* FromWebContents(
content::WebContents* web_contents);
+ static AwContentsClientBridgeBase* FromWebContentsGetter(
+ const content::ResourceRequestInfo::WebContentsGetter&
+ web_contents_getter);
static AwContentsClientBridgeBase* FromID(int render_process_id,
int render_frame_id);
@@ -76,6 +80,13 @@ class AwContentsClientBridgeBase {
const std::string& content_disposition,
const std::string& mime_type,
int64_t content_length) = 0;
+
+ // Called when a new login request is detected. See the documentation for
+ // WebViewClient.onReceivedLoginRequest for arguments. Note that |account|
+ // may be empty.
+ virtual void NewLoginRequest(const std::string& realm,
+ const std::string& account,
+ const std::string& args) = 0;
};
} // namespace android_webview
« no previous file with comments | « no previous file | android_webview/browser/aw_contents_client_bridge_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698