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

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

Issue 13957012: Adding a NetworkProfileHandler used by ManagedNetworkConfigurationHandler. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased. Created 7 years, 7 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 (c) 2013 The Chromium Authors. All rights reserved. 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 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_NETWORK_CONFIGURATION_UPDATER_IMPL_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_POLICY_NETWORK_CONFIGURATION_UPDATER_IMPL_H_
6 #define CHROME_BROWSER_CHROMEOS_POLICY_NETWORK_CONFIGURATION_UPDATER_IMPL_H_ 6 #define CHROME_BROWSER_CHROMEOS_POLICY_NETWORK_CONFIGURATION_UPDATER_IMPL_H_
7 7
8 #include "chrome/browser/chromeos/policy/network_configuration_updater.h" 8 #include "chrome/browser/chromeos/policy/network_configuration_updater.h"
9 #include "chrome/browser/policy/policy_service.h" 9 #include "chrome/browser/policy/policy_service.h"
10 #include "chromeos/network/onc/onc_constants.h" 10 #include "chromeos/network/onc/onc_constants.h"
11 11
12 namespace base { 12 namespace base {
13 class Value; 13 class Value;
14 } 14 }
15 15
16 namespace chromeos { 16 namespace chromeos {
17 class CertificateHandler; 17 class CertificateHandler;
18 class ManagedNetworkConfigurationHandler; 18 class ManagedNetworkConfigurationHandler;
19 } 19 }
20 20
21 namespace policy { 21 namespace policy {
22 22
23 class PolicyMap; 23 class PolicyMap;
24 24
25 // This implementation pushes policies to the 25 // This implementation pushes policies to the
26 // ManagedNetworkConfigurationHandler. User policies are only pushed after 26 // ManagedNetworkConfigurationHandler. User policies are only pushed after
27 // OnUserPolicyInitialized() was called. 27 // OnUserPolicyInitialized() was called.
28 // TODO(pneubeck): Certificates are not implemented yet, they are silently
29 // ignored.
30 class NetworkConfigurationUpdaterImpl : public NetworkConfigurationUpdater { 28 class NetworkConfigurationUpdaterImpl : public NetworkConfigurationUpdater {
31 public: 29 public:
32 NetworkConfigurationUpdaterImpl( 30 NetworkConfigurationUpdaterImpl(
33 PolicyService* policy_service, 31 PolicyService* policy_service,
34 chromeos::ManagedNetworkConfigurationHandler* network_config_handler, 32 chromeos::ManagedNetworkConfigurationHandler* network_config_handler,
35 scoped_ptr<chromeos::CertificateHandler> certificate_handler); 33 scoped_ptr<chromeos::CertificateHandler> certificate_handler);
36 virtual ~NetworkConfigurationUpdaterImpl(); 34 virtual ~NetworkConfigurationUpdaterImpl();
37 35
38 // NetworkConfigurationUpdater overrides. 36 // NetworkConfigurationUpdater overrides.
39 virtual void OnUserPolicyInitialized( 37 virtual void OnUserPolicyInitialized(
(...skipping 11 matching lines...) Expand all
51 49
52 // Wraps the policy service we read network configuration from. 50 // Wraps the policy service we read network configuration from.
53 PolicyChangeRegistrar policy_change_registrar_; 51 PolicyChangeRegistrar policy_change_registrar_;
54 52
55 // The policy service storing the ONC policies. 53 // The policy service storing the ONC policies.
56 PolicyService* policy_service_; 54 PolicyService* policy_service_;
57 55
58 // Pointer to the global singleton or mock provided to the constructor. 56 // Pointer to the global singleton or mock provided to the constructor.
59 chromeos::ManagedNetworkConfigurationHandler* network_config_handler_; 57 chromeos::ManagedNetworkConfigurationHandler* network_config_handler_;
60 58
59 // User hash of the user that the user policy applies to.
60 std::string hashed_username_;
61
61 scoped_ptr<chromeos::CertificateHandler> certificate_handler_; 62 scoped_ptr<chromeos::CertificateHandler> certificate_handler_;
62 63
63 DISALLOW_COPY_AND_ASSIGN(NetworkConfigurationUpdaterImpl); 64 DISALLOW_COPY_AND_ASSIGN(NetworkConfigurationUpdaterImpl);
64 }; 65 };
65 66
66 } // namespace policy 67 } // namespace policy
67 68
68 #endif // CHROME_BROWSER_CHROMEOS_POLICY_NETWORK_CONFIGURATION_UPDATER_IMPL_H_ 69 #endif // CHROME_BROWSER_CHROMEOS_POLICY_NETWORK_CONFIGURATION_UPDATER_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698