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

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

Issue 927293002: platformKeys: Hook up the certificate selection dialog to selectClientCertificates. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@cert_perms
Patch Set: Addressed Bartosz's and Mike's comments. Created 5 years, 10 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_UI_VIEWS_PLATFORM_KEYS_CERTIFICATE_SELECTOR_CHROMEOS_H_
6 #define CHROME_BROWSER_UI_VIEWS_PLATFORM_KEYS_CERTIFICATE_SELECTOR_CHROMEOS_H_
7
8 #include <string>
9
10 #include "base/callback.h"
bartfab (slow) 2015/02/20 12:49:19 Nit: Not used.
pneubeck (no reviews) 2015/02/20 14:25:21 Done.
11 #include "base/macros.h"
12 #include "base/memory/ref_counted.h"
bartfab (slow) 2015/02/20 12:49:19 Nit: This is used in the implementation file only
pneubeck (no reviews) 2015/02/20 14:25:21 Done.
13 #include "chrome/browser/ui/platform_keys_certificate_selector_chromeos.h"
14 #include "chrome/browser/ui/views/certificate_selector.h"
15 #include "net/cert/x509_certificate.h"
16
17 // Chrome should access this certificate selector only through the interface
18 // chrome/browser/ui/platform_keys_certificate_selector_chromeos.h .
19
20 namespace content {
21 class WebContents;
22 }
23
24 namespace chromeos {
25
26 // A certificate selector dialog that explains to the user that an extension
27 // requests access to certificates.
28 class PlatformKeysCertificateSelector : public chrome::CertificateSelector {
29 public:
30 PlatformKeysCertificateSelector(const net::CertificateList& certificates,
31 const std::string& extension_name,
32 const CertificateSelectedCallback& callback,
33 content::WebContents* web_contents);
34 ~PlatformKeysCertificateSelector() override;
35
36 void InitAndShow();
37
38 // chrome::CertificateSelector:
39 bool Cancel() override;
40 bool Accept() override;
41
42 private:
43 const std::string extension_name_;
44 const CertificateSelectedCallback callback_;
45
46 DISALLOW_COPY_AND_ASSIGN(PlatformKeysCertificateSelector);
47 };
48
49 } // namespace chromeos
50
51 #endif // CHROME_BROWSER_UI_VIEWS_PLATFORM_KEYS_CERTIFICATE_SELECTOR_CHROMEOS_H _
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698