#include "content/public/common/content_constants.h"
#include <vector>
#include "base/strings/string_util.h"
#include "build/branding_buildflags.h"
#include "build/build_config.h"
namespace content {
const char kBrowserPluginMimeType[] = "application/browser-plugin";
const size_t kMaxURLDisplayChars = 32 * 1024;
#if BUILDFLAG(GOOGLE_CHROME_BRANDING)
const char kStatsFilename[] = "ChromeStats2";
#else
const char kStatsFilename[] = "ChromiumStats2";
#endif
const int kStatsMaxThreads = 32;
const int kStatsMaxCounters = 3000;
const int kHistogramSynchronizerReservedSequenceNumber = 0;
const int kDefaultDetachableCancelDelayMs = 30000;
std::string GetCorsExemptRequestedWithHeaderName() {
std::vector<std::string> pieces;
pieces.push_back("X");
pieces.push_back("Requested");
pieces.push_back("With");
return base::JoinString(pieces, "-");
}
#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(ARKWEB_RENDER_PROCESS_STARTUP)
const int kLowestRendererOomScore = 300;
const int kHighestRendererOomScore = 1000;
static const int kOomScoreBump = 100;
const int kZygoteOomScore = 0;
const int kMiscOomScore = kLowestRendererOomScore - kOomScoreBump;
const int kPluginOomScore = kMiscOomScore - kOomScoreBump;
static_assert(kMiscOomScore > 0, "kMiscOomScore should be greater than 0");
static_assert(kPluginOomScore > 0, "kPluginOomScore should be greater than 0");
#endif
#if BUILDFLAG(ARKWEB_NETWORK_LOAD)
constexpr base::ByteCount kMaxLengthOfDataURLStringPub = kMaxLengthOfDataURLString;
#endif
#if BUILDFLAG(IS_ANDROID)
const int kAndroidMinimumTabletWidthDp = 600;
#endif
const base::FilePath::CharType kDevToolsActivePortFileName[] =
FILE_PATH_LITERAL("DevToolsActivePort");
}