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

Side by Side Diff: components/signin/core/browser/refresh_token_annotation_request.h

Issue 1893083002: Change scoped_ptr to std::unique_ptr in //net. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: scopedptr-net-all: iwyu Created 4 years, 8 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
OLDNEW
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/gtest_prod_util.h"
10 #include "base/macros.h" 10 #include "base/macros.h"
11 #include "base/memory/scoped_ptr.h"
11 #include "base/threading/non_thread_safe.h" 12 #include "base/threading/non_thread_safe.h"
12 #include "google_apis/gaia/oauth2_api_call_flow.h" 13 #include "google_apis/gaia/oauth2_api_call_flow.h"
13 #include "google_apis/gaia/oauth2_token_service.h" 14 #include "google_apis/gaia/oauth2_token_service.h"
14 15
15 class PrefService; 16 class PrefService;
16 class SigninClient; 17 class SigninClient;
17 18
18 // RefreshTokenAnnotationRequest sends request to IssueToken endpoint with 19 // RefreshTokenAnnotationRequest sends request to IssueToken endpoint with
19 // device_id to backfill device info for refresh tokens issued pre-M38. It is 20 // device_id to backfill device info for refresh tokens issued pre-M38. It is
20 // important to keep server QPS low therefore this request is sent on average 21 // 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
79 std::string device_id_; 80 std::string device_id_;
80 std::string client_id_; 81 std::string client_id_;
81 base::Closure request_callback_; 82 base::Closure request_callback_;
82 83
83 scoped_ptr<OAuth2TokenService::Request> access_token_request_; 84 scoped_ptr<OAuth2TokenService::Request> access_token_request_;
84 85
85 DISALLOW_COPY_AND_ASSIGN(RefreshTokenAnnotationRequest); 86 DISALLOW_COPY_AND_ASSIGN(RefreshTokenAnnotationRequest);
86 }; 87 };
87 88
88 #endif // COMPONENTS_SIGNIN_CORE_BROWSER_REFRESH_TOKEN_ANNOTATION_REQUEST_H_ 89 #endif // COMPONENTS_SIGNIN_CORE_BROWSER_REFRESH_TOKEN_ANNOTATION_REQUEST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698