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

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

Issue 1200833004: Apps&Extensions for Supervised Users: send permission request on outdated re-enables (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 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
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 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 bool AccessRequestsEnabled(); 110 bool AccessRequestsEnabled();
111 111
112 // Adds an access request for the given URL. 112 // Adds an access request for the given URL.
113 void AddURLAccessRequest(const GURL& url, const SuccessCallback& callback); 113 void AddURLAccessRequest(const GURL& url, const SuccessCallback& callback);
114 114
115 // Adds an update request for the given WebStore item (App/Extension). 115 // Adds an update request for the given WebStore item (App/Extension).
116 void AddExtensionUpdateRequest(const std::string& extension_id, 116 void AddExtensionUpdateRequest(const std::string& extension_id,
117 const base::Version& version, 117 const base::Version& version,
118 const SuccessCallback& callback); 118 const SuccessCallback& callback);
119 119
120 // Same as above, but without a callback, for when the caller doesn't care
Devlin 2015/10/16 02:40:24 Some of this comment seems unnecessary - I think t
Marc Treib 2015/10/16 09:22:21 Done.
121 // about the result. This will just log any errors.
122 void AddExtensionUpdateRequest(const std::string& extension_id,
123 const base::Version& version);
124
120 // Returns the email address of the custodian. 125 // Returns the email address of the custodian.
121 std::string GetCustodianEmailAddress() const; 126 std::string GetCustodianEmailAddress() const;
122 127
123 // Returns the name of the custodian, or the email address if the name is 128 // Returns the name of the custodian, or the email address if the name is
124 // empty. 129 // empty.
125 std::string GetCustodianName() const; 130 std::string GetCustodianName() const;
126 131
127 // Returns the email address of the second custodian, or the empty string 132 // Returns the email address of the second custodian, or the empty string
128 // if there is no second custodian. 133 // if there is no second custodian.
129 std::string GetSecondCustodianEmailAddress() const; 134 std::string GetSecondCustodianEmailAddress() const;
(...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after
363 368
364 // Used to create permission requests. 369 // Used to create permission requests.
365 ScopedVector<PermissionRequestCreator> permissions_creators_; 370 ScopedVector<PermissionRequestCreator> permissions_creators_;
366 371
367 base::ObserverList<SupervisedUserServiceObserver> observer_list_; 372 base::ObserverList<SupervisedUserServiceObserver> observer_list_;
368 373
369 base::WeakPtrFactory<SupervisedUserService> weak_ptr_factory_; 374 base::WeakPtrFactory<SupervisedUserService> weak_ptr_factory_;
370 }; 375 };
371 376
372 #endif // CHROME_BROWSER_SUPERVISED_USER_SUPERVISED_USER_SERVICE_H_ 377 #endif // CHROME_BROWSER_SUPERVISED_USER_SUPERVISED_USER_SERVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698