electron_constants.cc 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. // Copyright (c) 2015 GitHub, Inc.
  2. // Use of this source code is governed by the MIT license that can be
  3. // found in the LICENSE file.
  4. #include "shell/common/electron_constants.h"
  5. namespace electron {
  6. const char kBrowserForward[] = "browser-forward";
  7. const char kBrowserBackward[] = "browser-backward";
  8. const char kCORSHeader[] = "Access-Control-Allow-Origin: *";
  9. const char kSHA1Certificate[] = "SHA-1 Certificate";
  10. const char kSHA1MajorDescription[] =
  11. "The certificate for this site expires in 2017 or later, "
  12. "and the certificate chain contains a certificate signed using SHA-1.";
  13. const char kSHA1MinorDescription[] =
  14. "The certificate for this site expires in 2016, "
  15. "and the certificate chain contains a certificate signed using SHA-1.";
  16. const char kCertificateError[] = "Certificate Error";
  17. const char kValidCertificate[] = "Valid Certificate";
  18. const char kValidCertificateDescription[] =
  19. "The connection to this site is using a valid, trusted server certificate.";
  20. const char kSecureProtocol[] = "Secure TLS connection";
  21. const char kSecureProtocolDescription[] =
  22. "The connection to this site is using a strong protocol version "
  23. "and cipher suite.";
  24. #if BUILDFLAG(ENABLE_RUN_AS_NODE)
  25. const char kRunAsNode[] = "ELECTRON_RUN_AS_NODE";
  26. #endif
  27. #if BUILDFLAG(ENABLE_PDF_VIEWER)
  28. const char kPdfPluginMimeType[] = "application/x-google-chrome-pdf";
  29. const base::FilePath::CharType kPdfPluginPath[] =
  30. FILE_PATH_LITERAL("internal-pdf-viewer");
  31. #endif // BUILDFLAG(ENABLE_PDF_VIEWER)
  32. } // namespace electron