| 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_SUPERVISED_USER_CHILD_ACCOUNTS_CHILD_ACCOUNT_SERVICE_H_ | 5 #ifndef CHROME_BROWSER_SUPERVISED_USER_CHILD_ACCOUNTS_CHILD_ACCOUNT_SERVICE_H_ |
| 6 #define CHROME_BROWSER_SUPERVISED_USER_CHILD_ACCOUNTS_CHILD_ACCOUNT_SERVICE_H_ | 6 #define CHROME_BROWSER_SUPERVISED_USER_CHILD_ACCOUNTS_CHILD_ACCOUNT_SERVICE_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 const std::string& username, | 63 const std::string& username, |
| 64 const std::string& password) override; | 64 const std::string& password) override; |
| 65 void GoogleSignedOut(const std::string& account_id, | 65 void GoogleSignedOut(const std::string& account_id, |
| 66 const std::string& username) override; | 66 const std::string& username) override; |
| 67 | 67 |
| 68 // FamilyInfoFetcher::Consumer implementation. | 68 // FamilyInfoFetcher::Consumer implementation. |
| 69 void OnGetFamilyMembersSuccess( | 69 void OnGetFamilyMembersSuccess( |
| 70 const std::vector<FamilyInfoFetcher::FamilyMember>& members) override; | 70 const std::vector<FamilyInfoFetcher::FamilyMember>& members) override; |
| 71 void OnFailure(FamilyInfoFetcher::ErrorCode error) override; | 71 void OnFailure(FamilyInfoFetcher::ErrorCode error) override; |
| 72 | 72 |
| 73 bool IsChildAccountDetectionEnabled() const; |
| 74 |
| 73 void StartFetchingFamilyInfo(); | 75 void StartFetchingFamilyInfo(); |
| 74 void CancelFetchingFamilyInfo(); | 76 void CancelFetchingFamilyInfo(); |
| 75 void ScheduleNextFamilyInfoUpdate(base::TimeDelta delay); | 77 void ScheduleNextFamilyInfoUpdate(base::TimeDelta delay); |
| 76 | 78 |
| 77 void StartFetchingServiceFlags(); | 79 void StartFetchingServiceFlags(); |
| 78 void CancelFetchingServiceFlags(); | 80 void CancelFetchingServiceFlags(); |
| 79 void OnFlagsFetched(AccountServiceFlagFetcher::ResultCode, | 81 void OnFlagsFetched(AccountServiceFlagFetcher::ResultCode, |
| 80 const std::vector<std::string>& flags); | 82 const std::vector<std::string>& flags); |
| 81 void ScheduleNextStatusFlagUpdate(base::TimeDelta delay); | 83 void ScheduleNextStatusFlagUpdate(base::TimeDelta delay); |
| 82 | 84 |
| (...skipping 25 matching lines...) Expand all Loading... |
| 108 // If fetching the family info fails, retry with exponential backoff. | 110 // If fetching the family info fails, retry with exponential backoff. |
| 109 base::OneShotTimer<ChildAccountService> family_fetch_timer_; | 111 base::OneShotTimer<ChildAccountService> family_fetch_timer_; |
| 110 net::BackoffEntry family_fetch_backoff_; | 112 net::BackoffEntry family_fetch_backoff_; |
| 111 | 113 |
| 112 base::WeakPtrFactory<ChildAccountService> weak_ptr_factory_; | 114 base::WeakPtrFactory<ChildAccountService> weak_ptr_factory_; |
| 113 | 115 |
| 114 DISALLOW_COPY_AND_ASSIGN(ChildAccountService); | 116 DISALLOW_COPY_AND_ASSIGN(ChildAccountService); |
| 115 }; | 117 }; |
| 116 | 118 |
| 117 #endif // CHROME_BROWSER_SUPERVISED_USER_CHILD_ACCOUNTS_CHILD_ACCOUNT_SERVICE_H
_ | 119 #endif // CHROME_BROWSER_SUPERVISED_USER_CHILD_ACCOUNTS_CHILD_ACCOUNT_SERVICE_H
_ |
| OLD | NEW |