Update CrOS OOBE throbber to MD throbber; delete old asset
[chromium-blink-merge.git] / chrome / common / extensions / manifest_handlers / extension_action_handler.h
blob48441b3bbadcdf8a6360aa92c23c15c4d45b9037
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
3 // found in the LICENSE file.
5 #ifndef CHROME_COMMON_EXTENSIONS_MANIFEST_HANDLERS_EXTENSION_ACTION_HANDLER_H_
6 #define CHROME_COMMON_EXTENSIONS_MANIFEST_HANDLERS_EXTENSION_ACTION_HANDLER_H_
8 #include <string>
10 #include "extensions/common/manifest_handler.h"
12 namespace extensions {
14 // Parses the "page_action" and "browser_action" manifest keys.
15 class ExtensionActionHandler : public ManifestHandler {
16 public:
17 ExtensionActionHandler();
18 ~ExtensionActionHandler() override;
20 bool Parse(Extension* extension, base::string16* error) override;
21 bool Validate(const Extension* extension,
22 std::string* error,
23 std::vector<InstallWarning>* warnings) const override;
25 private:
26 bool AlwaysParseForType(Manifest::Type type) const override;
27 const std::vector<std::string> Keys() const override;
29 DISALLOW_COPY_AND_ASSIGN(ExtensionActionHandler);
32 } // namespace extensions
34 #endif // CHROME_COMMON_EXTENSIONS_MANIFEST_HANDLERS_EXTENSION_ACTION_HANDLER_H_