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

Unified Diff: content/shell/browser/shell_content_browser_client.h

Issue 859213006: Cancel client auth requests when not promptable. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@client-auth-cancel-1
Patch Set: worker_common.js was missing a license header (also a rebase) 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 side-by-side diff with in-line comments
Download patch
Index: content/shell/browser/shell_content_browser_client.h
diff --git a/content/shell/browser/shell_content_browser_client.h b/content/shell/browser/shell_content_browser_client.h
index e78062fddb44dc03c7c2391181723a9c3e17d4eb..6360f2c2f369f50a4ccd564a51d2ce46abb0f08c 100644
--- a/content/shell/browser/shell_content_browser_client.h
+++ b/content/shell/browser/shell_content_browser_client.h
@@ -54,6 +54,10 @@ class ShellContentBrowserClient : public ContentBrowserClient {
WebContentsViewDelegate* GetWebContentsViewDelegate(
WebContents* web_contents) override;
QuotaPermissionContext* CreateQuotaPermissionContext() override;
+ void SelectClientCertificate(
+ WebContents* web_contents,
+ net::SSLCertRequestInfo* cert_request_info,
+ scoped_ptr<ClientCertificateDelegate> delegate) override;
void RequestPermission(
PermissionType permission,
WebContents* web_contents,
@@ -94,6 +98,12 @@ class ShellContentBrowserClient : public ContentBrowserClient {
return shell_browser_main_parts_;
}
+ // Used for content_browsertests.
+ void set_select_client_certificate_callback(
+ base::Closure select_client_certificate_callback) {
+ select_client_certificate_callback_ = select_client_certificate_callback;
+ }
+
private:
ShellBrowserContext* ShellBrowserContextForBrowserContext(
BrowserContext* content_browser_context);
@@ -106,6 +116,8 @@ class ShellContentBrowserClient : public ContentBrowserClient {
base::ScopedFD v8_snapshot_fd_;
#endif
+ base::Closure select_client_certificate_callback_;
+
ShellBrowserMainParts* shell_browser_main_parts_;
};
« no previous file with comments | « content/public/browser/content_browser_client.cc ('k') | content/shell/browser/shell_content_browser_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698