Home
last modified time | relevance | path

Searched refs:SignedSettings (Results 1 – 16 of 16) sorted by relevance

/external/chromium/chrome/browser/chromeos/login/
Dsigned_settings.h42 class SignedSettings : public base::RefCountedThreadSafe<SignedSettings>,
60 SignedSettings();
61 virtual ~SignedSettings();
65 static SignedSettings* CreateCheckWhitelistOp(
67 SignedSettings::Delegate<bool>* d);
69 static SignedSettings* CreateWhitelistOp(const std::string& email,
71 SignedSettings::Delegate<bool>* d);
75 static SignedSettings* CreateStorePropertyOp(
78 SignedSettings::Delegate<bool>* d);
80 static SignedSettings* CreateRetrievePropertyOp(
[all …]
Dsigned_settings.cc29 const char SignedSettings::kDevicePolicyType[] = "google/chromeos/device";
31 SignedSettings::Relay::Relay(SignedSettings* s) : settings_(s) { in Relay()
34 SignedSettings::Relay::~Relay() {} in ~Relay()
36 void SignedSettings::Relay::OnSettingsOpCompleted( in OnSettingsOpCompleted()
37 SignedSettings::ReturnCode code, in OnSettingsOpCompleted()
39 if (code == SignedSettings::SUCCESS) { in OnSettingsOpCompleted()
46 SignedSettings::SignedSettings() in SignedSettings() function in chromeos::SignedSettings
52 SignedSettings::~SignedSettings() {} in ~SignedSettings()
54 void SignedSettings::TryToFetchPolicyAndCallBack() { in TryToFetchPolicyAndCallBack()
56 polfetcher_ = SignedSettings::CreateRetrievePolicyOp(relay_.get()); in TryToFetchPolicyAndCallBack()
[all …]
Dsigned_settings_helper.h19 class SignedSettings; variable
30 SignedSettings::ReturnCode code, in OnCheckWhitelistCompleted()
35 SignedSettings::ReturnCode code, const std::string& email) {} in OnWhitelistCompleted()
39 SignedSettings::ReturnCode code, const std::string& email) {} in OnUnwhitelistCompleted()
43 SignedSettings::ReturnCode code, in OnStorePropertyCompleted()
49 SignedSettings::ReturnCode code, in OnRetrievePropertyCompleted()
55 SignedSettings::ReturnCode code) {} in OnStorePolicyCompleted()
59 SignedSettings::ReturnCode code, in OnRetrievePolicyCompleted()
86 virtual void OnOpCreated(SignedSettings* op) = 0;
87 virtual void OnOpStarted(SignedSettings* op) = 0;
[all …]
Dsigned_settings_unittest.cc42 class DummyDelegate : public SignedSettings::Delegate<T> {
46 expected_failure_(SignedSettings::SUCCESS), in DummyDelegate()
50 virtual void OnSettingsOpCompleted(SignedSettings::ReturnCode code, in OnSettingsOpCompleted()
59 expected_failure_ = SignedSettings::SUCCESS; in expect_success()
61 virtual void expect_failure(SignedSettings::ReturnCode code) { in expect_failure()
68 SignedSettings::ReturnCode expected_failure_;
126 void mock_service(SignedSettings* s, MockOwnershipService* m) { in mock_service()
146 to_return.set_policy_type(SignedSettings::kDevicePolicyType); in BuildPolicyData()
178 void ExpectWhitelistOp(SignedSettings* s, in ExpectWhitelistOp()
194 scoped_refptr<SignedSettings> s( in FailingStorePropertyOp()
[all …]
Dsigned_settings_helper_unittest.cc34 SignedSettings::ReturnCode code, const std::string& email));
36 SignedSettings::ReturnCode code, const std::string& email));
38 SignedSettings::ReturnCode code, const std::string& email));
40 SignedSettings::ReturnCode code,
44 SignedSettings::ReturnCode code,
71 virtual void OnOpCreated(SignedSettings* op) { in OnOpCreated()
76 virtual void OnOpStarted(SignedSettings* op) { in OnOpStarted()
79 virtual void OnOpCompleted(SignedSettings* op) { in OnOpCompleted()
92 to_return.set_policy_type(SignedSettings::kDevicePolicyType); in BuildPolicyData()
131 EXPECT_CALL(cb, OnWhitelistCompleted(SignedSettings::SUCCESS, _)) in TEST_F()
[all …]
Dsigned_settings_helper.cc63 SignedSettings* op() const { in op()
97 scoped_refptr<SignedSettings> op_;
101 class WhitelistOpContext : public SignedSettings::Delegate<bool>,
120 virtual void OnSettingsOpCompleted(SignedSettings::ReturnCode code, in OnSettingsOpCompleted()
146 op_ = SignedSettings::CreateCheckWhitelistOp(email_, this); in CreateOp()
149 op_ = SignedSettings::CreateWhitelistOp(email_, true, this); in CreateOp()
152 op_ = SignedSettings::CreateWhitelistOp(email_, false, this); in CreateOp()
167 class StorePropertyOpContext : public SignedSettings::Delegate<bool>,
180 virtual void OnSettingsOpCompleted(SignedSettings::ReturnCode code, in OnSettingsOpCompleted()
191 op_ = SignedSettings::CreateStorePropertyOp(name_, value_, this); in CreateOp()
[all …]
Dsigned_settings_temp_storage.cc15 static base::LazyInstance<chromeos::SignedSettings::Delegate<bool> >
70 SignedSettings::CreateStorePropertyOp( in Finalize()
Dlogin_performer.h88 virtual void OnCheckWhitelistCompleted(SignedSettings::ReturnCode code,
Dlogin_performer.cc199 void LoginPerformer::OnCheckWhitelistCompleted(SignedSettings::ReturnCode code, in OnCheckWhitelistCompleted()
201 if (code == SignedSettings::SUCCESS) { in OnCheckWhitelistCompleted()
/external/chromium/chrome/browser/policy/
Ddevice_policy_cache.cc33 typedef Callback1<chromeos::SignedSettings::ReturnCode>::Type Callback;
49 chromeos::SignedSettings::ReturnCode code) OVERRIDE { in OnStorePolicyCompleted()
50 if (code != chromeos::SignedSettings::SUCCESS) { in OnStorePolicyCompleted()
67 callback_->Run(chromeos::SignedSettings::SUCCESS); in OnStorePolicyCompleted()
76 callback_->Run(chromeos::SignedSettings::SUCCESS); in OnKeyUpdated()
185 chromeos::SignedSettings::ReturnCode code, in OnRetrievePolicyCompleted()
190 if (code == chromeos::SignedSettings::NOT_FOUND || in OnRetrievePolicyCompleted()
191 code == chromeos::SignedSettings::KEY_UNAVAILABLE || in OnRetrievePolicyCompleted()
225 if (code != chromeos::SignedSettings::SUCCESS) { in OnRetrievePolicyCompleted()
226 if (code == chromeos::SignedSettings::BAD_SIGNATURE) { in OnRetrievePolicyCompleted()
[all …]
Ddevice_policy_cache_unittest.cc21 using ::chromeos::SignedSettings;
148 MockSignedSettingsHelperRetrievePolicy(SignedSettings::SUCCESS, in TEST_F()
166 MockSignedSettingsHelperRetrievePolicy(SignedSettings::SUCCESS, in TEST_F()
178 MockSignedSettingsHelperStorePolicy(chromeos::SignedSettings::SUCCESS)); in TEST_F()
180 MockSignedSettingsHelperRetrievePolicy(SignedSettings::SUCCESS, in TEST_F()
198 MockSignedSettingsHelperRetrievePolicy(SignedSettings::SUCCESS, in TEST_F()
222 MockSignedSettingsHelperRetrievePolicy(SignedSettings::SUCCESS, in TEST_F()
249 MockSignedSettingsHelperRetrievePolicy(SignedSettings::SUCCESS, in TEST_F()
Ddevice_policy_cache.h41 chromeos::SignedSettings::ReturnCode code,
59 void PolicyStoreOpCompleted(chromeos::SignedSettings::ReturnCode code);
/external/chromium/chrome/browser/chromeos/
Dproxy_config_service_impl.h38 public SignedSettings::Delegate<bool>,
39 public SignedSettings::Delegate<std::string> {
198 virtual void OnSettingsOpCompleted(SignedSettings::ReturnCode code,
200 virtual void OnSettingsOpCompleted(SignedSettings::ReturnCode code,
256 scoped_refptr<SignedSettings> retrieve_property_op_;
257 scoped_refptr<SignedSettings> store_property_op_;
Duser_cros_settings_provider.cc137 if (!SignedSettings::EnumerateWhitelist(&whitelist)) { in GetUserWhitelist()
305 virtual void OnRetrievePropertyCompleted(SignedSettings::ReturnCode code, in OnRetrievePropertyCompleted()
317 case SignedSettings::SUCCESS: in OnRetrievePropertyCompleted()
318 case SignedSettings::NOT_FOUND: in OnRetrievePropertyCompleted()
319 case SignedSettings::KEY_UNAVAILABLE: { in OnRetrievePropertyCompleted()
321 || (code == SignedSettings::NOT_FOUND); in OnRetrievePropertyCompleted()
322 DCHECK(fallback_to_default || code == SignedSettings::SUCCESS); in OnRetrievePropertyCompleted()
338 case SignedSettings::OPERATION_FAILED: in OnRetrievePropertyCompleted()
340 DCHECK(code == SignedSettings::OPERATION_FAILED); in OnRetrievePropertyCompleted()
369 if (code == SignedSettings::SUCCESS) in OnRetrievePropertyCompleted()
[all …]
Dproxy_config_service_impl.cc325 retrieve_property_op_ = SignedSettings::CreateRetrievePropertyOp( in ProxyConfigServiceImpl()
452 SignedSettings::ReturnCode code, in OnSettingsOpCompleted()
454 if (SignedSettings::SUCCESS == code) in OnSettingsOpCompleted()
464 SignedSettings::ReturnCode code, in OnSettingsOpCompleted()
467 if (SignedSettings::SUCCESS == code) { in OnSettingsOpCompleted()
494 store_property_op_ = SignedSettings::CreateStorePropertyOp( in PersistConfigToDevice()
/external/chromium/chrome/browser/chromeos/cros/
Dlogin_library.cc202 : public SignedSettings::Delegate<const em::PolicyFetchResponse&> {
206 void set_fetcher(SignedSettings* s) { polfetcher_ = s; } in set_fetcher()
207 SignedSettings* fetcher() { return polfetcher_.get(); } in fetcher()
209 virtual void OnSettingsOpCompleted(SignedSettings::ReturnCode code, in OnSettingsOpCompleted()
215 scoped_refptr<SignedSettings> polfetcher_;
281 stub->set_fetcher(SignedSettings::CreateRetrievePolicyOp(stub)); in CompletePropertyOp()