1// Copyright (c) 2012 The Chromium Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5// A handful of resource-like constants related to the Content application.
6
7#ifndef CONTENT_PUBLIC_COMMON_CONTENT_CONSTANTS_H_
8#define CONTENT_PUBLIC_COMMON_CONTENT_CONSTANTS_H_
9
10#include <stddef.h>         // For size_t
11
12#include "base/files/file_path.h"
13#include "content/common/content_export.h"
14
15namespace content {
16
17// The name of the directory under BrowserContext::GetPath where the AppCache is
18// put.
19CONTENT_EXPORT extern const base::FilePath::CharType kAppCacheDirname[];
20// The name of the directory under BrowserContext::GetPath where Pepper plugin
21// data is put.
22CONTENT_EXPORT extern const base::FilePath::CharType kPepperDataDirname[];
23
24// The MIME type used for the browser plugin.
25CONTENT_EXPORT extern const char kBrowserPluginMimeType[];
26
27CONTENT_EXPORT extern const char kFlashPluginName[];
28CONTENT_EXPORT extern const char kFlashPluginSwfMimeType[];
29CONTENT_EXPORT extern const char kFlashPluginSwfExtension[];
30CONTENT_EXPORT extern const char kFlashPluginSwfDescription[];
31CONTENT_EXPORT extern const char kFlashPluginSplMimeType[];
32CONTENT_EXPORT extern const char kFlashPluginSplExtension[];
33CONTENT_EXPORT extern const char kFlashPluginSplDescription[];
34CONTENT_EXPORT extern const char kSilverlightPluginMimeTypePrefix[];
35
36CONTENT_EXPORT extern const size_t kMaxRendererProcessCount;
37
38// The maximum number of session history entries per tab.
39extern const int kMaxSessionHistoryEntries;
40
41// The maximum number of characters of the document's title that we're willing
42// to accept in the browser process.
43extern const size_t kMaxTitleChars;
44
45CONTENT_EXPORT extern const size_t kMaxURLDisplayChars;
46
47extern const char kStatsFilename[];
48extern const int kStatsMaxThreads;
49extern const int kStatsMaxCounters;
50
51// Most sequence numbers are used by a renderer when responding to a browser
52// request for histogram data.  This reserved number is used when a renderer
53// sends an unprovoked update, such as after a page has been loaded.  Using
54// this reserved constant avoids any chance of confusion with a response having
55// a browser-supplied sequence number.
56CONTENT_EXPORT extern const int kHistogramSynchronizerReservedSequenceNumber;
57
58// Shared constants for the flash hardware video decode field trial.
59CONTENT_EXPORT extern const char kFlashHwVideoDecodeFieldTrialName[];
60CONTENT_EXPORT extern const char kFlashHwVideoDecodeFieldTrialEnabledName[];
61
62}  // namespace content
63
64#endif  // CONTENT_PUBLIC_COMMON_CONTENT_CONSTANTS_H_
65