Chromium Code Reviews| 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_COMPONENT_UPDATER_SUPERVISED_USER_WHITELIST_INSTALLER_H_ | 5 #ifndef CHROME_BROWSER_COMPONENT_UPDATER_SUPERVISED_USER_WHITELIST_INSTALLER_H_ |
| 6 #define CHROME_BROWSER_COMPONENT_UPDATER_SUPERVISED_USER_WHITELIST_INSTALLER_H_ | 6 #define CHROME_BROWSER_COMPONENT_UPDATER_SUPERVISED_USER_WHITELIST_INSTALLER_H_ |
| 7 | 7 |
| 8 #include <set> | 8 #include <set> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| 11 | 11 |
| 12 #include "base/callback_forward.h" | 12 #include "base/callback_forward.h" |
| 13 #include "base/memory/scoped_ptr.h" | 13 #include "base/memory/scoped_ptr.h" |
| 14 #include "base/strings/string16.h" | |
|
Bernhard Bauer
2015/11/18 12:10:40
You can forward-declare string16.
Marc Treib
2015/11/18 12:44:18
Maybe I could, but I'd really rather not. Forward
| |
| 14 | 15 |
| 15 namespace base { | 16 namespace base { |
| 16 class FilePath; | 17 class FilePath; |
| 17 } | 18 } |
| 18 | 19 |
| 19 class PrefRegistrySimple; | 20 class PrefRegistrySimple; |
| 20 class PrefService; | 21 class PrefService; |
| 21 class ProfileInfoCache; | 22 class ProfileInfoCache; |
| 22 | 23 |
| 23 namespace component_updater { | 24 namespace component_updater { |
| 24 | 25 |
| 25 class ComponentUpdateService; | 26 class ComponentUpdateService; |
| 26 class OnDemandUpdater; | 27 class OnDemandUpdater; |
| 27 | 28 |
| 28 class SupervisedUserWhitelistInstaller { | 29 class SupervisedUserWhitelistInstaller { |
| 29 public: | 30 public: |
| 30 using WhitelistReadyCallback = | 31 using WhitelistReadyCallback = |
| 31 base::Callback<void(const std::string& crx_id, | 32 base::Callback<void(const std::string& crx_id, |
| 33 const base::string16& title, | |
| 32 const base::FilePath& whitelist_path)>; | 34 const base::FilePath& whitelist_path)>; |
| 33 | 35 |
| 34 virtual ~SupervisedUserWhitelistInstaller() {} | 36 virtual ~SupervisedUserWhitelistInstaller() {} |
| 35 | 37 |
| 36 static scoped_ptr<SupervisedUserWhitelistInstaller> Create( | 38 static scoped_ptr<SupervisedUserWhitelistInstaller> Create( |
| 37 ComponentUpdateService* cus, | 39 ComponentUpdateService* cus, |
| 38 ProfileInfoCache* profile_info_cache, | 40 ProfileInfoCache* profile_info_cache, |
| 39 PrefService* local_state); | 41 PrefService* local_state); |
| 40 | 42 |
| 41 static void RegisterPrefs(PrefRegistrySimple* registry); | 43 static void RegisterPrefs(PrefRegistrySimple* registry); |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 79 // called from the implementation subclass, and declared here so that the | 81 // called from the implementation subclass, and declared here so that the |
| 80 // OnDemandUpdater can friend this class and the implementation subclass can | 82 // OnDemandUpdater can friend this class and the implementation subclass can |
| 81 // live in an anonymous namespace. | 83 // live in an anonymous namespace. |
| 82 static void TriggerComponentUpdate(OnDemandUpdater* updater, | 84 static void TriggerComponentUpdate(OnDemandUpdater* updater, |
| 83 const std::string& crx_id); | 85 const std::string& crx_id); |
| 84 }; | 86 }; |
| 85 | 87 |
| 86 } // namespace component_updater | 88 } // namespace component_updater |
| 87 | 89 |
| 88 #endif // CHROME_BROWSER_COMPONENT_UPDATER_SUPERVISED_USER_WHITELIST_INSTALLER_ H_ | 90 #endif // CHROME_BROWSER_COMPONENT_UPDATER_SUPERVISED_USER_WHITELIST_INSTALLER_ H_ |
| OLD | NEW |