electron/shell/common/electron_constants.h

49 lines
1.4 KiB
C
Raw Normal View History

2015-12-01 08:21:15 +00:00
// Copyright (c) 2015 GitHub, Inc.
// Use of this source code is governed by the MIT license that can be
// found in the LICENSE file.
#ifndef SHELL_COMMON_ELECTRON_CONSTANTS_H_
#define SHELL_COMMON_ELECTRON_CONSTANTS_H_
2015-12-01 08:21:15 +00:00
2020-02-13 00:39:12 +00:00
#include "base/files/file_path.h"
#include "build/build_config.h"
#include "electron/buildflags/buildflags.h"
namespace electron {
2015-12-01 08:21:15 +00:00
// The app-command in NativeWindow.
extern const char kBrowserForward[];
extern const char kBrowserBackward[];
2015-12-01 08:21:15 +00:00
// Header to ignore CORS.
extern const char kCORSHeader[];
// Strings describing Chrome security policy for DevTools security panel.
extern const char kSHA1Certificate[];
extern const char kSHA1MajorDescription[];
extern const char kSHA1MinorDescription[];
extern const char kCertificateError[];
extern const char kValidCertificate[];
extern const char kValidCertificateDescription[];
extern const char kSecureProtocol[];
extern const char kSecureProtocolDescription[];
2015-12-01 08:21:15 +00:00
#if defined(OS_WIN)
// Crashpad pipe name.
extern const char kCrashpadPipeName[];
#endif
#if BUILDFLAG(ENABLE_RUN_AS_NODE)
extern const char kRunAsNode[];
#endif
#if BUILDFLAG(ENABLE_PDF_VIEWER)
2017-01-23 13:20:30 +00:00
// The MIME type used for the PDF plugin.
extern const char kPdfPluginMimeType[];
2020-02-13 00:39:12 +00:00
extern const base::FilePath::CharType kPdfPluginPath[];
#endif // BUILDFLAG(ENABLE_PDF_VIEWER)
2017-01-23 13:20:30 +00:00
} // namespace electron
2015-12-01 08:21:15 +00:00
#endif // SHELL_COMMON_ELECTRON_CONSTANTS_H_