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

Side by Side Diff: chrome/browser/chromeos/platform_keys/platform_keys.h

Issue 1141253003: chrome.platformKeys: Add filtering by certificate types (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_CHROMEOS_PLATFORM_KEYS_PLATFORM_KEYS_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_PLATFORM_KEYS_PLATFORM_KEYS_H_
6 #define CHROME_BROWSER_CHROMEOS_PLATFORM_KEYS_PLATFORM_KEYS_H_ 6 #define CHROME_BROWSER_CHROMEOS_PLATFORM_KEYS_PLATFORM_KEYS_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/callback_forward.h" 11 #include "base/callback_forward.h"
12 #include "base/macros.h" 12 #include "base/macros.h"
13 #include "base/memory/ref_counted.h" 13 #include "base/memory/ref_counted.h"
14 #include "base/memory/scoped_ptr.h" 14 #include "base/memory/scoped_ptr.h"
15 #include "net/cert/x509_certificate.h" 15 #include "net/cert/x509_certificate.h"
16 #include "net/ssl/ssl_client_cert_type.h" 16 #include "net/ssl/ssl_client_cert_type.h"
pneubeck (no reviews) 2015/05/19 10:08:59 not required anymore?
cschuet (SLOW) 2015/05/19 11:36:23 Done.
17 17
18 namespace content { 18 namespace content {
19 class BrowserContext; 19 class BrowserContext;
20 } 20 }
21 21
22 namespace chromeos { 22 namespace chromeos {
23 23
24 namespace platform_keys { 24 namespace platform_keys {
25 25
26 // A token is a store for keys or certs and can provide cryptographic 26 // A token is a store for keys or certs and can provide cryptographic
(...skipping 13 matching lines...) Expand all
40 HASH_ALGORITHM_SHA384, 40 HASH_ALGORITHM_SHA384,
41 HASH_ALGORITHM_SHA512 41 HASH_ALGORITHM_SHA512
42 }; 42 };
43 43
44 struct ClientCertificateRequest { 44 struct ClientCertificateRequest {
45 ClientCertificateRequest(); 45 ClientCertificateRequest();
46 ~ClientCertificateRequest(); 46 ~ClientCertificateRequest();
47 47
48 // The list of the types of certificates requested, sorted in order of the 48 // The list of the types of certificates requested, sorted in order of the
49 // server's preference. 49 // server's preference.
50 std::vector<net::SSLClientCertType> certificate_key_types; 50 std::vector<net::X509Certificate::PublicKeyType> certificate_key_types;
51 51
52 // List of distinguished names of certificate authorities allowed by the 52 // List of distinguished names of certificate authorities allowed by the
53 // server. Each entry must be a DER-encoded X.509 DistinguishedName. 53 // server. Each entry must be a DER-encoded X.509 DistinguishedName.
54 std::vector<std::string> certificate_authorities; 54 std::vector<std::string> certificate_authorities;
55 }; 55 };
56 56
57 namespace subtle { 57 namespace subtle {
58 // Functions of this namespace shouldn't be called directly from the context of 58 // Functions of this namespace shouldn't be called directly from the context of
59 // an extension. Instead use PlatformKeysService which enforces restrictions 59 // an extension. Instead use PlatformKeysService which enforces restrictions
60 // upon extensions. 60 // upon extensions.
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
185 // of available tokens is determined, possibly with an error message. 185 // of available tokens is determined, possibly with an error message.
186 // Must be called and calls |callback| on the UI thread. 186 // Must be called and calls |callback| on the UI thread.
187 void GetTokens(const GetTokensCallback& callback, 187 void GetTokens(const GetTokensCallback& callback,
188 content::BrowserContext* browser_context); 188 content::BrowserContext* browser_context);
189 189
190 } // namespace platform_keys 190 } // namespace platform_keys
191 191
192 } // namespace chromeos 192 } // namespace chromeos
193 193
194 #endif // CHROME_BROWSER_CHROMEOS_PLATFORM_KEYS_PLATFORM_KEYS_H_ 194 #endif // CHROME_BROWSER_CHROMEOS_PLATFORM_KEYS_PLATFORM_KEYS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698