OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_UI_VIEWS_PLATFORM_KEYS_CERTIFICATE_SELECTOR_CHROMEOS_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_PLATFORM_KEYS_CERTIFICATE_SELECTOR_CHROMEOS_H_ |
6 #define CHROME_BROWSER_UI_VIEWS_PLATFORM_KEYS_CERTIFICATE_SELECTOR_CHROMEOS_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_PLATFORM_KEYS_CERTIFICATE_SELECTOR_CHROMEOS_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
(...skipping 19 matching lines...) Expand all Loading... |
30 PlatformKeysCertificateSelector(const net::CertificateList& certificates, | 30 PlatformKeysCertificateSelector(const net::CertificateList& certificates, |
31 const std::string& extension_name, | 31 const std::string& extension_name, |
32 const CertificateSelectedCallback& callback, | 32 const CertificateSelectedCallback& callback, |
33 content::WebContents* web_contents); | 33 content::WebContents* web_contents); |
34 ~PlatformKeysCertificateSelector() override; | 34 ~PlatformKeysCertificateSelector() override; |
35 | 35 |
36 void Init(); | 36 void Init(); |
37 | 37 |
38 // chrome::CertificateSelector: | 38 // chrome::CertificateSelector: |
39 bool Cancel() override; | 39 bool Cancel() override; |
40 bool Accept() override; | 40 void AcceptCertificate( |
| 41 std::unique_ptr<net::ClientCertIdentity> identity) override; |
41 | 42 |
42 private: | 43 private: |
43 const std::string extension_name_; | 44 const std::string extension_name_; |
44 | 45 |
45 // Will be reset to null after it was run. | 46 // Will be reset to null after it was run. |
46 CertificateSelectedCallback callback_; | 47 CertificateSelectedCallback callback_; |
47 | 48 |
48 DISALLOW_COPY_AND_ASSIGN(PlatformKeysCertificateSelector); | 49 DISALLOW_COPY_AND_ASSIGN(PlatformKeysCertificateSelector); |
49 }; | 50 }; |
50 | 51 |
51 } // namespace chromeos | 52 } // namespace chromeos |
52 | 53 |
53 #endif // CHROME_BROWSER_UI_VIEWS_PLATFORM_KEYS_CERTIFICATE_SELECTOR_CHROMEOS_H
_ | 54 #endif // CHROME_BROWSER_UI_VIEWS_PLATFORM_KEYS_CERTIFICATE_SELECTOR_CHROMEOS_H
_ |
OLD | NEW |