OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // A handful of resource-like constants related to the Chrome application. | 5 // A handful of resource-like constants related to the Chrome application. |
6 | 6 |
7 #ifndef CHROME_COMMON_CHROME_CONSTANTS_H_ | 7 #ifndef CHROME_COMMON_CHROME_CONSTANTS_H_ |
8 #define CHROME_COMMON_CHROME_CONSTANTS_H_ | 8 #define CHROME_COMMON_CHROME_CONSTANTS_H_ |
9 | 9 |
10 #include <stddef.h> | 10 #include <stddef.h> |
(...skipping 14 matching lines...) Expand all Loading... |
25 extern const base::FilePath::CharType kHelperProcessExecutablePathChromium[]; | 25 extern const base::FilePath::CharType kHelperProcessExecutablePathChromium[]; |
26 #if defined(OS_MACOSX) | 26 #if defined(OS_MACOSX) |
27 // NOTE: if you change the value of kFrameworkName, please don't forget to | 27 // NOTE: if you change the value of kFrameworkName, please don't forget to |
28 // update components/test/run_all_unittests.cc as well. | 28 // update components/test/run_all_unittests.cc as well. |
29 // TODO(tfarina): Remove the comment above, when you fix components to use plist | 29 // TODO(tfarina): Remove the comment above, when you fix components to use plist |
30 // on Mac. | 30 // on Mac. |
31 extern const base::FilePath::CharType kFrameworkName[]; | 31 extern const base::FilePath::CharType kFrameworkName[]; |
32 #endif // OS_MACOSX | 32 #endif // OS_MACOSX |
33 #if defined(OS_WIN) | 33 #if defined(OS_WIN) |
34 extern const base::FilePath::CharType kBrowserResourcesDll[]; | 34 extern const base::FilePath::CharType kBrowserResourcesDll[]; |
35 extern const base::FilePath::CharType kMetroDriverDll[]; | 35 extern const base::FilePath::CharType kChromeElfDllName[]; |
36 extern const base::FilePath::CharType kStatusTrayWindowClass[]; | 36 extern const base::FilePath::CharType kStatusTrayWindowClass[]; |
37 #endif // defined(OS_WIN) | 37 #endif // defined(OS_WIN) |
38 | 38 |
39 extern const char kInitialProfile[]; | 39 extern const char kInitialProfile[]; |
40 extern const char kMultiProfileDirPrefix[]; | 40 extern const char kMultiProfileDirPrefix[]; |
41 extern const base::FilePath::CharType kGuestProfileDir[]; | 41 extern const base::FilePath::CharType kGuestProfileDir[]; |
42 extern const base::FilePath::CharType kSystemProfileDir[]; | 42 extern const base::FilePath::CharType kSystemProfileDir[]; |
43 | 43 |
44 // filenames | 44 // filenames |
45 extern const base::FilePath::CharType kCacheDirname[]; | 45 extern const base::FilePath::CharType kCacheDirname[]; |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
91 // installed. | 91 // installed. |
92 extern const float kMaxShareOfExtensionProcesses; | 92 extern const float kMaxShareOfExtensionProcesses; |
93 | 93 |
94 #if defined(OS_LINUX) | 94 #if defined(OS_LINUX) |
95 // The highest and lowest assigned OOM score adjustment | 95 // The highest and lowest assigned OOM score adjustment |
96 // (oom_score_adj) used by the OomPriority Manager. | 96 // (oom_score_adj) used by the OomPriority Manager. |
97 extern const int kLowestRendererOomScore; | 97 extern const int kLowestRendererOomScore; |
98 extern const int kHighestRendererOomScore; | 98 extern const int kHighestRendererOomScore; |
99 #endif | 99 #endif |
100 | 100 |
101 #if defined(OS_WIN) | |
102 // Used by Metro Chrome to initiate navigation and search requests. | |
103 extern const wchar_t kMetroNavigationAndSearchMessage[]; | |
104 // Used by Metro Chrome to get information about the current tab. | |
105 extern const wchar_t kMetroGetCurrentTabInfoMessage[]; | |
106 #endif | |
107 | |
108 #if defined(OS_CHROMEOS) | 101 #if defined(OS_CHROMEOS) |
109 // Chrome OS profile directories have custom prefix. | 102 // Chrome OS profile directories have custom prefix. |
110 // Profile path format: [user_data_dir]/u-[$hash] | 103 // Profile path format: [user_data_dir]/u-[$hash] |
111 // Ex.: /home/chronos/u-0123456789 | 104 // Ex.: /home/chronos/u-0123456789 |
112 extern const char kProfileDirPrefix[]; | 105 extern const char kProfileDirPrefix[]; |
113 | 106 |
114 // Legacy profile dir that was used when only one cryptohome has been mounted. | 107 // Legacy profile dir that was used when only one cryptohome has been mounted. |
115 extern const char kLegacyProfileDir[]; | 108 extern const char kLegacyProfileDir[]; |
116 | 109 |
117 // This must be kept in sync with TestingProfile::kTestUserProfileDir. | 110 // This must be kept in sync with TestingProfile::kTestUserProfileDir. |
118 extern const char kTestUserProfileDir[]; | 111 extern const char kTestUserProfileDir[]; |
119 #endif | 112 #endif |
120 | 113 |
121 // Used to identify the application to the system AV function in Windows. | 114 // Used to identify the application to the system AV function in Windows. |
122 extern const char kApplicationClientIDStringForAVScanning[]; | 115 extern const char kApplicationClientIDStringForAVScanning[]; |
123 | 116 |
124 // The largest reasonable length we'd assume for a meta tag attribute. | 117 // The largest reasonable length we'd assume for a meta tag attribute. |
125 extern const size_t kMaxMetaTagAttributeLength; | 118 extern const size_t kMaxMetaTagAttributeLength; |
126 | 119 |
127 } // namespace chrome | 120 } // namespace chrome |
128 | 121 |
129 #endif // CHROME_COMMON_CHROME_CONSTANTS_H_ | 122 #endif // CHROME_COMMON_CHROME_CONSTANTS_H_ |
OLD | NEW |