| 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 <string> | 9 #include <string> |
| 9 | 10 |
| 10 #include "base/memory/scoped_ptr.h" | |
| 11 #include "chrome/browser/supervised_user/permission_request_creator.h" | 11 #include "chrome/browser/supervised_user/permission_request_creator.h" |
| 12 | 12 |
| 13 class ProfileSyncService; | 13 class ProfileSyncService; |
| 14 class SupervisedUserSettingsService; | 14 class SupervisedUserSettingsService; |
| 15 class SupervisedUserSharedSettingsService; | 15 class SupervisedUserSharedSettingsService; |
| 16 | 16 |
| 17 // The requests are stored using a prefix followed by a URIEncoded version of | 17 // The requests are stored using a prefix followed by a URIEncoded version of |
| 18 // the URL/extension ID. Each entry contains a dictionary which currently has | 18 // the URL/extension ID. Each entry contains a dictionary which currently has |
| 19 // the timestamp of the request in it. | 19 // the timestamp of the request in it. |
| 20 class PermissionRequestCreatorSync : public PermissionRequestCreator { | 20 class PermissionRequestCreatorSync : public PermissionRequestCreator { |
| (...skipping 19 matching lines...) Expand all Loading... |
| 40 const std::string& data, | 40 const std::string& data, |
| 41 const SuccessCallback& callback); | 41 const SuccessCallback& callback); |
| 42 SupervisedUserSettingsService* settings_service_; | 42 SupervisedUserSettingsService* settings_service_; |
| 43 SupervisedUserSharedSettingsService* shared_settings_service_; | 43 SupervisedUserSharedSettingsService* shared_settings_service_; |
| 44 ProfileSyncService* sync_service_; | 44 ProfileSyncService* sync_service_; |
| 45 std::string name_; | 45 std::string name_; |
| 46 std::string supervised_user_id_; | 46 std::string supervised_user_id_; |
| 47 }; | 47 }; |
| 48 | 48 |
| 49 #endif // CHROME_BROWSER_SUPERVISED_USER_LEGACY_PERMISSION_REQUEST_CREATOR_SYNC
_H_ | 49 #endif // CHROME_BROWSER_SUPERVISED_USER_LEGACY_PERMISSION_REQUEST_CREATOR_SYNC
_H_ |
| OLD | NEW |