OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 CHROME_BROWSER_SIGNIN_FAKE_OAUTH2_TOKEN_SERVICE_DELEGATE_H_ | 5 #ifndef CHROME_BROWSER_SIGNIN_FAKE_OAUTH2_TOKEN_SERVICE_DELEGATE_H_ |
6 #define CHROME_BROWSER_SIGNIN_FAKE_OAUTH2_TOKEN_SERVICE_DELEGATE_H_ | 6 #define CHROME_BROWSER_SIGNIN_FAKE_OAUTH2_TOKEN_SERVICE_DELEGATE_H_ |
7 | 7 |
| 8 #include "base/macros.h" |
8 #include "base/memory/linked_ptr.h" | 9 #include "base/memory/linked_ptr.h" |
9 #include "google_apis/gaia/google_service_auth_error.h" | 10 #include "google_apis/gaia/google_service_auth_error.h" |
10 #include "google_apis/gaia/oauth2_token_service_delegate.h" | 11 #include "google_apis/gaia/oauth2_token_service_delegate.h" |
11 #include "net/url_request/url_request_context_getter.h" | 12 #include "net/url_request/url_request_context_getter.h" |
12 | 13 |
13 class FakeOAuth2TokenServiceDelegate : public OAuth2TokenServiceDelegate { | 14 class FakeOAuth2TokenServiceDelegate : public OAuth2TokenServiceDelegate { |
14 public: | 15 public: |
15 FakeOAuth2TokenServiceDelegate(net::URLRequestContextGetter* request_context); | 16 FakeOAuth2TokenServiceDelegate(net::URLRequestContextGetter* request_context); |
16 ~FakeOAuth2TokenServiceDelegate() override; | 17 ~FakeOAuth2TokenServiceDelegate() override; |
17 | 18 |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 | 57 |
57 // Maps account ids to info. | 58 // Maps account ids to info. |
58 typedef std::map<std::string, linked_ptr<AccountInfo>> AccountInfoMap; | 59 typedef std::map<std::string, linked_ptr<AccountInfo>> AccountInfoMap; |
59 AccountInfoMap refresh_tokens_; | 60 AccountInfoMap refresh_tokens_; |
60 | 61 |
61 scoped_refptr<net::URLRequestContextGetter> request_context_; | 62 scoped_refptr<net::URLRequestContextGetter> request_context_; |
62 | 63 |
63 DISALLOW_COPY_AND_ASSIGN(FakeOAuth2TokenServiceDelegate); | 64 DISALLOW_COPY_AND_ASSIGN(FakeOAuth2TokenServiceDelegate); |
64 }; | 65 }; |
65 #endif | 66 #endif |
OLD | NEW |