electron_constants.cc 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738
  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 kSHA1Certificate[] = "SHA-1 Certificate";
  9. const char kSHA1MajorDescription[] =
  10. "The certificate for this site expires in 2017 or later, "
  11. "and the certificate chain contains a certificate signed using SHA-1.";
  12. const char kSHA1MinorDescription[] =
  13. "The certificate for this site expires in 2016, "
  14. "and the certificate chain contains a certificate signed using SHA-1.";
  15. const char kCertificateError[] = "Certificate Error";
  16. const char kValidCertificate[] = "Valid Certificate";
  17. const char kValidCertificateDescription[] =
  18. "The connection to this site is using a valid, trusted server certificate.";
  19. const char kSecureProtocol[] = "Secure TLS connection";
  20. const char kSecureProtocolDescription[] =
  21. "The connection to this site is using a strong protocol version "
  22. "and cipher suite.";
  23. #if BUILDFLAG(ENABLE_RUN_AS_NODE)
  24. const char kRunAsNode[] = "ELECTRON_RUN_AS_NODE";
  25. #endif
  26. #if BUILDFLAG(ENABLE_PDF_VIEWER)
  27. const char kPdfPluginMimeType[] = "application/x-google-chrome-pdf";
  28. const base::FilePath::CharType kPdfPluginPath[] =
  29. FILE_PATH_LITERAL("internal-pdf-viewer");
  30. #endif // BUILDFLAG(ENABLE_PDF_VIEWER)
  31. } // namespace electron