| 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 <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 80 | 80 |
| 81 // SigninClient overrides: | 81 // SigninClient overrides: |
| 82 bool IsFirstRun() const override; | 82 bool IsFirstRun() const override; |
| 83 base::Time GetInstallDate() override; | 83 base::Time GetInstallDate() override; |
| 84 bool AreSigninCookiesAllowed() override; | 84 bool AreSigninCookiesAllowed() override; |
| 85 void AddContentSettingsObserver( | 85 void AddContentSettingsObserver( |
| 86 content_settings::Observer* observer) override; | 86 content_settings::Observer* observer) override; |
| 87 void RemoveContentSettingsObserver( | 87 void RemoveContentSettingsObserver( |
| 88 content_settings::Observer* observer) override; | 88 content_settings::Observer* observer) override; |
| 89 void DelayNetworkCall(const base::Closure& callback) override; | 89 void DelayNetworkCall(const base::Closure& callback) override; |
| 90 GaiaAuthFetcher* CreateGaiaAuthFetcher( | 90 std::unique_ptr<GaiaAuthFetcher> CreateGaiaAuthFetcher( |
| 91 GaiaAuthConsumer* consumer, | 91 GaiaAuthConsumer* consumer, |
| 92 const std::string& source, | 92 const std::string& source, |
| 93 net::URLRequestContextGetter* getter) override; | 93 net::URLRequestContextGetter* getter) override; |
| 94 | 94 |
| 95 // Loads the token database. | 95 // Loads the token database. |
| 96 void LoadTokenDatabase(); | 96 void LoadTokenDatabase(); |
| 97 | 97 |
| 98 private: | 98 private: |
| 99 base::ScopedTempDir temp_dir_; | 99 base::ScopedTempDir temp_dir_; |
| 100 scoped_refptr<net::URLRequestContextGetter> request_context_; | 100 scoped_refptr<net::URLRequestContextGetter> request_context_; |
| 101 scoped_refptr<TokenWebData> database_; | 101 scoped_refptr<TokenWebData> database_; |
| 102 PrefService* pref_service_; | 102 PrefService* pref_service_; |
| 103 bool are_signin_cookies_allowed_; | 103 bool are_signin_cookies_allowed_; |
| 104 | 104 |
| 105 // Pointer to be filled by PostSignedIn. | 105 // Pointer to be filled by PostSignedIn. |
| 106 std::string signed_in_password_; | 106 std::string signed_in_password_; |
| 107 | 107 |
| 108 DISALLOW_COPY_AND_ASSIGN(TestSigninClient); | 108 DISALLOW_COPY_AND_ASSIGN(TestSigninClient); |
| 109 }; | 109 }; |
| 110 | 110 |
| 111 #endif // COMPONENTS_SIGNIN_CORE_BROWSER_TEST_SIGNIN_CLIENT_H_ | 111 #endif // COMPONENTS_SIGNIN_CORE_BROWSER_TEST_SIGNIN_CLIENT_H_ |
| OLD | NEW |