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 28 matching lines...) Expand all Loading... |
39 virtual void Shutdown() override; | 39 virtual void Shutdown() override; |
40 | 40 |
41 private: | 41 private: |
42 friend class ChildAccountServiceFactory; | 42 friend class ChildAccountServiceFactory; |
43 // Use |ChildAccountServiceFactory::GetForProfile(...)| to get an instance of | 43 // Use |ChildAccountServiceFactory::GetForProfile(...)| to get an instance of |
44 // this service. | 44 // this service. |
45 explicit ChildAccountService(Profile* profile); | 45 explicit ChildAccountService(Profile* profile); |
46 | 46 |
47 // SupervisedUserService::Delegate implementation. | 47 // SupervisedUserService::Delegate implementation. |
48 virtual bool SetActive(bool active) override; | 48 virtual bool SetActive(bool active) override; |
49 virtual bool IsChildAccount() const override; | |
50 virtual base::FilePath GetBlacklistPath() const override; | 49 virtual base::FilePath GetBlacklistPath() const override; |
51 virtual GURL GetBlacklistURL() const override; | 50 virtual GURL GetBlacklistURL() const override; |
52 virtual std::string GetSafeSitesCx() const override; | 51 virtual std::string GetSafeSitesCx() const override; |
53 | 52 |
54 // SigninManagerBase::Observer implementation. | 53 // SigninManagerBase::Observer implementation. |
55 virtual void GoogleSigninSucceeded(const std::string& account_id, | 54 virtual void GoogleSigninSucceeded(const std::string& account_id, |
56 const std::string& username, | 55 const std::string& username, |
57 const std::string& password) override; | 56 const std::string& password) override; |
58 virtual void GoogleSignedOut(const std::string& account_id, | 57 virtual void GoogleSignedOut(const std::string& account_id, |
59 const std::string& username) override; | 58 const std::string& username) override; |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
92 scoped_ptr<AccountServiceFlagFetcher> flag_fetcher_; | 91 scoped_ptr<AccountServiceFlagFetcher> flag_fetcher_; |
93 | 92 |
94 scoped_ptr<FamilyInfoFetcher> family_fetcher_; | 93 scoped_ptr<FamilyInfoFetcher> family_fetcher_; |
95 | 94 |
96 base::WeakPtrFactory<ChildAccountService> weak_ptr_factory_; | 95 base::WeakPtrFactory<ChildAccountService> weak_ptr_factory_; |
97 | 96 |
98 DISALLOW_COPY_AND_ASSIGN(ChildAccountService); | 97 DISALLOW_COPY_AND_ASSIGN(ChildAccountService); |
99 }; | 98 }; |
100 | 99 |
101 #endif // CHROME_BROWSER_SUPERVISED_USER_CHILD_ACCOUNTS_CHILD_ACCOUNT_SERVICE_H
_ | 100 #endif // CHROME_BROWSER_SUPERVISED_USER_CHILD_ACCOUNTS_CHILD_ACCOUNT_SERVICE_H
_ |
OLD | NEW |