Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(125)

Side by Side Diff: chrome/common/extensions/manifest_handlers/minimum_chrome_version_checker.h

Issue 1548153002: Switch to standard integer types in chrome/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_COMMON_EXTENSIONS_MANIFEST_HANDLERS_MINIMUM_CHROME_VERSION_CHECKE R_H_ 5 #ifndef CHROME_COMMON_EXTENSIONS_MANIFEST_HANDLERS_MINIMUM_CHROME_VERSION_CHECKE R_H_
6 #define CHROME_COMMON_EXTENSIONS_MANIFEST_HANDLERS_MINIMUM_CHROME_VERSION_CHECKE R_H_ 6 #define CHROME_COMMON_EXTENSIONS_MANIFEST_HANDLERS_MINIMUM_CHROME_VERSION_CHECKE R_H_
7 7
8 #include "base/macros.h"
8 #include "extensions/common/manifest_handler.h" 9 #include "extensions/common/manifest_handler.h"
9 10
10 namespace extensions { 11 namespace extensions {
11 12
12 // Checks that the "minimum_chrome_version" requirement is met. 13 // Checks that the "minimum_chrome_version" requirement is met.
13 class MinimumChromeVersionChecker : public ManifestHandler { 14 class MinimumChromeVersionChecker : public ManifestHandler {
14 public: 15 public:
15 MinimumChromeVersionChecker(); 16 MinimumChromeVersionChecker();
16 ~MinimumChromeVersionChecker() override; 17 ~MinimumChromeVersionChecker() override;
17 18
18 // Validate minimum Chrome version. We don't need to store this, since the 19 // Validate minimum Chrome version. We don't need to store this, since the
19 // extension is not valid if it is incorrect. 20 // extension is not valid if it is incorrect.
20 bool Parse(Extension* extension, base::string16* error) override; 21 bool Parse(Extension* extension, base::string16* error) override;
21 22
22 private: 23 private:
23 const std::vector<std::string> Keys() const override; 24 const std::vector<std::string> Keys() const override;
24 25
25 DISALLOW_COPY_AND_ASSIGN(MinimumChromeVersionChecker); 26 DISALLOW_COPY_AND_ASSIGN(MinimumChromeVersionChecker);
26 }; 27 };
27 28
28 } // namespace extensions 29 } // namespace extensions
29 30
30 #endif // CHROME_COMMON_EXTENSIONS_MANIFEST_HANDLERS_MINIMUM_CHROME_VERSION_CHE CKER_H_ 31 #endif // CHROME_COMMON_EXTENSIONS_MANIFEST_HANDLERS_MINIMUM_CHROME_VERSION_CHE CKER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698