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

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

Issue 11360151: Move common cloud print methods from service/cloud_print to common/cloud_print. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years 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 | Annotate | Revision Log
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 <string> 8 #include <string>
9 9
10 #include "base/values.h" 10 #include "base/values.h"
11 #include "chrome/service/cloud_print/cloud_print_url_fetcher.h" 11 #include "chrome/service/cloud_print/cloud_print_url_fetcher.h"
12 #include "google_apis/gaia/gaia_oauth_client.h" 12 #include "google_apis/gaia/gaia_oauth_client.h"
13 #include "googleurl/src/gurl.h" 13 #include "googleurl/src/gurl.h"
14 14
15 namespace cloud_print {
16
15 // CloudPrintAuth is a class to handle login, token refresh, and other 17 // CloudPrintAuth is a class to handle login, token refresh, and other
16 // authentication tasks for Cloud Print. 18 // authentication tasks for Cloud Print.
17 // CloudPrintAuth will create new robot account for this proxy if needed. 19 // CloudPrintAuth will create new robot account for this proxy if needed.
18 // CloudPrintAuth will obtain new OAuth token. 20 // CloudPrintAuth will obtain new OAuth token.
19 // CloudPrintAuth will schedule periodic OAuth token refresh 21 // CloudPrintAuth will schedule periodic OAuth token refresh
20 // It is running in the same thread as CloudPrintProxyBackend::Core. 22 // It is running in the same thread as CloudPrintProxyBackend::Core.
21 class CloudPrintAuth 23 class CloudPrintAuth
22 : public base::RefCountedThreadSafe<CloudPrintAuth>, 24 : public base::RefCountedThreadSafe<CloudPrintAuth>,
23 public CloudPrintURLFetcherDelegate, 25 public CloudPrintURLFetcherDelegate,
24 public gaia::GaiaOAuthClient::Delegate { 26 public gaia::GaiaOAuthClient::Delegate {
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 std::string user_email_; 104 std::string user_email_;
103 // The email address of the robot account. 105 // The email address of the robot account.
104 std::string robot_email_; 106 std::string robot_email_;
105 // client login token used to authenticate request to cloud print server to 107 // client login token used to authenticate request to cloud print server to
106 // get the robot account. 108 // get the robot account.
107 std::string client_login_token_; 109 std::string client_login_token_;
108 110
109 DISALLOW_COPY_AND_ASSIGN(CloudPrintAuth); 111 DISALLOW_COPY_AND_ASSIGN(CloudPrintAuth);
110 }; 112 };
111 113
114 } // namespace cloud_print
115
112 #endif // CHROME_SERVICE_CLOUD_PRINT_CLOUD_PRINT_AUTH_H_ 116 #endif // CHROME_SERVICE_CLOUD_PRINT_CLOUD_PRINT_AUTH_H_
113 117
OLDNEW
« no previous file with comments | « chrome/common/cloud_print/cloud_print_helpers_unittest.cc ('k') | chrome/service/cloud_print/cloud_print_auth.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698