Home | History | Annotate | Download | only in browser
      1 // Copyright (c) 2010 The Chromium Authors. All rights reserved.
      2 // Use of this source code is governed by a BSD-style license that can be
      3 // found in the LICENSE file.
      4 
      5 #ifndef CHROME_BROWSER_SSL_CLIENT_CERTIFICATE_SELECTOR_H_
      6 #define CHROME_BROWSER_SSL_CLIENT_CERTIFICATE_SELECTOR_H_
      7 #pragma once
      8 
      9 class SSLClientAuthHandler;
     10 class TabContents;
     11 
     12 namespace net {
     13 class SSLCertRequestInfo;
     14 }
     15 
     16 namespace browser {
     17 
     18 // Opens a constrained SSL client certificate selection dialog under |parent|,
     19 // offering certificates from |cert_request_info|. When the user has made a
     20 // selection, the dialog will report back to |delegate|. |delegate| is notified
     21 // when the dialog closes in call cases; if the user cancels the dialog, we call
     22 // with a NULL certificate.
     23 //
     24 // Note: constrained dialog currently only implemented on Linux and OS X. On
     25 // Windows, a window-modal dialog will be used.
     26 void ShowSSLClientCertificateSelector(
     27     TabContents* parent,
     28     net::SSLCertRequestInfo* cert_request_info,
     29     SSLClientAuthHandler* delegate);
     30 
     31 }  // namespace browser
     32 
     33 #endif  // CHROME_BROWSER_SSL_CLIENT_CERTIFICATE_SELECTOR_H_
     34