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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
90 // installed. | 90 // installed. |
91 extern const float kMaxShareOfExtensionProcesses; | 91 extern const float kMaxShareOfExtensionProcesses; |
92 | 92 |
93 #if defined(OS_LINUX) | 93 #if defined(OS_LINUX) |
94 // The highest and lowest assigned OOM score adjustment | 94 // The highest and lowest assigned OOM score adjustment |
95 // (oom_score_adj) used by the OomPriority Manager. | 95 // (oom_score_adj) used by the OomPriority Manager. |
96 extern const int kLowestRendererOomScore; | 96 extern const int kLowestRendererOomScore; |
97 extern const int kHighestRendererOomScore; | 97 extern const int kHighestRendererOomScore; |
98 #endif | 98 #endif |
99 | 99 |
100 #if defined(OS_WIN) | |
101 // Used by Metro Chrome to initiate navigation and search requests. | |
102 extern const wchar_t kMetroNavigationAndSearchMessage[]; | |
103 // Used by Metro Chrome to get information about the current tab. | |
104 extern const wchar_t kMetroGetCurrentTabInfoMessage[]; | |
105 #endif | |
106 | |
107 #if defined(OS_CHROMEOS) | 100 #if defined(OS_CHROMEOS) |
108 // Chrome OS profile directories have custom prefix. | 101 // Chrome OS profile directories have custom prefix. |
109 // Profile path format: [user_data_dir]/u-[$hash] | 102 // Profile path format: [user_data_dir]/u-[$hash] |
110 // Ex.: /home/chronos/u-0123456789 | 103 // Ex.: /home/chronos/u-0123456789 |
111 extern const char kProfileDirPrefix[]; | 104 extern const char kProfileDirPrefix[]; |
112 | 105 |
113 // Legacy profile dir that was used when only one cryptohome has been mounted. | 106 // Legacy profile dir that was used when only one cryptohome has been mounted. |
114 extern const char kLegacyProfileDir[]; | 107 extern const char kLegacyProfileDir[]; |
115 | 108 |
116 // This must be kept in sync with TestingProfile::kTestUserProfileDir. | 109 // This must be kept in sync with TestingProfile::kTestUserProfileDir. |
117 extern const char kTestUserProfileDir[]; | 110 extern const char kTestUserProfileDir[]; |
118 #endif | 111 #endif |
119 | 112 |
120 // Used to identify the application to the system AV function in Windows. | 113 // Used to identify the application to the system AV function in Windows. |
121 extern const char kApplicationClientIDStringForAVScanning[]; | 114 extern const char kApplicationClientIDStringForAVScanning[]; |
122 | 115 |
123 // The largest reasonable length we'd assume for a meta tag attribute. | 116 // The largest reasonable length we'd assume for a meta tag attribute. |
124 extern const size_t kMaxMetaTagAttributeLength; | 117 extern const size_t kMaxMetaTagAttributeLength; |
125 | 118 |
126 } // namespace chrome | 119 } // namespace chrome |
127 | 120 |
128 #endif // CHROME_COMMON_CHROME_CONSTANTS_H_ | 121 #endif // CHROME_COMMON_CHROME_CONSTANTS_H_ |
OLD | NEW |