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

Side by Side Diff: chrome/browser/component_updater/supervised_user_whitelist_installer.h

Issue 1443033004: Supervised User whitelists: update to json format v2 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove l10n Created 5 years, 1 month 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 unified diff | Download patch
« no previous file with comments | « no previous file | chrome/browser/component_updater/supervised_user_whitelist_installer.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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"
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
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_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/component_updater/supervised_user_whitelist_installer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698