Update To 11.40.268.0
[platform/framework/web/crosswalk.git] / src / chrome / browser / ssl / ssl_client_auth_observer.h
index 990dbf1..62e3fde 100644 (file)
 #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;
@@ -48,11 +51,11 @@ class SSLClientAuthObserver : public content::NotificationObserver {
 
  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_;