| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 COMPONENTS_SIGNIN_CORE_BROWSER_CHILD_ACCOUNT_INFO_FETCHER_H_ | 5 #ifndef COMPONENTS_SIGNIN_CORE_BROWSER_CHILD_ACCOUNT_INFO_FETCHER_H_ |
| 6 #define COMPONENTS_SIGNIN_CORE_BROWSER_CHILD_ACCOUNT_INFO_FETCHER_H_ | 6 #define COMPONENTS_SIGNIN_CORE_BROWSER_CHILD_ACCOUNT_INFO_FETCHER_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 public: | 27 public: |
| 28 // Caller takes ownership of the fetcher and keeps it alive in order to | 28 // Caller takes ownership of the fetcher and keeps it alive in order to |
| 29 // receive updates. | 29 // receive updates. |
| 30 static std::unique_ptr<ChildAccountInfoFetcher> CreateFrom( | 30 static std::unique_ptr<ChildAccountInfoFetcher> CreateFrom( |
| 31 const std::string& account_id, | 31 const std::string& account_id, |
| 32 AccountFetcherService* fetcher_service, | 32 AccountFetcherService* fetcher_service, |
| 33 OAuth2TokenService* token_service, | 33 OAuth2TokenService* token_service, |
| 34 net::URLRequestContextGetter* request_context_getter, | 34 net::URLRequestContextGetter* request_context_getter, |
| 35 invalidation::InvalidationService* invalidation_service); | 35 invalidation::InvalidationService* invalidation_service); |
| 36 virtual ~ChildAccountInfoFetcher(); | 36 virtual ~ChildAccountInfoFetcher(); |
| 37 |
| 38 static void InitializeForTests(); |
| 37 }; | 39 }; |
| 38 | 40 |
| 39 #endif // COMPONENTS_SIGNIN_CORE_BROWSER_CHILD_ACCOUNT_INFO_FETCHER_H_ | 41 #endif // COMPONENTS_SIGNIN_CORE_BROWSER_CHILD_ACCOUNT_INFO_FETCHER_H_ |
| OLD | NEW |