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

Side by Side Diff: chromeos/network/certificate_handler.h

Issue 14192017: Extract certificate policy application from NetworkLibrary. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased. Created 7 years, 8 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 | Annotate | Revision Log
« no previous file with comments | « chromeos/chromeos.gyp ('k') | chromeos/network/certificate_handler.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright (c) 2013 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 CHROMEOS_NETWORK_CERTIFICATE_HANDLER_H_
6 #define CHROMEOS_NETWORK_CERTIFICATE_HANDLER_H_
7
8 #include "chromeos/chromeos_export.h"
9 #include "chromeos/network/onc/onc_constants.h"
10 #include "net/cert/x509_certificate.h"
11
12 namespace base {
13 class ListValue;
14 }
15
16 namespace chromeos {
17
18 class CHROMEOS_EXPORT CertificateHandler {
19 public:
20 CertificateHandler();
21 virtual ~CertificateHandler();
22
23 // Import the |certificates|, which must be a list of ONC Certificate objects.
24 // If |onc_trusted_certificates| is not NULL, it will be filled with the list
25 // of certificates that requested the TrustBit "Web". Returns true if all
26 // certificates were imported successfully.
27 virtual bool ImportCertificates(
28 const base::ListValue& certificates,
29 onc::ONCSource source,
30 net::CertificateList* onc_trusted_certificates);
31
32 private:
33 DISALLOW_COPY_AND_ASSIGN(CertificateHandler);
34 };
35
36 } // namespace chromeos
37
38 #endif // CHROMEOS_NETWORK_CERTIFICATE_HANDLER_H_
OLDNEW
« no previous file with comments | « chromeos/chromeos.gyp ('k') | chromeos/network/certificate_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698