Home | History | Annotate | Download | only in login

Lines Matching defs:SignedSettings

29 const char SignedSettings::kDevicePolicyType[] = "google/chromeos/device";
31 SignedSettings::Relay::Relay(SignedSettings* s) : settings_(s) {
34 SignedSettings::Relay::~Relay() {}
36 void SignedSettings::Relay::OnSettingsOpCompleted(
37 SignedSettings::ReturnCode code,
39 if (code == SignedSettings::SUCCESS) {
46 SignedSettings::SignedSettings()
52 SignedSettings::~SignedSettings() {}
54 void SignedSettings::TryToFetchPolicyAndCallBack() {
56 polfetcher_ = SignedSettings::CreateRetrievePolicyOp(relay_.get());
62 bool SignedSettings::PolicyIsSane(const em::PolicyFetchResponse& value,
76 SignedSettings::ReturnCode SignedSettings::MapKeyOpCode(
83 bool SignedSettings::EnumerateWhitelist(std::vector<std::string>* whitelisted) {
102 class CheckWhitelistOp : public SignedSettings {
105 SignedSettings::Delegate<bool>* d);
108 void Fail(SignedSettings::ReturnCode code);
120 void PerformCallback(SignedSettings::ReturnCode code, bool value);
123 SignedSettings::Delegate<bool>* d_;
126 class WhitelistOp : public SignedSettings,
127 public SignedSettings::Delegate<bool> {
131 SignedSettings::Delegate<bool>* d);
134 void Fail(SignedSettings::ReturnCode code);
139 // Implementation of SignedSettings::Delegate
150 void PerformCallback(SignedSettings::ReturnCode code, bool value);
154 SignedSettings::Delegate<bool>* d_;
156 scoped_refptr<SignedSettings> store_op_;
159 class StorePropertyOp : public SignedSettings,
160 public SignedSettings::Delegate<bool> {
164 SignedSettings::Delegate<bool>* d);
167 void Fail(SignedSettings::ReturnCode code);
172 // Implementation of SignedSettings::Delegate
183 void PerformCallback(SignedSettings::ReturnCode code, bool value);
187 SignedSettings::Delegate<bool>* d_;
189 scoped_refptr<SignedSettings> store_op_;
192 class RetrievePropertyOp : public SignedSettings {
195 SignedSettings::Delegate<std::string>* d);
198 void Fail(SignedSettings::ReturnCode code);
212 void PerformCallback(SignedSettings::ReturnCode code,
217 SignedSettings::Delegate<std::string>* d_;
220 class StorePolicyOp : public SignedSettings {
223 SignedSettings::Delegate<bool>* d);
226 void Fail(SignedSettings::ReturnCode code);
238 void PerformCallback(SignedSettings::ReturnCode code, bool value);
241 SignedSettings::Delegate<bool>* d_;
246 class RetrievePolicyOp : public SignedSettings {
249 SignedSettings::Delegate<const em::PolicyFetchResponse&>* d);
252 void Fail(SignedSettings::ReturnCode code);
266 void PerformCallback(SignedSettings::ReturnCode code,
272 SignedSettings::Delegate<const em::PolicyFetchResponse&>* d_;
276 SignedSettings* SignedSettings::CreateCheckWhitelistOp(
278 SignedSettings::Delegate<bool>* d) {
284 SignedSettings* SignedSettings::CreateWhitelistOp(
287 SignedSettings::Delegate<bool>* d) {
295 SignedSettings* SignedSettings::CreateStorePropertyOp(
298 SignedSettings::Delegate<bool>* d) {
304 SignedSettings* SignedSettings::CreateRetrievePropertyOp(
306 SignedSettings::Delegate<std::string>* d) {
312 SignedSettings* SignedSettings::CreateStorePolicyOp(
314 SignedSettings::Delegate<bool>* d) {
321 SignedSettings* SignedSettings::CreateRetrievePolicyOp(
322 SignedSettings::Delegate<const em::PolicyFetchResponse&>* d) {
328 SignedSettings::Delegate<bool>* d)
364 void CheckWhitelistOp::Fail(SignedSettings::ReturnCode code) {
395 Fail(SignedSettings::MapKeyOpCode(return_code));
416 void CheckWhitelistOp::PerformCallback(SignedSettings::ReturnCode code,
423 SignedSettings::Delegate<bool>* d)
447 void WhitelistOp::Fail(SignedSettings::ReturnCode code) {
479 Fail(SignedSettings
522 void WhitelistOp::PerformCallback(SignedSettings::ReturnCode code, bool value) {
528 SignedSettings::Delegate<bool>* d)
559 void StorePropertyOp::Fail(SignedSettings::ReturnCode code) {
592 Fail(SignedSettings::MapKeyOpCode(return_code));
639 void StorePropertyOp::PerformCallback(SignedSettings::ReturnCode code,
648 SignedSettings::Delegate<std::string>* d)
683 void RetrievePropertyOp::Fail(SignedSettings::ReturnCode code) {
759 void RetrievePropertyOp::PerformCallback(SignedSettings::ReturnCode code,
765 SignedSettings::Delegate<bool>* d)
791 void StorePolicyOp::Fail(SignedSettings::ReturnCode code) {
798 SignedSettings::ReturnCode code = SUCCESS;
801 if (SignedSettings::PolicyIsSane(*policy_, &poldata)) {
831 Fail(SignedSettings::MapKeyOpCode(return_code));
846 void StorePolicyOp::PerformCallback(SignedSettings::ReturnCode code,
852 SignedSettings::Delegate<const em::PolicyFetchResponse&>* d)
863 void RetrievePolicyOp::Fail(SignedSettings::ReturnCode code) {
873 if (SignedSettings::PolicyIsSane(value, &poldata)) {
900 Fail(SignedSettings::MapKeyOpCode(return_code));
931 void RetrievePolicyOp::PerformCallback(SignedSettings::ReturnCode code,