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

Unified Diff: chrome/browser/ssl/ssl_client_auth_requestor_mock.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: chrome/browser/ssl/ssl_client_auth_requestor_mock.h
diff --git a/chrome/browser/ssl/ssl_client_auth_requestor_mock.h b/chrome/browser/ssl/ssl_client_auth_requestor_mock.h
index 7d63a7c8224349108b38aba4a501d9d856e70c2f..6801d1a04961f360fcd648bedcf0e7b5b5025bee 100644
--- a/chrome/browser/ssl/ssl_client_auth_requestor_mock.h
+++ b/chrome/browser/ssl/ssl_client_auth_requestor_mock.h
@@ -6,8 +6,13 @@
#define CHROME_BROWSER_SSL_SSL_CLIENT_AUTH_REQUESTOR_MOCK_H_
#include "base/memory/ref_counted.h"
+#include "base/memory/scoped_ptr.h"
#include "testing/gmock/include/gmock/gmock.h"
+namespace content {
+class ClientCertificateDelegate;
+}
+
namespace net {
class HttpNetworkSession;
class SSLCertRequestInfo;
@@ -22,7 +27,10 @@ class SSLClientAuthRequestorMock
net::URLRequest* request,
const scoped_refptr<net::SSLCertRequestInfo>& cert_request_info);
+ scoped_ptr<content::ClientCertificateDelegate> CreateDelegate();
+
MOCK_METHOD1(CertificateSelected, void(net::X509Certificate* cert));
+ MOCK_METHOD0(CancelCertificateSelection, void());
scoped_refptr<net::SSLCertRequestInfo> cert_request_info_;
« no previous file with comments | « chrome/browser/ssl/ssl_client_auth_observer.cc ('k') | chrome/browser/ssl/ssl_client_auth_requestor_mock.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698