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

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

Issue 787803002: Cleanup: remove SupervisedUserService::IsChildAccount. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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
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 <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 typedef base::Callback<void(content::WebContents*)> NavigationBlockedCallback; 76 typedef base::Callback<void(content::WebContents*)> NavigationBlockedCallback;
77 typedef base::Callback<void(const GoogleServiceAuthError&)> AuthErrorCallback; 77 typedef base::Callback<void(const GoogleServiceAuthError&)> AuthErrorCallback;
78 typedef base::Callback<void(bool)> SuccessCallback; 78 typedef base::Callback<void(bool)> SuccessCallback;
79 79
80 class Delegate { 80 class Delegate {
81 public: 81 public:
82 virtual ~Delegate() {} 82 virtual ~Delegate() {}
83 // Returns true to indicate that the delegate handled the (de)activation, or 83 // Returns true to indicate that the delegate handled the (de)activation, or
84 // false to indicate that the SupervisedUserService itself should handle it. 84 // false to indicate that the SupervisedUserService itself should handle it.
85 virtual bool SetActive(bool active) = 0; 85 virtual bool SetActive(bool active) = 0;
86 // Returns whether the current profile is linked to a child account. 86 // TODO(treib): Unused, remove.
87 virtual bool IsChildAccount() const; 87 virtual bool IsChildAccount() const;
Marc Treib 2014/12/09 09:27:28 Still here so I don't break the Clank build.
88 // Returns the path to a blacklist file to load, or an empty path to 88 // Returns the path to a blacklist file to load, or an empty path to
89 // indicate "none". 89 // indicate "none".
90 virtual base::FilePath GetBlacklistPath() const; 90 virtual base::FilePath GetBlacklistPath() const;
91 // Returns the URL from which to download a blacklist if no local one exists 91 // Returns the URL from which to download a blacklist if no local one exists
92 // yet. The blacklist file will be stored at |GetBlacklistPath()|. 92 // yet. The blacklist file will be stored at |GetBlacklistPath()|.
93 virtual GURL GetBlacklistURL() const; 93 virtual GURL GetBlacklistURL() const;
94 // Returns the identifier ("cx") of the Custom Search Engine to use for the 94 // Returns the identifier ("cx") of the Custom Search Engine to use for the
95 // experimental "SafeSites" feature, or the empty string to disable the 95 // experimental "SafeSites" feature, or the empty string to disable the
96 // feature. 96 // feature.
97 virtual std::string GetSafeSitesCx() const; 97 virtual std::string GetSafeSitesCx() const;
(...skipping 25 matching lines...) Expand all
123 void GetCategoryNames(CategoryList* list); 123 void GetCategoryNames(CategoryList* list);
124 124
125 // Whether the user can request access to blocked URLs. 125 // Whether the user can request access to blocked URLs.
126 bool AccessRequestsEnabled(); 126 bool AccessRequestsEnabled();
127 127
128 // Adds an access request for the given URL. The requests are stored using 128 // Adds an access request for the given URL. The requests are stored using
129 // a prefix followed by a URIEncoded version of the URL. Each entry contains 129 // a prefix followed by a URIEncoded version of the URL. Each entry contains
130 // a dictionary which currently has the timestamp of the request in it. 130 // a dictionary which currently has the timestamp of the request in it.
131 void AddAccessRequest(const GURL& url, const SuccessCallback& callback); 131 void AddAccessRequest(const GURL& url, const SuccessCallback& callback);
132 132
133 // Returns whether the profile is linked to a child account.
134 bool IsChildAccount() const;
135
136 // Returns the email address of the custodian. 133 // Returns the email address of the custodian.
137 std::string GetCustodianEmailAddress() const; 134 std::string GetCustodianEmailAddress() const;
138 135
139 // Returns the name of the custodian, or the email address if the name is 136 // Returns the name of the custodian, or the email address if the name is
140 // empty. 137 // empty.
141 std::string GetCustodianName() const; 138 std::string GetCustodianName() const;
142 139
143 // Returns the email address of the second custodian, or the empty string 140 // Returns the email address of the second custodian, or the empty string
144 // if there is no second custodian. 141 // if there is no second custodian.
145 std::string GetSecondCustodianEmailAddress() const; 142 std::string GetSecondCustodianEmailAddress() const;
(...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after
377 374
378 // Used to create permission requests. 375 // Used to create permission requests.
379 ScopedVector<PermissionRequestCreator> permissions_creators_; 376 ScopedVector<PermissionRequestCreator> permissions_creators_;
380 377
381 ObserverList<SupervisedUserServiceObserver> observer_list_; 378 ObserverList<SupervisedUserServiceObserver> observer_list_;
382 379
383 base::WeakPtrFactory<SupervisedUserService> weak_ptr_factory_; 380 base::WeakPtrFactory<SupervisedUserService> weak_ptr_factory_;
384 }; 381 };
385 382
386 #endif // CHROME_BROWSER_SUPERVISED_USER_SUPERVISED_USER_SERVICE_H_ 383 #endif // CHROME_BROWSER_SUPERVISED_USER_SUPERVISED_USER_SERVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698