blob: f10b1503d37f8cf9e179be0f22f1f7604d219ef5 [file] [log] [blame]
// Copyright 2020 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 EXTENSIONS_BROWSER_PREF_TYPES_H_
#define EXTENSIONS_BROWSER_PREF_TYPES_H_
#include <string>
namespace extensions {
enum PrefType {
kBool,
kString,
kInteger,
// TODO(archanasimha): implement Get/SetAsX for the following PrefTypes.
kGURL,
kList,
kDictionary,
// kExtensionIdList,
// kPermissionSet,
kTime
};
// PrefScope indicates whether an ExtensionPref is profile wide or specific to
// an extension. Extension-specific prefs are keyed under a dictionary with the
// extension ID and are removed when an extension is uninstalled.
enum class PrefScope { kProfile, kExtensionSpecific };
struct PrefMap {
const char* name;
PrefType type;
PrefScope scope;
};
extern const PrefMap kCorruptedDisableCount;
} // namespace extensions
#endif // EXTENSIONS_BROWSER_PREF_TYPES_H_