| OLD | NEW |
| 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_LEGACY_PERMISSION_REQUEST_CREATOR_SYNC_H_ | 5 #ifndef CHROME_BROWSER_SUPERVISED_USER_LEGACY_PERMISSION_REQUEST_CREATOR_SYNC_H_ |
| 6 #define CHROME_BROWSER_SUPERVISED_USER_LEGACY_PERMISSION_REQUEST_CREATOR_SYNC_H_ | 6 #define CHROME_BROWSER_SUPERVISED_USER_LEGACY_PERMISSION_REQUEST_CREATOR_SYNC_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 SupervisedUserSharedSettingsService* shared_settings_service, | 24 SupervisedUserSharedSettingsService* shared_settings_service, |
| 25 ProfileSyncService* sync_service, | 25 ProfileSyncService* sync_service, |
| 26 const std::string& name, | 26 const std::string& name, |
| 27 const std::string& supervised_user_id); | 27 const std::string& supervised_user_id); |
| 28 ~PermissionRequestCreatorSync() override; | 28 ~PermissionRequestCreatorSync() override; |
| 29 | 29 |
| 30 // PermissionRequestCreator implementation: | 30 // PermissionRequestCreator implementation: |
| 31 bool IsEnabled() const override; | 31 bool IsEnabled() const override; |
| 32 void CreateURLAccessRequest(const GURL& url_requested, | 32 void CreateURLAccessRequest(const GURL& url_requested, |
| 33 const SuccessCallback& callback) override; | 33 const SuccessCallback& callback) override; |
| 34 void CreateExtensionInstallRequest(const std::string& id, |
| 35 const SuccessCallback& callback) override; |
| 34 void CreateExtensionUpdateRequest(const std::string& id, | 36 void CreateExtensionUpdateRequest(const std::string& id, |
| 35 const SuccessCallback& callback) override; | 37 const SuccessCallback& callback) override; |
| 36 | 38 |
| 37 private: | 39 private: |
| 38 // Note: Doesn't escape |data|. If you need it escaped, do it yourself! | 40 // Note: Doesn't escape |data|. If you need it escaped, do it yourself! |
| 39 void CreateRequest(const std::string& prefix, | 41 void CreateRequest(const std::string& prefix, |
| 40 const std::string& data, | 42 const std::string& data, |
| 41 const SuccessCallback& callback); | 43 const SuccessCallback& callback); |
| 42 SupervisedUserSettingsService* settings_service_; | 44 SupervisedUserSettingsService* settings_service_; |
| 43 SupervisedUserSharedSettingsService* shared_settings_service_; | 45 SupervisedUserSharedSettingsService* shared_settings_service_; |
| 44 ProfileSyncService* sync_service_; | 46 ProfileSyncService* sync_service_; |
| 45 std::string name_; | 47 std::string name_; |
| 46 std::string supervised_user_id_; | 48 std::string supervised_user_id_; |
| 47 }; | 49 }; |
| 48 | 50 |
| 49 #endif // CHROME_BROWSER_SUPERVISED_USER_LEGACY_PERMISSION_REQUEST_CREATOR_SYNC
_H_ | 51 #endif // CHROME_BROWSER_SUPERVISED_USER_LEGACY_PERMISSION_REQUEST_CREATOR_SYNC
_H_ |
| OLD | NEW |