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

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: fix browser_tests compile 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 27 matching lines...) Expand all
38 // Implements addtional special handling of ONC device policies, which requires 38 // Implements addtional special handling of ONC device policies, which requires
39 // listening for notifications from CrosSettings. 39 // listening for notifications from CrosSettings.
40 class DeviceNetworkConfigurationUpdater : public NetworkConfigurationUpdater { 40 class DeviceNetworkConfigurationUpdater : public NetworkConfigurationUpdater {
41 public: 41 public:
42 virtual ~DeviceNetworkConfigurationUpdater(); 42 virtual ~DeviceNetworkConfigurationUpdater();
43 43
44 // Creates an updater that applies the ONC device policy from |policy_service| 44 // Creates an updater that applies the ONC device policy from |policy_service|
45 // once the policy service is completely initialized and on each policy 45 // once the policy service is completely initialized and on each policy
46 // change. The argument objects must outlive the returned updater. 46 // change. The argument objects must outlive the returned updater.
47 static scoped_ptr<DeviceNetworkConfigurationUpdater> CreateForDevicePolicy( 47 static scoped_ptr<DeviceNetworkConfigurationUpdater> CreateForDevicePolicy(
48 scoped_ptr<chromeos::onc::CertificateImporter> certificate_importer,
49 PolicyService* policy_service, 48 PolicyService* policy_service,
50 chromeos::ManagedNetworkConfigurationHandler* network_config_handler, 49 chromeos::ManagedNetworkConfigurationHandler* network_config_handler,
51 chromeos::NetworkDeviceHandler* network_device_handler, 50 chromeos::NetworkDeviceHandler* network_device_handler,
52 chromeos::CrosSettings* cros_settings); 51 chromeos::CrosSettings* cros_settings);
53 52
54 private: 53 private:
55 DeviceNetworkConfigurationUpdater( 54 DeviceNetworkConfigurationUpdater(
56 scoped_ptr<chromeos::onc::CertificateImporter> certificate_importer,
57 PolicyService* policy_service, 55 PolicyService* policy_service,
58 chromeos::ManagedNetworkConfigurationHandler* network_config_handler, 56 chromeos::ManagedNetworkConfigurationHandler* network_config_handler,
59 chromeos::NetworkDeviceHandler* network_device_handler, 57 chromeos::NetworkDeviceHandler* network_device_handler,
60 chromeos::CrosSettings* cros_settings); 58 chromeos::CrosSettings* cros_settings);
61 59
62 virtual void Init() OVERRIDE; 60 virtual void Init() OVERRIDE;
63 virtual void ImportCertificates(const base::ListValue& certificates_onc) 61 virtual void ImportCertificates(const base::ListValue& certificates_onc)
64 OVERRIDE; 62 OVERRIDE;
65 virtual void ApplyNetworkPolicy(base::ListValue* network_configs_onc, 63 virtual void ApplyNetworkPolicy(base::ListValue* network_configs_onc,
66 base::DictionaryValue* global_network_config) 64 base::DictionaryValue* global_network_config)
67 OVERRIDE; 65 OVERRIDE;
68 void OnDataRoamingSettingChanged(); 66 void OnDataRoamingSettingChanged();
69 67
70 chromeos::NetworkDeviceHandler* network_device_handler_; 68 chromeos::NetworkDeviceHandler* network_device_handler_;
71 chromeos::CrosSettings* cros_settings_; 69 chromeos::CrosSettings* cros_settings_;
72 scoped_ptr<base::CallbackList<void(void)>::Subscription> 70 scoped_ptr<base::CallbackList<void(void)>::Subscription>
73 data_roaming_setting_subscription_; 71 data_roaming_setting_subscription_;
74 72
75 base::WeakPtrFactory<DeviceNetworkConfigurationUpdater> weak_factory_; 73 base::WeakPtrFactory<DeviceNetworkConfigurationUpdater> weak_factory_;
76 74
77 DISALLOW_COPY_AND_ASSIGN(DeviceNetworkConfigurationUpdater); 75 DISALLOW_COPY_AND_ASSIGN(DeviceNetworkConfigurationUpdater);
78 }; 76 };
79 77
80 } // namespace policy 78 } // namespace policy
81 79
82 #endif // CHROME_BROWSER_CHROMEOS_POLICY_DEVICE_NETWORK_CONFIGURATION_UPDATER_H _ 80 #endif // CHROME_BROWSER_CHROMEOS_POLICY_DEVICE_NETWORK_CONFIGURATION_UPDATER_H _
83 81
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698