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

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

Issue 2757873002: Change SigninClient::CreateGaiaAuthFetcher return type to unique_ptr (Closed)
Patch Set: Created 3 years, 9 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
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 <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
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_
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