Chromium Code Reviews| Index: chrome/browser/extensions/default_apps.h |
| =================================================================== |
| --- chrome/browser/extensions/default_apps.h (revision 0) |
| +++ chrome/browser/extensions/default_apps.h (revision 0) |
| @@ -0,0 +1,38 @@ |
| +// Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef CHROME_BROWSER_EXTENSIONS_DEFAULT_APPS_H_ |
| +#define CHROME_BROWSER_EXTENSIONS_DEFAULT_APPS_H_ |
| +#pragma once |
| + |
| +#include "base/basictypes.h" |
| + |
| +class PrefService; |
| +class Profile; |
| + |
| +// Functions and types related to installing default apps. |
| +class DefaultApps { |
|
Mihai Parparita -not on Chrome
2011/10/24 21:38:55
A namespace seems more appropriate, since DefaultA
|
| + public: |
| + // These enum values are persisted in the user preferences, so they should not |
| + // be changed. |
| + enum InstallState { |
| + kUnknown, |
| + kAlwaysProvideDefaultApps, |
| + kNeverProvideDefaultApps |
| + }; |
| + |
| + // Register preference properties used by default apps to maintain |
| + // install state. |
| + static void RegisterUserPrefs(PrefService* prefs); |
| + |
| + // Determines whether default apps should be installed into the specified |
| + // profile. If true, then an instance of ExternalExtensionProviderImpl |
| + // specific to default apps should be added to the external providers list. |
| + static bool ShouldInstallInProfile(Profile* profile); |
| + |
| + private: |
| + DISALLOW_COPY_AND_ASSIGN(DefaultApps); |
| +}; |
| + |
| +#endif // CHROME_BROWSER_EXTENSIONS_DEFAULT_APPS_H_ |
| Property changes on: chrome\browser\extensions\default_apps.h |
| ___________________________________________________________________ |
| Added: svn:eol-style |
| + LF |