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

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

Issue 20087002: Add migration from CaCert NSS nicknames to PEM. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed indentation. Created 7 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
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_NETWORK_CERT_MIGRATOR_H_
6 #define CHROMEOS_NETWORK_NETWORK_CERT_MIGRATOR_H_
7
8 #include "base/basictypes.h"
9 #include "base/memory/weak_ptr.h"
10 #include "chromeos/cert_loader.h"
11 #include "chromeos/chromeos_export.h"
12 #include "chromeos/network/network_state_handler_observer.h"
13
14 namespace chromeos {
15
16 class NetworkStateHandler;
17
18 // Migrates network configurations from deprecated CaCertNSS properties to
19 // CaCertPEM.
20 class CHROMEOS_EXPORT NetworkCertMigrator : public NetworkStateHandlerObserver,
21 public CertLoader::Observer {
22 public:
23 NetworkCertMigrator();
24 virtual ~NetworkCertMigrator();
25 void Init(NetworkStateHandler* network_state_handler);
stevenjb 2013/07/29 17:53:03 For consistency, make Init private and NetworkHand
pneubeck (no reviews) 2013/08/05 08:51:22 I can do that and should then also make the cstor
stevenjb 2013/08/05 18:28:09 When I bundled the Network*Handler classes to be o
pneubeck (no reviews) 2013/08/06 07:54:14 Done.
26
27 private:
28 class MigrationTask;
29
30 // NetworkStateHandlerObserver overrides
31 virtual void NetworkListChanged() OVERRIDE;
32
33 // CertLoader::Observer overrides
34 virtual void OnCertificatesLoaded(const net::CertificateList& cert_list,
35 bool initial_load) OVERRIDE;
36
37 // Unowned associated NetworkStateHandler* (global or test instance).
38 NetworkStateHandler* network_state_handler_;
39
40 base::WeakPtrFactory<NetworkCertMigrator> weak_ptr_factory_;
41
42 DISALLOW_COPY_AND_ASSIGN(NetworkCertMigrator);
43 };
44
45 } // namespace chromeos
46
47 #endif // CHROMEOS_NETWORK_NETWORK_CERT_MIGRATOR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698