plugin_info.h 631 B

1234567891011121314151617181920212223
  1. // Copyright (c) 2022 GitHub, Inc.
  2. // Use of this source code is governed by the MIT license that can be
  3. // found in the LICENSE file.
  4. #ifndef ELECTRON_SHELL_COMMON_PLUGIN_INFO_H_
  5. #define ELECTRON_SHELL_COMMON_PLUGIN_INFO_H_
  6. #include <vector>
  7. #include "content/public/common/content_plugin_info.h"
  8. #include "electron/buildflags/buildflags.h"
  9. namespace electron {
  10. void GetInternalPlugins(std::vector<content::WebPluginInfo>* plugins);
  11. #if BUILDFLAG(ENABLE_PDF_VIEWER)
  12. content::WebPluginInfo GetPDFPluginInfo();
  13. #endif // BUILDFLAG(ENABLE_PDF_VIEWER)
  14. } // namespace electron
  15. #endif // ELECTRON_SHELL_COMMON_PLUGIN_INFO_H_