blob: 421e6d2d0a7974e8f3f00661c7bb4bd67f75f6ee [file] [log] [blame]
// Copyright 2014 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.
#include <stddef.h>
#include <string>
#include "extensions/common/manifest.h"
namespace extensions {
namespace schema_constants {
extern const char kWildcard[];
extern const char kInstallationMode[];
extern const char kAllowed[];
extern const char kBlocked[];
extern const char kForceInstalled[];
extern const char kNormalInstalled[];
extern const char kBlockedPermissions[];
extern const char kAllowedPermissions[];
extern const char kPolicyBlockedHosts[];
extern const char kPolicyAllowedHosts[];
extern const size_t kMaxItemsURLPatternSet;
extern const char kUpdateUrl[];
extern const char kInstallSources[];
extern const char kAllowedTypes[];
extern const char kMinimumVersionRequired[];
extern const char kUpdateUrlPrefix[];
// If the install of an extension is blocked this admin defined message is
// appended to the error message displayed in the Chrome Webstore.
extern const char kBlockedInstallMessage[];
struct AllowedTypesMapEntry {
// Name of allowed types of extensions used in schema of extension
// management preference.
const char* name;
// The corresponding Manifest::Type.
Manifest::Type manifest_type;
extern const size_t kAllowedTypesMapSize;
extern const AllowedTypesMapEntry kAllowedTypesMap[];
// Helper fuction over |kAllowedTypesMap|, returns Manifest::TYPE_UNKNOWN if
// not found.
Manifest::Type GetManifestType(const std::string& name);
} // namespace schema_constants
} // namespace extensions