Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(204)

Side by Side Diff: components/signin/core/browser/test_signin_client.h

Issue 421583002: Show GAIA/cookie accounts on the signin-internals page. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: include for CrOS Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 virtual net::URLRequestContextGetter* GetURLRequestContext() OVERRIDE; 54 virtual net::URLRequestContextGetter* GetURLRequestContext() OVERRIDE;
55 55
56 #if defined(OS_IOS) 56 #if defined(OS_IOS)
57 virtual ios::ProfileOAuth2TokenServiceIOSProvider* GetIOSProvider() OVERRIDE; 57 virtual ios::ProfileOAuth2TokenServiceIOSProvider* GetIOSProvider() OVERRIDE;
58 #endif 58 #endif
59 59
60 // Returns true. 60 // Returns true.
61 virtual bool ShouldMergeSigninCredentialsIntoCookieJar() OVERRIDE; 61 virtual bool ShouldMergeSigninCredentialsIntoCookieJar() OVERRIDE;
62 62
63 // Does nothing. 63 // Does nothing.
64 virtual void SetCookieChangedCallback(const CookieChangedCallback& callback) 64 virtual scoped_ptr<CookieChangedCallbackList::Subscription>
65 OVERRIDE; 65 AddCookieChangedCallback(const CookieChangedCallback& callback) OVERRIDE;
66 66
67 #if defined(OS_IOS) 67 #if defined(OS_IOS)
68 ios::FakeProfileOAuth2TokenServiceIOSProvider* GetIOSProviderAsFake(); 68 ios::FakeProfileOAuth2TokenServiceIOSProvider* GetIOSProviderAsFake();
69 #endif 69 #endif
70 70
71 // SigninClient overrides: 71 // SigninClient overrides:
72 virtual void SetSigninProcess(int host_id) OVERRIDE; 72 virtual void SetSigninProcess(int host_id) OVERRIDE;
73 virtual void ClearSigninProcess() OVERRIDE; 73 virtual void ClearSigninProcess() OVERRIDE;
74 virtual bool IsSigninProcess(int host_id) const OVERRIDE; 74 virtual bool IsSigninProcess(int host_id) const OVERRIDE;
75 virtual bool HasSigninProcess() const OVERRIDE; 75 virtual bool HasSigninProcess() const OVERRIDE;
76 76
77 private: 77 private:
78 // Loads the token database. 78 // Loads the token database.
79 void LoadDatabase(); 79 void LoadDatabase();
80 80
81 base::ScopedTempDir temp_dir_; 81 base::ScopedTempDir temp_dir_;
82 scoped_refptr<net::TestURLRequestContextGetter> request_context_; 82 scoped_refptr<net::TestURLRequestContextGetter> request_context_;
83 scoped_refptr<TokenWebData> database_; 83 scoped_refptr<TokenWebData> database_;
84 int signin_host_id_; 84 int signin_host_id_;
85 CookieChangedCallbackList cookie_callbacks_;
85 86
86 PrefService* pref_service_; 87 PrefService* pref_service_;
87 88
88 #if defined(OS_IOS) 89 #if defined(OS_IOS)
89 scoped_ptr<ios::FakeProfileOAuth2TokenServiceIOSProvider> iosProvider_; 90 scoped_ptr<ios::FakeProfileOAuth2TokenServiceIOSProvider> iosProvider_;
90 #endif 91 #endif
91 92
92 DISALLOW_COPY_AND_ASSIGN(TestSigninClient); 93 DISALLOW_COPY_AND_ASSIGN(TestSigninClient);
93 }; 94 };
94 95
95 #endif // COMPONENTS_SIGNIN_CORE_BROWSER_TEST_SIGNIN_CLIENT_H_ 96 #endif // COMPONENTS_SIGNIN_CORE_BROWSER_TEST_SIGNIN_CLIENT_H_
OLDNEW
« no previous file with comments | « components/signin/core/browser/signin_client.h ('k') | components/signin/core/browser/test_signin_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698