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

Side by Side Diff: chrome/browser/sync/fake_oauth2_token_service.h

Issue 136723009: Move UbertokenFetcher from //chrome to //google_apis. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 6 years, 11 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
(Empty)
1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_SYNC_FAKE_OAUTH2_TOKEN_SERVICE_H_
6 #define CHROME_BROWSER_SYNC_FAKE_OAUTH2_TOKEN_SERVICE_H_
7
8 #include "chrome/browser/signin/profile_oauth2_token_service.h"
9
10 namespace content {
11 class BrowserContext;
12 }
13
14 class FakeOAuth2TokenService : public ProfileOAuth2TokenService {
15 public:
16 static BrowserContextKeyedService* BuildTokenService(
17 content::BrowserContext* context);
18
19 virtual bool RefreshTokenIsAvailable(
20 const std::string& account_id) OVERRIDE;
21
22 virtual void UpdateCredentials(const std::string& account_id,
23 const std::string& refresh_token) OVERRIDE;
24
25 protected:
26 virtual void FetchOAuth2Token(
27 OAuth2TokenService::RequestImpl* request,
28 const std::string& account_id,
29 net::URLRequestContextGetter* getter,
30 const std::string& client_id,
31 const std::string& client_secret,
32 const OAuth2TokenService::ScopeSet& scopes) OVERRIDE;
33
34 private:
35 std::string account_id_;
36 std::string refresh_token_;
37 };
38
39 #endif // CHROME_BROWSER_SYNC_FAKE_OAUTH2_TOKEN_SERVICE_H_
OLDNEW
« no previous file with comments | « chrome/browser/signin/ubertoken_fetcher_unittest.cc ('k') | chrome/browser/sync/fake_oauth2_token_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698