#include "content/public/browser/notification_registrar.h"
namespace net {
-class HttpNetworkSession;
class SSLCertRequestInfo;
class X509Certificate;
}
+namespace content {
+class BrowserContext;
+}
+
class SSLClientAuthObserver : public content::NotificationObserver {
public:
SSLClientAuthObserver(
- const net::HttpNetworkSession* network_session,
+ const content::BrowserContext* browser_context,
const scoped_refptr<net::SSLCertRequestInfo>& cert_request_info,
const base::Callback<void(net::X509Certificate*)>& callback);
- virtual ~SSLClientAuthObserver();
+ ~SSLClientAuthObserver() override;
// UI should implement this to close the dialog.
virtual void OnCertSelectedByNotification() = 0;
private:
// content::NotificationObserver implementation:
- virtual void Observe(int type,
- const content::NotificationSource& source,
- const content::NotificationDetails& details) OVERRIDE;
+ void Observe(int type,
+ const content::NotificationSource& source,
+ const content::NotificationDetails& details) override;
- const net::HttpNetworkSession* network_session_;
+ const content::BrowserContext* browser_context_;
scoped_refptr<net::SSLCertRequestInfo> cert_request_info_;
base::Callback<void(net::X509Certificate*)> callback_;
content::NotificationRegistrar notification_registrar_;