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

Side by Side Diff: chrome/browser/policy/network_configuration_updater.h

Issue 9111022: Removed ConfigurationPolicyType and extended PolicyMap. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased Created 8 years, 11 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_POLICY_NETWORK_CONFIGURATION_UPDATER_H_ 5 #ifndef CHROME_BROWSER_POLICY_NETWORK_CONFIGURATION_UPDATER_H_
6 #define CHROME_BROWSER_POLICY_NETWORK_CONFIGURATION_UPDATER_H_ 6 #define CHROME_BROWSER_POLICY_NETWORK_CONFIGURATION_UPDATER_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
11 #include "chrome/browser/chromeos/cros/network_ui_data.h" 11 #include "chrome/browser/chromeos/cros/network_ui_data.h"
(...skipping 23 matching lines...) Expand all
35 static const char kEmptyConfiguration[]; 35 static const char kEmptyConfiguration[];
36 36
37 private: 37 private:
38 // Grabs network configuration from policy and applies it. 38 // Grabs network configuration from policy and applies it.
39 void Update(); 39 void Update();
40 40
41 // Extracts ONC string from |policy_map| and pushes the configuration to 41 // Extracts ONC string from |policy_map| and pushes the configuration to
42 // |network_library_| if it's different from |*cached_value| (which is 42 // |network_library_| if it's different from |*cached_value| (which is
43 // updated). 43 // updated).
44 void ApplyNetworkConfiguration(const PolicyMap& policy_map, 44 void ApplyNetworkConfiguration(const PolicyMap& policy_map,
45 ConfigurationPolicyType policy_type, 45 const char* policy_name,
46 chromeos::NetworkUIData::ONCSource onc_source, 46 chromeos::NetworkUIData::ONCSource onc_source,
47 std::string* cached_value); 47 std::string* cached_value);
48 48
49 // Wraps the provider we read network configuration from. 49 // Wraps the provider we read network configuration from.
50 ConfigurationPolicyObserverRegistrar provider_registrar_; 50 ConfigurationPolicyObserverRegistrar provider_registrar_;
51 51
52 // Network library to write network configuration to. 52 // Network library to write network configuration to.
53 chromeos::NetworkLibrary* network_library_; 53 chromeos::NetworkLibrary* network_library_;
54 54
55 // Current settings. 55 // Current settings.
56 std::string device_network_config_; 56 std::string device_network_config_;
57 std::string user_network_config_; 57 std::string user_network_config_;
58 58
59 DISALLOW_COPY_AND_ASSIGN(NetworkConfigurationUpdater); 59 DISALLOW_COPY_AND_ASSIGN(NetworkConfigurationUpdater);
60 }; 60 };
61 61
62 } // namespace policy 62 } // namespace policy
63 63
64 #endif // CHROME_BROWSER_POLICY_NETWORK_CONFIGURATION_UPDATER_H_ 64 #endif // CHROME_BROWSER_POLICY_NETWORK_CONFIGURATION_UPDATER_H_
OLDNEW
« no previous file with comments | « chrome/browser/policy/mock_configuration_policy_reader.h ('k') | chrome/browser/policy/network_configuration_updater.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698