blob: 4ca6430532605dec09ede3135e87cc4bc89fda87 [file] [log] [blame]
// Copyright 2013 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_COMMON_EXTENSIONS_MANIFEST_HANDLERS_MINIMUM_CHROME_VERSION_CHECKER_H_
#define CHROME_COMMON_EXTENSIONS_MANIFEST_HANDLERS_MINIMUM_CHROME_VERSION_CHECKER_H_
#include "base/macros.h"
#include "extensions/common/manifest_handler.h"
namespace extensions {
// Checks that the "minimum_chrome_version" requirement is met.
class MinimumChromeVersionChecker : public ManifestHandler {
public:
MinimumChromeVersionChecker();
~MinimumChromeVersionChecker() override;
// Validate minimum Chrome version. We don't need to store this, since the
// extension is not valid if it is incorrect.
bool Parse(Extension* extension, base::string16* error) override;
private:
base::span<const char* const> Keys() const override;
DISALLOW_COPY_AND_ASSIGN(MinimumChromeVersionChecker);
};
} // namespace extensions
#endif // CHROME_COMMON_EXTENSIONS_MANIFEST_HANDLERS_MINIMUM_CHROME_VERSION_CHECKER_H_