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

Side by Side Diff: chrome/browser/supervised_user/supervised_user_service.h

Issue 675183002: SupervisedUserService: Expose second custodian's name/email (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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
« no previous file with comments | « no previous file | chrome/browser/supervised_user/supervised_user_service.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 CHROME_BROWSER_SUPERVISED_USER_SUPERVISED_USER_SERVICE_H_ 5 #ifndef CHROME_BROWSER_SUPERVISED_USER_SUPERVISED_USER_SERVICE_H_
6 #define CHROME_BROWSER_SUPERVISED_USER_SUPERVISED_USER_SERVICE_H_ 6 #define CHROME_BROWSER_SUPERVISED_USER_SUPERVISED_USER_SERVICE_H_
7 7
8 #include <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 // a dictionary which currently has the timestamp of the request in it. 118 // a dictionary which currently has the timestamp of the request in it.
119 void AddAccessRequest(const GURL& url, const SuccessCallback& callback); 119 void AddAccessRequest(const GURL& url, const SuccessCallback& callback);
120 120
121 // Returns the email address of the custodian. 121 // Returns the email address of the custodian.
122 std::string GetCustodianEmailAddress() const; 122 std::string GetCustodianEmailAddress() const;
123 123
124 // Returns the name of the custodian, or the email address if the name is 124 // Returns the name of the custodian, or the email address if the name is
125 // empty. 125 // empty.
126 std::string GetCustodianName() const; 126 std::string GetCustodianName() const;
127 127
128 // Returns the email address of the second custodian, or the empty string
129 // if there is no second custodian.
130 std::string GetSecondCustodianEmailAddress() const;
131
132 // Returns the name of the second custodian, or the email address if the name
133 // is empty, or the empty string is there is no second custodian.
134 std::string GetSecondCustodianName() const;
135
128 // Initializes this object. This method does nothing if the profile is not 136 // Initializes this object. This method does nothing if the profile is not
129 // supervised. 137 // supervised.
130 void Init(); 138 void Init();
131 139
132 // Initializes this profile for syncing, using the provided |refresh_token| to 140 // Initializes this profile for syncing, using the provided |refresh_token| to
133 // mint access tokens for Sync. 141 // mint access tokens for Sync.
134 void InitSync(const std::string& refresh_token); 142 void InitSync(const std::string& refresh_token);
135 143
136 // Convenience method that registers this supervised user using 144 // Convenience method that registers this supervised user using
137 // |registration_utility| and initializes sync with the returned token. 145 // |registration_utility| and initializes sync with the returned token.
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after
351 359
352 // Used to create permission requests. 360 // Used to create permission requests.
353 ScopedVector<PermissionRequestCreator> permissions_creators_; 361 ScopedVector<PermissionRequestCreator> permissions_creators_;
354 362
355 ObserverList<SupervisedUserServiceObserver> observer_list_; 363 ObserverList<SupervisedUserServiceObserver> observer_list_;
356 364
357 base::WeakPtrFactory<SupervisedUserService> weak_ptr_factory_; 365 base::WeakPtrFactory<SupervisedUserService> weak_ptr_factory_;
358 }; 366 };
359 367
360 #endif // CHROME_BROWSER_SUPERVISED_USER_SUPERVISED_USER_SERVICE_H_ 368 #endif // CHROME_BROWSER_SUPERVISED_USER_SUPERVISED_USER_SERVICE_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/supervised_user/supervised_user_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698