- add sources.
[platform/framework/web/crosswalk.git] / src / chrome / common / extensions / manifest_handlers / minimum_chrome_version_checker.h
1 // Copyright 2013 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_COMMON_EXTENSIONS_MANIFEST_HANDLERS_MINIMUM_CHROME_VERSION_CHECKER_H_
6 #define CHROME_COMMON_EXTENSIONS_MANIFEST_HANDLERS_MINIMUM_CHROME_VERSION_CHECKER_H_
7
8 #include "chrome/common/extensions/manifest_handler.h"
9
10 namespace extensions {
11
12 // Checks that the "minimum_chrome_version" requirement is met.
13 class MinimumChromeVersionChecker : public ManifestHandler {
14  public:
15   MinimumChromeVersionChecker();
16   virtual ~MinimumChromeVersionChecker();
17
18   // Validate minimum Chrome version. We don't need to store this, since the
19   // extension is not valid if it is incorrect.
20   virtual bool Parse(Extension* extension, string16* error) OVERRIDE;
21
22  private:
23   virtual const std::vector<std::string> Keys() const OVERRIDE;
24
25   DISALLOW_COPY_AND_ASSIGN(MinimumChromeVersionChecker);
26 };
27
28 }  // namespace extensions
29
30 #endif  // CHROME_COMMON_EXTENSIONS_MANIFEST_HANDLERS_MINIMUM_CHROME_VERSION_CHECKER_H_