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

Side by Side Diff: chrome/common/extensions/manifest_handlers/extension_action_handler.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, 11 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_EXTENSION_ACTION_HANDLER_H_ 5 #ifndef CHROME_COMMON_EXTENSIONS_MANIFEST_HANDLERS_EXTENSION_ACTION_HANDLER_H_
6 #define CHROME_COMMON_EXTENSIONS_MANIFEST_HANDLERS_EXTENSION_ACTION_HANDLER_H_ 6 #define CHROME_COMMON_EXTENSIONS_MANIFEST_HANDLERS_EXTENSION_ACTION_HANDLER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/macros.h"
10 #include "extensions/common/manifest_handler.h" 11 #include "extensions/common/manifest_handler.h"
11 12
12 namespace extensions { 13 namespace extensions {
13 14
14 // Parses the "page_action" and "browser_action" manifest keys. 15 // Parses the "page_action" and "browser_action" manifest keys.
15 class ExtensionActionHandler : public ManifestHandler { 16 class ExtensionActionHandler : public ManifestHandler {
16 public: 17 public:
17 ExtensionActionHandler(); 18 ExtensionActionHandler();
18 ~ExtensionActionHandler() override; 19 ~ExtensionActionHandler() override;
19 20
20 bool Parse(Extension* extension, base::string16* error) override; 21 bool Parse(Extension* extension, base::string16* error) override;
21 bool Validate(const Extension* extension, 22 bool Validate(const Extension* extension,
22 std::string* error, 23 std::string* error,
23 std::vector<InstallWarning>* warnings) const override; 24 std::vector<InstallWarning>* warnings) const override;
24 25
25 private: 26 private:
26 bool AlwaysParseForType(Manifest::Type type) const override; 27 bool AlwaysParseForType(Manifest::Type type) const override;
27 const std::vector<std::string> Keys() const override; 28 const std::vector<std::string> Keys() const override;
28 29
29 DISALLOW_COPY_AND_ASSIGN(ExtensionActionHandler); 30 DISALLOW_COPY_AND_ASSIGN(ExtensionActionHandler);
30 }; 31 };
31 32
32 } // namespace extensions 33 } // namespace extensions
33 34
34 #endif // CHROME_COMMON_EXTENSIONS_MANIFEST_HANDLERS_EXTENSION_ACTION_HANDLER_H _ 35 #endif // CHROME_COMMON_EXTENSIONS_MANIFEST_HANDLERS_EXTENSION_ACTION_HANDLER_H _
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698