Chromium Code Reviews| OLD | NEW |
|---|---|
| (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_PLATFORM_KEYS_CERTIFICATE_SELECTOR_CHROMEOS_H_ | |
| 6 #define CHROME_BROWSER_UI_PLATFORM_KEYS_CERTIFICATE_SELECTOR_CHROMEOS_H_ | |
| 7 | |
| 8 #include <string> | |
| 9 #include <vector> | |
| 10 | |
| 11 #include "base/callback_forward.h" | |
| 12 | |
| 13 namespace content { | |
| 14 class WebContents; | |
| 15 } | |
| 16 | |
| 17 namespace net { | |
| 18 class X509Certificate; | |
| 19 typedef std::vector<scoped_refptr<X509Certificate>> CertificateList; | |
|
bartfab (slow)
2015/02/19 18:55:42
Nit: #include "base/memory/ref_counted.h"
pneubeck (no reviews)
2015/02/19 21:51:41
Done.
| |
| 20 } | |
| 21 | |
| 22 namespace chromeos { | |
| 23 | |
| 24 // Opens a constrained client certificate selection dialog under |parent|, | |
|
bartfab (slow)
2015/02/19 18:55:42
Nit: There is no |parent| argument. Did you mean |
pneubeck (no reviews)
2015/02/19 21:51:41
Done.
| |
| 25 // offering |certficicates| to the user and explaining that the selection will | |
|
bartfab (slow)
2015/02/19 18:55:42
Nit: s/certficicates/certificates/
pneubeck (no reviews)
2015/02/19 21:51:41
Done.
| |
| 26 // grant access to the extension with |extension_id|. | |
| 27 // When the user has made a selection, the dialog will report back to | |
| 28 // |callback|. |callback| is notified when the dialog closes in call cases; if | |
| 29 // the user cancels the dialog, |callback| will be called with null. | |
|
bartfab (slow)
2015/02/19 18:55:42
Nit: s/null/a nullptr argument/
pneubeck (no reviews)
2015/02/19 21:51:41
Done.
| |
| 30 void ShowPlatformKeysCertificateSelector( | |
| 31 content::WebContents* web_contents, | |
| 32 const std::string& extension_id, | |
| 33 const net::CertificateList& certificates, | |
| 34 const base::Callback<void(const scoped_refptr<net::X509Certificate>&)>& | |
|
msw
2015/02/19 20:21:54
nit: maybe make a typedef for this callback to use
pneubeck (no reviews)
2015/02/19 21:51:41
Done.
| |
| 35 callback); | |
| 36 | |
| 37 } // namespace chromeos | |
| 38 | |
| 39 #endif // CHROME_BROWSER_UI_PLATFORM_KEYS_CERTIFICATE_SELECTOR_CHROMEOS_H_ | |
| OLD | NEW |