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

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

Issue 226643012: Upstream iOS implementation of ProfileOAuth2TokenService (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Nits Created 6 years, 8 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 21 matching lines...) Expand all
32 32
33 // Returns true. 33 // Returns true.
34 virtual bool CanRevokeCredentials() OVERRIDE; 34 virtual bool CanRevokeCredentials() OVERRIDE;
35 35
36 // Returns the empty string. 36 // Returns the empty string.
37 virtual std::string GetProductVersion() OVERRIDE; 37 virtual std::string GetProductVersion() OVERRIDE;
38 38
39 // Returns a TestURLRequestContextGetter. 39 // Returns a TestURLRequestContextGetter.
40 virtual net::URLRequestContextGetter* GetURLRequestContext() OVERRIDE; 40 virtual net::URLRequestContextGetter* GetURLRequestContext() OVERRIDE;
41 41
42 #if defined(OS_IOS)
43 virtual ios::ProfileOAuth2TokenServiceIOSProvider* GetIOSProvider() OVERRIDE;
44 #endif
45
42 // Returns true. 46 // Returns true.
43 virtual bool ShouldMergeSigninCredentialsIntoCookieJar() OVERRIDE; 47 virtual bool ShouldMergeSigninCredentialsIntoCookieJar() OVERRIDE;
44 48
45 // Does nothing. 49 // Does nothing.
46 virtual void SetCookieChangedCallback(const CookieChangedCallback& callback) 50 virtual void SetCookieChangedCallback(const CookieChangedCallback& callback)
47 OVERRIDE; 51 OVERRIDE;
48 52
49 private: 53 private:
50 // Loads the token database. 54 // Loads the token database.
51 void LoadDatabase(); 55 void LoadDatabase();
52 56
53 base::ScopedTempDir temp_dir_; 57 base::ScopedTempDir temp_dir_;
54 scoped_refptr<net::TestURLRequestContextGetter> request_context_; 58 scoped_refptr<net::TestURLRequestContextGetter> request_context_;
55 scoped_refptr<TokenWebData> database_; 59 scoped_refptr<TokenWebData> database_;
56 60
57 DISALLOW_COPY_AND_ASSIGN(TestSigninClient); 61 DISALLOW_COPY_AND_ASSIGN(TestSigninClient);
58 }; 62 };
59 63
60 #endif // COMPONENTS_SIGNIN_CORE_BROWSER_TEST_SIGNIN_CLIENT_H_ 64 #endif // COMPONENTS_SIGNIN_CORE_BROWSER_TEST_SIGNIN_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698