Chromium Code Reviews| 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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 52 virtual bool ShouldMergeSigninCredentialsIntoCookieJar() OVERRIDE; | 52 virtual bool ShouldMergeSigninCredentialsIntoCookieJar() OVERRIDE; |
| 53 | 53 |
| 54 // Does nothing. | 54 // Does nothing. |
| 55 virtual void SetCookieChangedCallback(const CookieChangedCallback& callback) | 55 virtual void SetCookieChangedCallback(const CookieChangedCallback& callback) |
| 56 OVERRIDE; | 56 OVERRIDE; |
| 57 | 57 |
| 58 #if defined(OS_IOS) | 58 #if defined(OS_IOS) |
| 59 ios::FakeProfileOAuth2TokenServiceIOSProvider* GetIOSProviderAsFake(); | 59 ios::FakeProfileOAuth2TokenServiceIOSProvider* GetIOSProviderAsFake(); |
| 60 #endif | 60 #endif |
| 61 | 61 |
| 62 virtual void SetSigninProcess(int host_id) OVERRIDE; | |
|
Roger Tawa OOO till Jul 10th
2014/05/22 23:04:38
nit comment: // SigninClient overrides:
Mike Lerman
2014/05/23 12:40:58
Done.
| |
| 63 virtual void ClearSigninProcess() OVERRIDE; | |
| 64 virtual bool IsSigninProcess(int host_id) const OVERRIDE; | |
| 65 virtual bool HasSigninProcess() const OVERRIDE; | |
| 66 | |
| 62 private: | 67 private: |
| 63 // Loads the token database. | 68 // Loads the token database. |
| 64 void LoadDatabase(); | 69 void LoadDatabase(); |
| 65 | 70 |
| 66 base::ScopedTempDir temp_dir_; | 71 base::ScopedTempDir temp_dir_; |
| 67 scoped_refptr<net::TestURLRequestContextGetter> request_context_; | 72 scoped_refptr<net::TestURLRequestContextGetter> request_context_; |
| 68 scoped_refptr<TokenWebData> database_; | 73 scoped_refptr<TokenWebData> database_; |
| 74 int signin_host_id_; | |
| 69 | 75 |
| 70 #if defined(OS_IOS) | 76 #if defined(OS_IOS) |
| 71 scoped_ptr<ios::FakeProfileOAuth2TokenServiceIOSProvider> iosProvider_; | 77 scoped_ptr<ios::FakeProfileOAuth2TokenServiceIOSProvider> iosProvider_; |
| 72 #endif | 78 #endif |
| 73 | 79 |
| 74 DISALLOW_COPY_AND_ASSIGN(TestSigninClient); | 80 DISALLOW_COPY_AND_ASSIGN(TestSigninClient); |
| 75 }; | 81 }; |
| 76 | 82 |
| 77 #endif // COMPONENTS_SIGNIN_CORE_BROWSER_TEST_SIGNIN_CLIENT_H_ | 83 #endif // COMPONENTS_SIGNIN_CORE_BROWSER_TEST_SIGNIN_CLIENT_H_ |
| OLD | NEW |