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

Side by Side Diff: chrome/browser/chromeos/settings/device_settings_provider.h

Issue 695193004: Added key-value storage for pending changes to OwnerSettingsServiceChromeOS. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixes. Created 6 years, 1 month 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
OLDNEW
1 // Copyright (c) 2012 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_CHROMEOS_SETTINGS_DEVICE_SETTINGS_PROVIDER_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_SETTINGS_DEVICE_SETTINGS_PROVIDER_H_
6 #define CHROME_BROWSER_CHROMEOS_SETTINGS_DEVICE_SETTINGS_PROVIDER_H_ 6 #define CHROME_BROWSER_CHROMEOS_SETTINGS_DEVICE_SETTINGS_PROVIDER_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 // CrosSettingsProvider implementation: 58 // CrosSettingsProvider implementation:
59 virtual void DoSet(const std::string& path, 59 virtual void DoSet(const std::string& path,
60 const base::Value& value) override; 60 const base::Value& value) override;
61 61
62 // DeviceSettingsService::Observer implementation: 62 // DeviceSettingsService::Observer implementation:
63 virtual void OwnershipStatusChanged() override; 63 virtual void OwnershipStatusChanged() override;
64 virtual void DeviceSettingsUpdated() override; 64 virtual void DeviceSettingsUpdated() override;
65 virtual void OnDeviceSettingsServiceShutdown() override; 65 virtual void OnDeviceSettingsServiceShutdown() override;
66 66
67 // ownership::OwnerSettingsService::Observer implementation: 67 // ownership::OwnerSettingsService::Observer implementation:
68 virtual void OnTentativeChangesInPolicy( 68 virtual void OnTentativeChangeInSettings(const std::string& setting,
69 const enterprise_management::PolicyData& policy_data) override; 69 const base::Value& value) override;
70 70
71 // Populates in-memory cache from the local_state cache that is used to store 71 // Populates in-memory cache from the local_state cache that is used to store
72 // device settings before the device is owned and to speed up policy 72 // device settings before the device is owned and to speed up policy
73 // availability before the policy blob is fetched on boot. 73 // availability before the policy blob is fetched on boot.
74 void RetrieveCachedData(); 74 void RetrieveCachedData();
75 75
76 // Parses the policy data and fills in |values_cache_|. 76 // Parses the policy data and fills in |values_cache_|.
77 void UpdateValuesCache( 77 void UpdateValuesCache(
78 const enterprise_management::PolicyData& policy_data, 78 const enterprise_management::PolicyData& policy_data,
79 const enterprise_management::ChromeDeviceSettingsProto& settings, 79 const enterprise_management::ChromeDeviceSettingsProto& settings,
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 InitializationTestUnowned); 146 InitializationTestUnowned);
147 FRIEND_TEST_ALL_PREFIXES(DeviceSettingsProviderTest, 147 FRIEND_TEST_ALL_PREFIXES(DeviceSettingsProviderTest,
148 PolicyFailedPermanentlyNotification); 148 PolicyFailedPermanentlyNotification);
149 FRIEND_TEST_ALL_PREFIXES(DeviceSettingsProviderTest, PolicyLoadNotification); 149 FRIEND_TEST_ALL_PREFIXES(DeviceSettingsProviderTest, PolicyLoadNotification);
150 DISALLOW_COPY_AND_ASSIGN(DeviceSettingsProvider); 150 DISALLOW_COPY_AND_ASSIGN(DeviceSettingsProvider);
151 }; 151 };
152 152
153 } // namespace chromeos 153 } // namespace chromeos
154 154
155 #endif // CHROME_BROWSER_CHROMEOS_SETTINGS_DEVICE_SETTINGS_PROVIDER_H_ 155 #endif // CHROME_BROWSER_CHROMEOS_SETTINGS_DEVICE_SETTINGS_PROVIDER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698