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

Side by Side Diff: chrome/browser/chromeos/policy/device_network_configuration_updater.h

Issue 148183013: Use per-user nssdb in onc certificate importer (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 years, 10 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
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 CHROME_BROWSER_CHROMEOS_POLICY_DEVICE_NETWORK_CONFIGURATION_UPDATER_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_POLICY_DEVICE_NETWORK_CONFIGURATION_UPDATER_H_
6 #define CHROME_BROWSER_CHROMEOS_POLICY_DEVICE_NETWORK_CONFIGURATION_UPDATER_H_ 6 #define CHROME_BROWSER_CHROMEOS_POLICY_DEVICE_NETWORK_CONFIGURATION_UPDATER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 53
54 private: 54 private:
55 DeviceNetworkConfigurationUpdater( 55 DeviceNetworkConfigurationUpdater(
56 scoped_ptr<chromeos::onc::CertificateImporter> certificate_importer, 56 scoped_ptr<chromeos::onc::CertificateImporter> certificate_importer,
57 PolicyService* policy_service, 57 PolicyService* policy_service,
58 chromeos::ManagedNetworkConfigurationHandler* network_config_handler, 58 chromeos::ManagedNetworkConfigurationHandler* network_config_handler,
59 chromeos::NetworkDeviceHandler* network_device_handler, 59 chromeos::NetworkDeviceHandler* network_device_handler,
60 chromeos::CrosSettings* cros_settings); 60 chromeos::CrosSettings* cros_settings);
61 61
62 virtual void Init() OVERRIDE; 62 virtual void Init() OVERRIDE;
63 virtual void ImportCertificates(const base::ListValue& certificates_onc) 63 virtual void ImportCertificates(const base::ListValue& certificates_onc,
64 net::NSSCertDatabase* target_nssdb)
64 OVERRIDE; 65 OVERRIDE;
65 virtual void ApplyNetworkPolicy(base::ListValue* network_configs_onc, 66 virtual void ApplyNetworkPolicy(base::ListValue* network_configs_onc,
66 base::DictionaryValue* global_network_config) 67 base::DictionaryValue* global_network_config)
67 OVERRIDE; 68 OVERRIDE;
68 void OnDataRoamingSettingChanged(); 69 void OnDataRoamingSettingChanged();
69 70
70 chromeos::NetworkDeviceHandler* network_device_handler_; 71 chromeos::NetworkDeviceHandler* network_device_handler_;
71 chromeos::CrosSettings* cros_settings_; 72 chromeos::CrosSettings* cros_settings_;
72 scoped_ptr<base::CallbackList<void(void)>::Subscription> 73 scoped_ptr<base::CallbackList<void(void)>::Subscription>
73 data_roaming_setting_subscription_; 74 data_roaming_setting_subscription_;
74 75
75 base::WeakPtrFactory<DeviceNetworkConfigurationUpdater> weak_factory_; 76 base::WeakPtrFactory<DeviceNetworkConfigurationUpdater> weak_factory_;
76 77
77 DISALLOW_COPY_AND_ASSIGN(DeviceNetworkConfigurationUpdater); 78 DISALLOW_COPY_AND_ASSIGN(DeviceNetworkConfigurationUpdater);
78 }; 79 };
79 80
80 } // namespace policy 81 } // namespace policy
81 82
82 #endif // CHROME_BROWSER_CHROMEOS_POLICY_DEVICE_NETWORK_CONFIGURATION_UPDATER_H _ 83 #endif // CHROME_BROWSER_CHROMEOS_POLICY_DEVICE_NETWORK_CONFIGURATION_UPDATER_H _
83 84
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698