OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_OWNERSHIP_OWNER_SETTINGS_SERVICE_CHROMEOS_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_OWNERSHIP_OWNER_SETTINGS_SERVICE_CHROMEOS_H_ |
6 #define CHROME_BROWSER_CHROMEOS_OWNERSHIP_OWNER_SETTINGS_SERVICE_CHROMEOS_H_ | 6 #define CHROME_BROWSER_CHROMEOS_OWNERSHIP_OWNER_SETTINGS_SERVICE_CHROMEOS_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 29 matching lines...) Expand all Loading... |
40 public DeviceSettingsService::Observer { | 40 public DeviceSettingsService::Observer { |
41 public: | 41 public: |
42 virtual ~OwnerSettingsServiceChromeOS(); | 42 virtual ~OwnerSettingsServiceChromeOS(); |
43 | 43 |
44 void OnTPMTokenReady(bool tpm_token_enabled); | 44 void OnTPMTokenReady(bool tpm_token_enabled); |
45 | 45 |
46 // ownership::OwnerSettingsService implementation: | 46 // ownership::OwnerSettingsService implementation: |
47 virtual bool HandlesSetting(const std::string& setting) override; | 47 virtual bool HandlesSetting(const std::string& setting) override; |
48 virtual bool Set(const std::string& setting, | 48 virtual bool Set(const std::string& setting, |
49 const base::Value& value) override; | 49 const base::Value& value) override; |
| 50 virtual bool CommitTentativeDeviceSettings( |
| 51 scoped_ptr<enterprise_management::PolicyData> policy) override; |
50 | 52 |
51 // NotificationObserver implementation: | 53 // NotificationObserver implementation: |
52 virtual void Observe(int type, | 54 virtual void Observe(int type, |
53 const content::NotificationSource& source, | 55 const content::NotificationSource& source, |
54 const content::NotificationDetails& details) override; | 56 const content::NotificationDetails& details) override; |
55 | 57 |
56 // SessionManagerClient::Observer: | 58 // SessionManagerClient::Observer: |
57 virtual void OwnerKeySet(bool success) override; | 59 virtual void OwnerKeySet(bool success) override; |
58 | 60 |
59 // DeviceSettingsService::Observer: | 61 // DeviceSettingsService::Observer: |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
149 base::WeakPtrFactory<OwnerSettingsServiceChromeOS> weak_factory_; | 151 base::WeakPtrFactory<OwnerSettingsServiceChromeOS> weak_factory_; |
150 | 152 |
151 base::WeakPtrFactory<OwnerSettingsServiceChromeOS> store_settings_factory_; | 153 base::WeakPtrFactory<OwnerSettingsServiceChromeOS> store_settings_factory_; |
152 | 154 |
153 DISALLOW_COPY_AND_ASSIGN(OwnerSettingsServiceChromeOS); | 155 DISALLOW_COPY_AND_ASSIGN(OwnerSettingsServiceChromeOS); |
154 }; | 156 }; |
155 | 157 |
156 } // namespace chromeos | 158 } // namespace chromeos |
157 | 159 |
158 #endif // CHROME_BROWSER_CHROMEOS_OWNERSHIP_OWNER_SETTINGS_SERVICE_CHROMEOS_H_ | 160 #endif // CHROME_BROWSER_CHROMEOS_OWNERSHIP_OWNER_SETTINGS_SERVICE_CHROMEOS_H_ |
OLD | NEW |