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

Unified Diff: chrome/browser/supervised_user/legacy/permission_request_creator_sync.h

Issue 971733003: Supervised users: When an extension requires new permissions, send request to custodian (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@test_ext_install_disable
Patch Set: test Created 5 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/supervised_user/legacy/permission_request_creator_sync.h
diff --git a/chrome/browser/supervised_user/legacy/permission_request_creator_sync.h b/chrome/browser/supervised_user/legacy/permission_request_creator_sync.h
index 0ba5eaa0b6b65ce0b3fbf624e390b9530efeb101..552dca0e977d1c90fd905035940cddb77dc6abf7 100644
--- a/chrome/browser/supervised_user/legacy/permission_request_creator_sync.h
+++ b/chrome/browser/supervised_user/legacy/permission_request_creator_sync.h
@@ -14,6 +14,9 @@ class ProfileSyncService;
class SupervisedUserSettingsService;
class SupervisedUserSharedSettingsService;
+// The requests are stored using a prefix followed by a URIEncoded version of
+// the URL/extension ID. Each entry contains a dictionary which currently has
+// the timestamp of the request in it.
class PermissionRequestCreatorSync : public PermissionRequestCreator {
public:
PermissionRequestCreatorSync(
@@ -26,10 +29,15 @@ class PermissionRequestCreatorSync : public PermissionRequestCreator {
// PermissionRequestCreator implementation:
bool IsEnabled() const override;
- void CreatePermissionRequest(const GURL& url_requested,
- const SuccessCallback& callback) override;
+ void CreateURLAccessRequest(const GURL& url_requested,
+ const SuccessCallback& callback) override;
+ void CreateExtensionUpdateRequest(const std::string& extension_id,
+ const SuccessCallback& callback) override;
private:
+ void CreateRequest(const std::string& prefix,
+ const std::string& data,
+ const SuccessCallback& callback);
SupervisedUserSettingsService* settings_service_;
SupervisedUserSharedSettingsService* shared_settings_service_;
ProfileSyncService* sync_service_;

Powered by Google App Engine
This is Rietveld 408576698