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

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

Issue 471183002: Migrate Slot ID of client certs in network configuration. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix ethernet EAP. Created 6 years, 4 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/network/client_cert_util.cc ('k') | chromeos/network/network_cert_migrator.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 CHROMEOS_NETWORK_NETWORK_CERT_MIGRATOR_H_ 5 #ifndef CHROMEOS_NETWORK_NETWORK_CERT_MIGRATOR_H_
6 #define CHROMEOS_NETWORK_NETWORK_CERT_MIGRATOR_H_ 6 #define CHROMEOS_NETWORK_NETWORK_CERT_MIGRATOR_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/memory/weak_ptr.h" 9 #include "base/memory/weak_ptr.h"
10 #include "chromeos/cert_loader.h" 10 #include "chromeos/cert_loader.h"
11 #include "chromeos/chromeos_export.h" 11 #include "chromeos/chromeos_export.h"
12 #include "chromeos/network/network_state_handler_observer.h" 12 #include "chromeos/network/network_state_handler_observer.h"
13 13
14 namespace chromeos { 14 namespace chromeos {
15 15
16 class NetworkStateHandler; 16 class NetworkStateHandler;
17 17
18 // Migrates network configurations from deprecated CaCertNSS properties to 18 // Migrates network configurations from deprecated CaCertNSS properties to
19 // CaCertPEM. 19 // CaCertPEM and incorrect or missing slot IDs of client certificates.
20 class CHROMEOS_EXPORT NetworkCertMigrator : public NetworkStateHandlerObserver, 20 class CHROMEOS_EXPORT NetworkCertMigrator : public NetworkStateHandlerObserver,
21 public CertLoader::Observer { 21 public CertLoader::Observer {
22 public: 22 public:
23 virtual ~NetworkCertMigrator(); 23 virtual ~NetworkCertMigrator();
24 24
25 private: 25 private:
26 friend class NetworkHandler; 26 friend class NetworkHandler;
27 friend class NetworkCertMigratorTest; 27 friend class NetworkCertMigratorTest;
28 class MigrationTask; 28 class MigrationTask;
29 29
(...skipping 11 matching lines...) Expand all
41 NetworkStateHandler* network_state_handler_; 41 NetworkStateHandler* network_state_handler_;
42 42
43 base::WeakPtrFactory<NetworkCertMigrator> weak_ptr_factory_; 43 base::WeakPtrFactory<NetworkCertMigrator> weak_ptr_factory_;
44 44
45 DISALLOW_COPY_AND_ASSIGN(NetworkCertMigrator); 45 DISALLOW_COPY_AND_ASSIGN(NetworkCertMigrator);
46 }; 46 };
47 47
48 } // namespace chromeos 48 } // namespace chromeos
49 49
50 #endif // CHROMEOS_NETWORK_NETWORK_CERT_MIGRATOR_H_ 50 #endif // CHROMEOS_NETWORK_NETWORK_CERT_MIGRATOR_H_
OLDNEW
« no previous file with comments | « chromeos/network/client_cert_util.cc ('k') | chromeos/network/network_cert_migrator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698