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

Side by Side Diff: chrome/service/cloud_print/cloud_print_auth.h

Issue 1899083002: Convert //chrome from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . 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 (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 CHROME_SERVICE_CLOUD_PRINT_CLOUD_PRINT_AUTH_H_ 5 #ifndef CHROME_SERVICE_CLOUD_PRINT_CLOUD_PRINT_AUTH_H_
6 #define CHROME_SERVICE_CLOUD_PRINT_CLOUD_PRINT_AUTH_H_ 6 #define CHROME_SERVICE_CLOUD_PRINT_CLOUD_PRINT_AUTH_H_
7 7
8 #include <memory>
8 #include <string> 9 #include <string>
9 10
10 #include "base/macros.h" 11 #include "base/macros.h"
11 #include "base/values.h" 12 #include "base/values.h"
12 #include "chrome/service/cloud_print/cloud_print_url_fetcher.h" 13 #include "chrome/service/cloud_print/cloud_print_url_fetcher.h"
13 #include "google_apis/gaia/gaia_oauth_client.h" 14 #include "google_apis/gaia/gaia_oauth_client.h"
14 #include "url/gurl.h" 15 #include "url/gurl.h"
15 16
16 namespace cloud_print { 17 namespace cloud_print {
17 18
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 bool succeeded) override; 74 bool succeeded) override;
74 CloudPrintURLFetcher::ResponseAction OnRequestAuthError() override; 75 CloudPrintURLFetcher::ResponseAction OnRequestAuthError() override;
75 std::string GetAuthHeader() override; 76 std::string GetAuthHeader() override;
76 77
77 private: 78 private:
78 friend class base::RefCountedThreadSafe<CloudPrintAuth>; 79 friend class base::RefCountedThreadSafe<CloudPrintAuth>;
79 ~CloudPrintAuth() override; 80 ~CloudPrintAuth() override;
80 81
81 Client* client_; 82 Client* client_;
82 gaia::OAuthClientInfo oauth_client_info_; 83 gaia::OAuthClientInfo oauth_client_info_;
83 scoped_ptr<gaia::GaiaOAuthClient> oauth_client_; 84 std::unique_ptr<gaia::GaiaOAuthClient> oauth_client_;
84 85
85 // The CloudPrintURLFetcher instance for the current request. 86 // The CloudPrintURLFetcher instance for the current request.
86 scoped_refptr<CloudPrintURLFetcher> request_; 87 scoped_refptr<CloudPrintURLFetcher> request_;
87 88
88 GURL cloud_print_server_url_; 89 GURL cloud_print_server_url_;
89 // Proxy id, need to send to the cloud print server to find and update 90 // Proxy id, need to send to the cloud print server to find and update
90 // necessary printers during the migration process. 91 // necessary printers during the migration process.
91 const std::string& proxy_id_; 92 const std::string& proxy_id_;
92 // The OAuth2 refresh token for the robot. 93 // The OAuth2 refresh token for the robot.
93 std::string refresh_token_; 94 std::string refresh_token_;
94 // The email address of the user. This is only used during initial 95 // The email address of the user. This is only used during initial
95 // authentication with an LSID. This is only used for storing in prefs for 96 // authentication with an LSID. This is only used for storing in prefs for
96 // display purposes. 97 // display purposes.
97 std::string user_email_; 98 std::string user_email_;
98 // The email address of the robot account. 99 // The email address of the robot account.
99 std::string robot_email_; 100 std::string robot_email_;
100 // client login token used to authenticate request to cloud print server to 101 // client login token used to authenticate request to cloud print server to
101 // get the robot account. 102 // get the robot account.
102 std::string client_login_token_; 103 std::string client_login_token_;
103 104
104 DISALLOW_COPY_AND_ASSIGN(CloudPrintAuth); 105 DISALLOW_COPY_AND_ASSIGN(CloudPrintAuth);
105 }; 106 };
106 107
107 } // namespace cloud_print 108 } // namespace cloud_print
108 109
109 #endif // CHROME_SERVICE_CLOUD_PRINT_CLOUD_PRINT_AUTH_H_ 110 #endif // CHROME_SERVICE_CLOUD_PRINT_CLOUD_PRINT_AUTH_H_
110 111
OLDNEW
« no previous file with comments | « chrome/service/cloud_print/cdd_conversion_win.cc ('k') | chrome/service/cloud_print/cloud_print_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698