| 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 COMPONENTS_SIGNIN_CORE_BROWSER_TEST_SIGNIN_CLIENT_H_ | 5 #ifndef COMPONENTS_SIGNIN_CORE_BROWSER_TEST_SIGNIN_CLIENT_H_ |
| 6 #define COMPONENTS_SIGNIN_CORE_BROWSER_TEST_SIGNIN_CLIENT_H_ | 6 #define COMPONENTS_SIGNIN_CORE_BROWSER_TEST_SIGNIN_CLIENT_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
| 10 #include "base/files/scoped_temp_dir.h" | 10 #include "base/files/scoped_temp_dir.h" |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 #endif | 84 #endif |
| 85 | 85 |
| 86 // SigninClient overrides: | 86 // SigninClient overrides: |
| 87 void SetSigninProcess(int host_id) override; | 87 void SetSigninProcess(int host_id) override; |
| 88 void ClearSigninProcess() override; | 88 void ClearSigninProcess() override; |
| 89 bool IsSigninProcess(int host_id) const override; | 89 bool IsSigninProcess(int host_id) const override; |
| 90 bool HasSigninProcess() const override; | 90 bool HasSigninProcess() const override; |
| 91 bool IsFirstRun() const override; | 91 bool IsFirstRun() const override; |
| 92 base::Time GetInstallDate() override; | 92 base::Time GetInstallDate() override; |
| 93 | 93 |
| 94 // SigninErrorController overrides: |
| 95 void OnErrorChanged() override; |
| 96 |
| 94 private: | 97 private: |
| 95 // Loads the token database. | 98 // Loads the token database. |
| 96 void LoadDatabase(); | 99 void LoadDatabase(); |
| 97 | 100 |
| 98 base::ScopedTempDir temp_dir_; | 101 base::ScopedTempDir temp_dir_; |
| 99 scoped_refptr<net::URLRequestContextGetter> request_context_; | 102 scoped_refptr<net::URLRequestContextGetter> request_context_; |
| 100 scoped_refptr<TokenWebData> database_; | 103 scoped_refptr<TokenWebData> database_; |
| 101 int signin_host_id_; | 104 int signin_host_id_; |
| 102 PrefService* pref_service_; | 105 PrefService* pref_service_; |
| 103 | 106 |
| 104 // Pointer to be filled by PostSignedIn. | 107 // Pointer to be filled by PostSignedIn. |
| 105 std::string signed_in_password_; | 108 std::string signed_in_password_; |
| 106 | 109 |
| 107 #if defined(OS_IOS) | 110 #if defined(OS_IOS) |
| 108 scoped_ptr<ios::FakeProfileOAuth2TokenServiceIOSProvider> iosProvider_; | 111 scoped_ptr<ios::FakeProfileOAuth2TokenServiceIOSProvider> iosProvider_; |
| 109 #endif | 112 #endif |
| 110 | 113 |
| 111 DISALLOW_COPY_AND_ASSIGN(TestSigninClient); | 114 DISALLOW_COPY_AND_ASSIGN(TestSigninClient); |
| 112 }; | 115 }; |
| 113 | 116 |
| 114 #endif // COMPONENTS_SIGNIN_CORE_BROWSER_TEST_SIGNIN_CLIENT_H_ | 117 #endif // COMPONENTS_SIGNIN_CORE_BROWSER_TEST_SIGNIN_CLIENT_H_ |
| OLD | NEW |