OLD | NEW |
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_LOGIN_SIGNED_SETTINGS_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_SETTINGS_SIGNED_SETTINGS_H_ |
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SIGNED_SETTINGS_H_ | 6 #define CHROME_BROWSER_CHROMEOS_SETTINGS_SIGNED_SETTINGS_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
11 #include "base/memory/ref_counted.h" | 11 #include "base/memory/ref_counted.h" |
12 #include "chrome/browser/chromeos/login/owner_manager.h" | 12 #include "chrome/browser/chromeos/settings/owner_manager.h" |
13 | 13 |
14 // There are two operations that can be performed on the Chrome OS owner-signed | 14 // There are two operations that can be performed on the Chrome OS owner-signed |
15 // settings store: Storing and Retrieving the policy blob. | 15 // settings store: Storing and Retrieving the policy blob. |
16 // | 16 // |
17 // The pattern of use here is that the caller instantiates some | 17 // The pattern of use here is that the caller instantiates some |
18 // subclass of SignedSettings by calling one of the create | 18 // subclass of SignedSettings by calling one of the create |
19 // methods. Then, call Execute() on this object from the UI | 19 // methods. Then, call Execute() on this object from the UI |
20 // thread. It'll go off and do work (on the FILE thread and over DBus), | 20 // thread. It'll go off and do work (on the FILE thread and over DBus), |
21 // and then call the appropriate method of the Delegate you passed in | 21 // and then call the appropriate method of the Delegate you passed in |
22 // -- again, on the UI thread. | 22 // -- again, on the UI thread. |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
85 private: | 85 private: |
86 friend class base::RefCountedThreadSafe<SignedSettings>; | 86 friend class base::RefCountedThreadSafe<SignedSettings>; |
87 friend class SignedSettingsTest; | 87 friend class SignedSettingsTest; |
88 friend class SignedSettingsHelperTest; | 88 friend class SignedSettingsHelperTest; |
89 | 89 |
90 DISALLOW_COPY_AND_ASSIGN(SignedSettings); | 90 DISALLOW_COPY_AND_ASSIGN(SignedSettings); |
91 }; | 91 }; |
92 | 92 |
93 } // namespace chromeos | 93 } // namespace chromeos |
94 | 94 |
95 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SIGNED_SETTINGS_H_ | 95 #endif // CHROME_BROWSER_CHROMEOS_SETTINGS_SIGNED_SETTINGS_H_ |
OLD | NEW |