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

Unified Diff: chrome/common/extensions/api/plugins/plugins_handler.h

Issue 2783813002: Move ChromeRequirementsChecker to //extensions as a PreloadCheck (Closed)
Patch Set: rebase? Created 3 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/common/BUILD.gn ('k') | chrome/common/extensions/api/plugins/plugins_handler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/extensions/api/plugins/plugins_handler.h
diff --git a/chrome/common/extensions/api/plugins/plugins_handler.h b/chrome/common/extensions/api/plugins/plugins_handler.h
deleted file mode 100644
index 6568b38fc13c8269935373cafed44a801b4acbf7..0000000000000000000000000000000000000000
--- a/chrome/common/extensions/api/plugins/plugins_handler.h
+++ /dev/null
@@ -1,53 +0,0 @@
-// Copyright (c) 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_API_PLUGINS_PLUGINS_HANDLER_H_
-#define CHROME_COMMON_EXTENSIONS_API_PLUGINS_PLUGINS_HANDLER_H_
-
-#include <memory>
-#include <string>
-
-#include "base/macros.h"
-#include "extensions/common/extension.h"
-#include "extensions/common/manifest_handler.h"
-
-namespace extensions {
-
-// An NPAPI plugin included in the extension.
-struct PluginInfo {
- typedef std::vector<PluginInfo> PluginVector;
-
- PluginInfo(const base::FilePath& plugin_path, bool plugin_is_public);
- ~PluginInfo();
-
- base::FilePath path; // Path to the plugin.
- bool is_public; // False if only this extension can load this plugin.
-
- // Return the plugins for a given |extensions|, or NULL if none exist.
- static const PluginVector* GetPlugins(const Extension* extension);
-
- // Return true if the given |extension| has plugins, and false otherwise.
- static bool HasPlugins(const Extension* extension);
-};
-
-// Parses the "plugins" manifest key.
-class PluginsHandler : public ManifestHandler {
- public:
- PluginsHandler();
- ~PluginsHandler() override;
-
- bool Parse(Extension* extension, base::string16* error) override;
- bool Validate(const Extension* extension,
- std::string* error,
- std::vector<InstallWarning>* warnings) const override;
-
- private:
- const std::vector<std::string> Keys() const override;
-
- DISALLOW_COPY_AND_ASSIGN(PluginsHandler);
-};
-
-} // namespace extensions
-
-#endif // CHROME_COMMON_EXTENSIONS_API_PLUGINS_PLUGINS_HANDLER_H_
« no previous file with comments | « chrome/common/BUILD.gn ('k') | chrome/common/extensions/api/plugins/plugins_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698