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 PrefService; |
| 12 class Profile; |
| 13 |
| 14 // A provider of apps that are installed by default into all new profiles. |
| 15 class DefaultAppsProvider { |
| 16 public: |
| 17 // These enum values are persisted in the user preferences, so they should not |
| 18 // be changed. |
| 19 enum InstallState { |
| 20 kUnknown, |
| 21 kAlwaysProvideDefaultApps, |
| 22 kNeverProvideDefaultApps |
| 23 }; |
| 24 |
| 25 // Register preference properties used by DefaultAppsProvider to maintain |
| 26 // install state. |
| 27 static void RegisterUserPrefs(PrefService* prefs); |
| 28 |
| 29 // Determines whether default apps should be installed into the specified |
| 30 // profile. If true, then an instance of DefaultAppsProvider should be |
| 31 // added to the external providers list. |
| 32 static bool ShouldInstallInProfile(Profile* profile); |
| 33 |
| 34 private: |
| 35 DISALLOW_COPY_AND_ASSIGN(DefaultAppsProvider); |
| 36 }; |
| 37 |
| 38 #endif // CHROME_BROWSER_EXTENSIONS_DEFAULT_APPS_PROVIDER_H_ |
OLD | NEW |