|
OLD | NEW |
---|---|
(Empty) | |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef CHROME_BROWSER_EXTENSIONS_DEFAULT_APPS_PROVIDER_H_ | |
6 #define CHROME_BROWSER_EXTENSIONS_DEFAULT_APPS_PROVIDER_H_ | |
7 #pragma once | |
8 | |
9 #include "base/basictypes.h" | |
10 | |
11 class ExternalExtensionLoader; | |
12 class PrefService; | |
13 class Profile; | |
14 | |
15 namespace base { | |
16 class DictionaryValue; | |
17 } | |
Finnur
2011/10/21 09:59:32
Are ExternalExtensionLoader and DictionaryValue ne
Roger Tawa OOO till Jul 10th
2011/10/24 14:23:14
Done.
| |
18 | |
19 // A provider of apps that are installed by default into all new profiles. | |
20 class DefaultAppsProvider { | |
21 public: | |
22 // These values are persisted in the user preferences so values should not | |
Finnur
2011/10/21 09:59:32
Wording nit: These values ... so values ...
Maybe
Roger Tawa OOO till Jul 10th
2011/10/24 14:23:14
Done.
| |
23 // be changed. | |
24 enum InstallState { | |
25 kUnknown, | |
26 kAlwaysProvideDefaultApps, | |
27 kNeverProvideDefaultApps | |
28 }; | |
29 | |
30 // Register preference properties used by DefaultAppsProvider to maintain | |
31 // install state. | |
32 static void RegisterUserPrefs(PrefService* prefs); | |
33 | |
34 // Determines whether default apps should be installed into the specified | |
35 // profile. If true, then an instance of DefaultAppsProvider should be | |
36 // added to the external providers list. | |
37 static bool ShouldRegister(Profile* profile); | |
38 | |
39 private: | |
40 DISALLOW_COPY_AND_ASSIGN(DefaultAppsProvider); | |
41 }; | |
42 | |
43 #endif // CHROME_BROWSER_EXTENSIONS_DEFAULT_APPS_PROVIDER_H_ | |
OLD | NEW |