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_PERMISSION_REQUEST_CREATOR_SYNC_H_ | 5 #ifndef CHROME_BROWSER_SUPERVISED_USER_PERMISSION_REQUEST_CREATOR_SYNC_H_ |
6 #define CHROME_BROWSER_SUPERVISED_USER_PERMISSION_REQUEST_CREATOR_SYNC_H_ | 6 #define CHROME_BROWSER_SUPERVISED_USER_PERMISSION_REQUEST_CREATOR_SYNC_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/memory/scoped_ptr.h" | 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 class PermissionRequestCreatorSync : public PermissionRequestCreator { | 17 class PermissionRequestCreatorSync : public PermissionRequestCreator { |
18 public: | 18 public: |
19 PermissionRequestCreatorSync( | 19 PermissionRequestCreatorSync( |
20 SupervisedUserSettingsService* settings_service, | 20 SupervisedUserSettingsService* settings_service, |
21 SupervisedUserSharedSettingsService* shared_settings_service, | 21 SupervisedUserSharedSettingsService* shared_settings_service, |
22 ProfileSyncService* sync_service, | 22 ProfileSyncService* sync_service, |
23 const std::string& name, | 23 const std::string& name, |
24 const std::string& supervised_user_id); | 24 const std::string& supervised_user_id); |
25 virtual ~PermissionRequestCreatorSync(); | 25 virtual ~PermissionRequestCreatorSync(); |
26 | 26 |
27 // PermissionRequestCreator implementation: | 27 // PermissionRequestCreator implementation: |
28 virtual bool IsEnabled() const OVERRIDE; | 28 virtual bool IsEnabled() const override; |
29 virtual void CreatePermissionRequest( | 29 virtual void CreatePermissionRequest( |
30 const GURL& url_requested, | 30 const GURL& url_requested, |
31 const SuccessCallback& callback) OVERRIDE; | 31 const SuccessCallback& callback) override; |
32 | 32 |
33 private: | 33 private: |
34 SupervisedUserSettingsService* settings_service_; | 34 SupervisedUserSettingsService* settings_service_; |
35 SupervisedUserSharedSettingsService* shared_settings_service_; | 35 SupervisedUserSharedSettingsService* shared_settings_service_; |
36 ProfileSyncService* sync_service_; | 36 ProfileSyncService* sync_service_; |
37 std::string name_; | 37 std::string name_; |
38 std::string supervised_user_id_; | 38 std::string supervised_user_id_; |
39 }; | 39 }; |
40 | 40 |
41 #endif // CHROME_BROWSER_SUPERVISED_USER_PERMISSION_REQUEST_CREATOR_SYNC_H_ | 41 #endif // CHROME_BROWSER_SUPERVISED_USER_PERMISSION_REQUEST_CREATOR_SYNC_H_ |
OLD | NEW |