OLD | NEW |
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_REFRESH_TOKEN_ANNOTATION_REQUEST_H_ | 5 #ifndef COMPONENTS_SIGNIN_CORE_BROWSER_REFRESH_TOKEN_ANNOTATION_REQUEST_H_ |
6 #define COMPONENTS_SIGNIN_CORE_BROWSER_REFRESH_TOKEN_ANNOTATION_REQUEST_H_ | 6 #define COMPONENTS_SIGNIN_CORE_BROWSER_REFRESH_TOKEN_ANNOTATION_REQUEST_H_ |
7 | 7 |
8 #include "base/callback.h" | 8 #include "base/callback.h" |
| 9 #include "base/gtest_prod_util.h" |
9 #include "base/threading/non_thread_safe.h" | 10 #include "base/threading/non_thread_safe.h" |
10 #include "google_apis/gaia/oauth2_api_call_flow.h" | 11 #include "google_apis/gaia/oauth2_api_call_flow.h" |
11 #include "google_apis/gaia/oauth2_token_service.h" | 12 #include "google_apis/gaia/oauth2_token_service.h" |
12 | 13 |
13 class PrefService; | 14 class PrefService; |
14 class SigninClient; | 15 class SigninClient; |
15 | 16 |
16 // RefreshTokenAnnotationRequest sends request to IssueToken endpoint with | 17 // RefreshTokenAnnotationRequest sends request to IssueToken endpoint with |
17 // device_id to backfill device info for refresh tokens issued pre-M38. It is | 18 // device_id to backfill device info for refresh tokens issued pre-M38. It is |
18 // important to keep server QPS low therefore this request is sent on average | 19 // important to keep server QPS low therefore this request is sent on average |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
77 std::string device_id_; | 78 std::string device_id_; |
78 std::string client_id_; | 79 std::string client_id_; |
79 base::Closure request_callback_; | 80 base::Closure request_callback_; |
80 | 81 |
81 scoped_ptr<OAuth2TokenService::Request> access_token_request_; | 82 scoped_ptr<OAuth2TokenService::Request> access_token_request_; |
82 | 83 |
83 DISALLOW_COPY_AND_ASSIGN(RefreshTokenAnnotationRequest); | 84 DISALLOW_COPY_AND_ASSIGN(RefreshTokenAnnotationRequest); |
84 }; | 85 }; |
85 | 86 |
86 #endif // COMPONENTS_SIGNIN_CORE_BROWSER_REFRESH_TOKEN_ANNOTATION_REQUEST_H_ | 87 #endif // COMPONENTS_SIGNIN_CORE_BROWSER_REFRESH_TOKEN_ANNOTATION_REQUEST_H_ |
OLD | NEW |