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

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

Issue 345563008: Rename "managed (mode|user)" to "supervised user" (part 4) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: comments Created 6 years, 6 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 | Annotate | Revision Log
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_PROFILE_OAUTH2_TOKEN_SERVICE_H_ 5 #ifndef COMPONENTS_SIGNIN_CORE_BROWSER_PROFILE_OAUTH2_TOKEN_SERVICE_H_
6 #define COMPONENTS_SIGNIN_CORE_BROWSER_PROFILE_OAUTH2_TOKEN_SERVICE_H_ 6 #define COMPONENTS_SIGNIN_CORE_BROWSER_PROFILE_OAUTH2_TOKEN_SERVICE_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/gtest_prod_util.h" 10 #include "base/gtest_prod_util.h"
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 // Lists account IDs of all accounts with a refresh token. 48 // Lists account IDs of all accounts with a refresh token.
49 virtual std::vector<std::string> GetAccounts() OVERRIDE; 49 virtual std::vector<std::string> GetAccounts() OVERRIDE;
50 50
51 // Loads credentials from a backing persistent store to make them available 51 // Loads credentials from a backing persistent store to make them available
52 // after service is used between profile restarts. 52 // after service is used between profile restarts.
53 // 53 //
54 // Only call this method if there is at least one account connected to the 54 // Only call this method if there is at least one account connected to the
55 // profile, otherwise startup will cause unneeded work on the IO thread. The 55 // profile, otherwise startup will cause unneeded work on the IO thread. The
56 // primary account is specified with the |primary_account_id| argument and 56 // primary account is specified with the |primary_account_id| argument and
57 // should not be empty. For a regular profile, the primary account id comes 57 // should not be empty. For a regular profile, the primary account id comes
58 // from SigninManager. For a managed account, the id comes from 58 // from SigninManager. For a supervised user, the id comes from
59 // ManagedUserService. 59 // SupervisedUserService.
60 virtual void LoadCredentials(const std::string& primary_account_id); 60 virtual void LoadCredentials(const std::string& primary_account_id);
61 61
62 // Updates a |refresh_token| for an |account_id|. Credentials are persisted, 62 // Updates a |refresh_token| for an |account_id|. Credentials are persisted,
63 // and available through |LoadCredentials| after service is restarted. 63 // and available through |LoadCredentials| after service is restarted.
64 virtual void UpdateCredentials(const std::string& account_id, 64 virtual void UpdateCredentials(const std::string& account_id,
65 const std::string& refresh_token); 65 const std::string& refresh_token);
66 66
67 // Revokes all credentials handled by the object. 67 // Revokes all credentials handled by the object.
68 virtual void RevokeAllCredentials(); 68 virtual void RevokeAllCredentials();
69 69
(...skipping 27 matching lines...) Expand all
97 // The client with which this instance was initialized, or NULL. 97 // The client with which this instance was initialized, or NULL.
98 SigninClient* client_; 98 SigninClient* client_;
99 99
100 // Used to expose auth errors to the UI. 100 // Used to expose auth errors to the UI.
101 scoped_ptr<SigninErrorController> signin_error_controller_; 101 scoped_ptr<SigninErrorController> signin_error_controller_;
102 102
103 DISALLOW_COPY_AND_ASSIGN(ProfileOAuth2TokenService); 103 DISALLOW_COPY_AND_ASSIGN(ProfileOAuth2TokenService);
104 }; 104 };
105 105
106 #endif // COMPONENTS_SIGNIN_CORE_BROWSER_PROFILE_OAUTH2_TOKEN_SERVICE_H_ 106 #endif // COMPONENTS_SIGNIN_CORE_BROWSER_PROFILE_OAUTH2_TOKEN_SERVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698