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 <memory> | 8 #include <memory> |
9 | 9 |
10 #include "base/callback.h" | 10 #include "base/callback.h" |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 const std::string& access_token, | 51 const std::string& access_token, |
52 const base::Time& expiration_time) override; | 52 const base::Time& expiration_time) override; |
53 void OnGetTokenFailure(const OAuth2TokenService::Request* request, | 53 void OnGetTokenFailure(const OAuth2TokenService::Request* request, |
54 const GoogleServiceAuthError& error) override; | 54 const GoogleServiceAuthError& error) override; |
55 | 55 |
56 // OAuth2ApiCallFlow implementation. | 56 // OAuth2ApiCallFlow implementation. |
57 GURL CreateApiCallUrl() override; | 57 GURL CreateApiCallUrl() override; |
58 std::string CreateApiCallBody() override; | 58 std::string CreateApiCallBody() override; |
59 void ProcessApiCallSuccess(const net::URLFetcher* source) override; | 59 void ProcessApiCallSuccess(const net::URLFetcher* source) override; |
60 void ProcessApiCallFailure(const net::URLFetcher* source) override; | 60 void ProcessApiCallFailure(const net::URLFetcher* source) override; |
| 61 net::PartialNetworkTrafficAnnotationTag GetNetworkTrafficAnnotationTag() |
| 62 override; |
61 | 63 |
62 private: | 64 private: |
63 FRIEND_TEST_ALL_PREFIXES(RefreshTokenAnnotationRequestTest, ShouldSendNow); | 65 FRIEND_TEST_ALL_PREFIXES(RefreshTokenAnnotationRequestTest, ShouldSendNow); |
64 FRIEND_TEST_ALL_PREFIXES(RefreshTokenAnnotationRequestTest, | 66 FRIEND_TEST_ALL_PREFIXES(RefreshTokenAnnotationRequestTest, |
65 CreateApiCallBody); | 67 CreateApiCallBody); |
66 | 68 |
67 RefreshTokenAnnotationRequest( | 69 RefreshTokenAnnotationRequest( |
68 const scoped_refptr<net::URLRequestContextGetter>& request_context_getter, | 70 const scoped_refptr<net::URLRequestContextGetter>& request_context_getter, |
69 const std::string& product_version, | 71 const std::string& product_version, |
70 const std::string& device_id, | 72 const std::string& device_id, |
(...skipping 11 matching lines...) Expand all Loading... |
82 base::Closure request_callback_; | 84 base::Closure request_callback_; |
83 | 85 |
84 std::unique_ptr<OAuth2TokenService::Request> access_token_request_; | 86 std::unique_ptr<OAuth2TokenService::Request> access_token_request_; |
85 | 87 |
86 SEQUENCE_CHECKER(sequence_checker_); | 88 SEQUENCE_CHECKER(sequence_checker_); |
87 | 89 |
88 DISALLOW_COPY_AND_ASSIGN(RefreshTokenAnnotationRequest); | 90 DISALLOW_COPY_AND_ASSIGN(RefreshTokenAnnotationRequest); |
89 }; | 91 }; |
90 | 92 |
91 #endif // COMPONENTS_SIGNIN_CORE_BROWSER_REFRESH_TOKEN_ANNOTATION_REQUEST_H_ | 93 #endif // COMPONENTS_SIGNIN_CORE_BROWSER_REFRESH_TOKEN_ANNOTATION_REQUEST_H_ |
OLD | NEW |