Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(154)

Side by Side Diff: chrome/common/chrome_constants.h

Issue 23534009: Re-enable pre-read experiment as a finch field trial. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix comment and rebase Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « chrome/browser/chrome_browser_main.cc ('k') | chrome/common/chrome_constants.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 "base/files/file_path.h" 10 #include "base/files/file_path.h"
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 // Are touch icons enabled? False by default. 104 // Are touch icons enabled? False by default.
105 extern const bool kEnableTouchIcon; 105 extern const bool kEnableTouchIcon;
106 106
107 // Fraction of the total number of processes to be used for hosting 107 // Fraction of the total number of processes to be used for hosting
108 // extensions. If we have more extensions than this percentage, we will start 108 // extensions. If we have more extensions than this percentage, we will start
109 // combining extensions in existing processes. This allows web pages to have 109 // combining extensions in existing processes. This allows web pages to have
110 // enough render processes and not be starved when a lot of extensions are 110 // enough render processes and not be starved when a lot of extensions are
111 // installed. 111 // installed.
112 extern const float kMaxShareOfExtensionProcesses; 112 extern const float kMaxShareOfExtensionProcesses;
113 113
114 // This is used by the PreRead experiment.
115 extern const char kPreReadEnvironmentVariable[];
116
114 #if defined(OS_LINUX) 117 #if defined(OS_LINUX)
115 // The highest and lowest assigned OOM score adjustment 118 // The highest and lowest assigned OOM score adjustment
116 // (oom_score_adj) used by the OomPriority Manager. 119 // (oom_score_adj) used by the OomPriority Manager.
117 extern const int kLowestRendererOomScore; 120 extern const int kLowestRendererOomScore;
118 extern const int kHighestRendererOomScore; 121 extern const int kHighestRendererOomScore;
119 #endif 122 #endif
120 123
121 #if defined(OS_WIN) 124 #if defined(OS_WIN)
122 // This is used by the PreRead experiment.
123 extern const char kPreReadEnvironmentVariable[];
124 // Used by Metro Chrome to create the profile under a custom subdirectory. 125 // Used by Metro Chrome to create the profile under a custom subdirectory.
125 extern const wchar_t kMetroChromeUserDataSubDir[]; 126 extern const wchar_t kMetroChromeUserDataSubDir[];
126 // Used by Metro Chrome to initiate navigation and search requests. 127 // Used by Metro Chrome to initiate navigation and search requests.
127 extern const wchar_t kMetroNavigationAndSearchMessage[]; 128 extern const wchar_t kMetroNavigationAndSearchMessage[];
128 // Used by Metro Chrome to get information about the current tab. 129 // Used by Metro Chrome to get information about the current tab.
129 extern const wchar_t kMetroGetCurrentTabInfoMessage[]; 130 extern const wchar_t kMetroGetCurrentTabInfoMessage[];
130 // Used by Metro Chrome to store activation state. 131 // Used by Metro Chrome to store activation state.
131 extern const wchar_t kMetroRegistryPath[]; 132 extern const wchar_t kMetroRegistryPath[];
132 extern const wchar_t kLaunchModeValue[]; 133 extern const wchar_t kLaunchModeValue[];
133 // Used by the browser as a container in which to track unreported crash dump 134 // Used by the browser as a container in which to track unreported crash dump
134 // attempts. The actual values (each representing one crash dump attempt) are 135 // attempts. The actual values (each representing one crash dump attempt) are
135 // stored in a subkey named with the version number of the build. Each value 136 // stored in a subkey named with the version number of the build. Each value
136 // under the subkey represents an additional attempt. 137 // under the subkey represents an additional attempt.
137 extern const wchar_t kBrowserCrashDumpAttemptsRegistryPath[]; 138 extern const wchar_t kBrowserCrashDumpAttemptsRegistryPath[];
138 #endif 139 #endif
139 140
140 #if defined(OS_CHROMEOS) 141 #if defined(OS_CHROMEOS)
141 // Chrome OS profile directories have custom prefix. 142 // Chrome OS profile directories have custom prefix.
142 // Profile path format: [user_data_dir]/u-[$hash] 143 // Profile path format: [user_data_dir]/u-[$hash]
143 // Ex.: /home/chronos/u-0123456789 144 // Ex.: /home/chronos/u-0123456789
144 extern const char kProfileDirPrefix[]; 145 extern const char kProfileDirPrefix[];
145 #endif 146 #endif
146 147
147 // Used to identify the application to the system AV function in Windows. 148 // Used to identify the application to the system AV function in Windows.
148 extern const char kApplicationClientIDStringForAVScanning[]; 149 extern const char kApplicationClientIDStringForAVScanning[];
149 150
150 } // namespace chrome 151 } // namespace chrome
151 152
152 #endif // CHROME_COMMON_CHROME_CONSTANTS_H_ 153 #endif // CHROME_COMMON_CHROME_CONSTANTS_H_
OLDNEW
« no previous file with comments | « chrome/browser/chrome_browser_main.cc ('k') | chrome/common/chrome_constants.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698