blob: 6c8b66deb6e3487a41f82bdc5fd46759f0c46543 [file] [log] [blame]
// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// A handful of resource-like constants related to the Content application.
#ifndef CONTENT_COMMON_CHROME_CONSTANTS_H_
#define CONTENT_COMMON_CHROME_CONSTANTS_H_
#pragma once
#include <stddef.h> // For size_t
#include "content/common/content_export.h"
namespace content {
CONTENT_EXPORT extern const unsigned int kMaxRendererProcessCount;
// The maximum number of session history entries per tab.
extern const int kMaxSessionHistoryEntries;
// The maximum number of characters of the document's title that we're willing
// to accept in the browser process.
extern const size_t kMaxTitleChars;
// The maximum number of characters in the URL that we're willing to accept
// in the browser process. It is set low enough to avoid damage to the browser
// but high enough that a web site can abuse location.hash for a little storage.
// We have different values for "max accepted" and "max displayed" because
// a data: URI may be legitimately massive, but the full URI would kill all
// known operating systems if you dropped it into a UI control.
CONTENT_EXPORT extern const size_t kMaxURLChars;
CONTENT_EXPORT extern const size_t kMaxURLDisplayChars;
// The render view and render process id associated with the default plugin
// instance.
CONTENT_EXPORT extern const char kDefaultPluginRenderViewId[];
CONTENT_EXPORT extern const char kDefaultPluginRenderProcessId[];
extern const char kStatsFilename[];
extern const int kStatsMaxThreads;
extern const int kStatsMaxCounters;
} // namespace content
#endif // CONTENT_COMMON_CHROME_CONSTANTS_H_