OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 GOOGLE_APIS_GAIA_OAUTH2_ACCESS_TOKEN_FETCHER_H_ | 5 #ifndef GOOGLE_APIS_GAIA_OAUTH2_ACCESS_TOKEN_FETCHER_H_ |
6 #define GOOGLE_APIS_GAIA_OAUTH2_ACCESS_TOKEN_FETCHER_H_ | 6 #define GOOGLE_APIS_GAIA_OAUTH2_ACCESS_TOKEN_FETCHER_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
| 11 #include "base/macros.h" |
11 #include "google_apis/gaia/oauth2_access_token_consumer.h" | 12 #include "google_apis/gaia/oauth2_access_token_consumer.h" |
12 #include "net/url_request/url_fetcher_delegate.h" | 13 #include "net/url_request/url_fetcher_delegate.h" |
13 | 14 |
14 class OAuth2AccessTokenConsumer; | 15 class OAuth2AccessTokenConsumer; |
15 | 16 |
16 // Interface of a OAuth2 access token fetcher. | 17 // Interface of a OAuth2 access token fetcher. |
17 // | 18 // |
18 // Usage: | 19 // Usage: |
19 // * Create an instance with a consumer. | 20 // * Create an instance with a consumer. |
20 // * Call Start() | 21 // * Call Start() |
(...skipping 28 matching lines...) Expand all Loading... |
49 // Fires |OnGetTokenFailure| on |consumer_|. | 50 // Fires |OnGetTokenFailure| on |consumer_|. |
50 void FireOnGetTokenFailure(const GoogleServiceAuthError& error); | 51 void FireOnGetTokenFailure(const GoogleServiceAuthError& error); |
51 | 52 |
52 private: | 53 private: |
53 OAuth2AccessTokenConsumer* const consumer_; | 54 OAuth2AccessTokenConsumer* const consumer_; |
54 | 55 |
55 DISALLOW_COPY_AND_ASSIGN(OAuth2AccessTokenFetcher); | 56 DISALLOW_COPY_AND_ASSIGN(OAuth2AccessTokenFetcher); |
56 }; | 57 }; |
57 | 58 |
58 #endif // GOOGLE_APIS_GAIA_OAUTH2_ACCESS_TOKEN_FETCHER_H_ | 59 #endif // GOOGLE_APIS_GAIA_OAUTH2_ACCESS_TOKEN_FETCHER_H_ |
OLD | NEW |