Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(24)

Side by Side Diff: chrome/browser/ui/views/platform_keys_certificate_selector_chromeos.h

Issue 2898573002: Refactor client cert private key handling. (Closed)
Patch Set: removed no longer needed forward declaration Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 _
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698