OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CHROME_BROWSER_SSL_SSL_TAB_HELPER_H_ | 5 #ifndef CHROME_BROWSER_SSL_SSL_TAB_HELPER_H_ |
6 #define CHROME_BROWSER_SSL_SSL_TAB_HELPER_H_ | 6 #define CHROME_BROWSER_SSL_SSL_TAB_HELPER_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 | 9 |
10 #include "base/callback_forward.h" | 10 #include "base/callback_forward.h" |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 | 52 |
53 // Displays a dialog for selecting a client certificate and returns it to | 53 // Displays a dialog for selecting a client certificate and returns it to |
54 // the |handler|. | 54 // the |handler|. |
55 void ShowClientCertificateRequestDialog( | 55 void ShowClientCertificateRequestDialog( |
56 const net::HttpNetworkSession* network_session, | 56 const net::HttpNetworkSession* network_session, |
57 net::SSLCertRequestInfo* cert_request_info, | 57 net::SSLCertRequestInfo* cert_request_info, |
58 const base::Callback<void(net::X509Certificate*)>& callback); | 58 const base::Callback<void(net::X509Certificate*)>& callback); |
59 | 59 |
60 private: | 60 private: |
61 explicit SSLTabHelper(content::WebContents* contents); | 61 explicit SSLTabHelper(content::WebContents* contents); |
62 static int kUserDataKey; | |
63 friend class WebContentsUserData<SSLTabHelper>; | 62 friend class WebContentsUserData<SSLTabHelper>; |
64 | 63 |
65 content::WebContents* web_contents_; | 64 content::WebContents* web_contents_; |
66 | 65 |
67 class SSLAddCertData; | 66 class SSLAddCertData; |
68 std::map<int, linked_ptr<SSLAddCertData> > request_id_to_add_cert_data_; | 67 std::map<int, linked_ptr<SSLAddCertData> > request_id_to_add_cert_data_; |
69 | 68 |
70 SSLAddCertData* GetAddCertData(SSLAddCertHandler* handler); | 69 SSLAddCertData* GetAddCertData(SSLAddCertHandler* handler); |
71 | 70 |
72 DISALLOW_COPY_AND_ASSIGN(SSLTabHelper); | 71 DISALLOW_COPY_AND_ASSIGN(SSLTabHelper); |
73 }; | 72 }; |
74 | 73 |
75 #endif // CHROME_BROWSER_SSL_SSL_TAB_HELPER_H_ | 74 #endif // CHROME_BROWSER_SSL_SSL_TAB_HELPER_H_ |
OLD | NEW |