OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 #ifndef COMPONENTS_STARTUP_METRIC_UTILS_COMMON_PRE_READ_FIELD_TRIAL_UTILS_WIN_H_ | 5 #ifndef COMPONENTS_STARTUP_METRIC_UTILS_COMMON_PRE_READ_FIELD_TRIAL_UTILS_WIN_H_ |
6 #define COMPONENTS_STARTUP_METRIC_UTILS_COMMON_PRE_READ_FIELD_TRIAL_UTILS_WIN_H_ | 6 #define COMPONENTS_STARTUP_METRIC_UTILS_COMMON_PRE_READ_FIELD_TRIAL_UTILS_WIN_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/callback_forward.h" | 10 #include "base/callback_forward.h" |
(...skipping 12 matching lines...) Expand all Loading... |
23 struct PreReadOptions { | 23 struct PreReadOptions { |
24 // Pre-read DLLs explicitly. | 24 // Pre-read DLLs explicitly. |
25 bool pre_read : 1; | 25 bool pre_read : 1; |
26 | 26 |
27 // Pre-read DLLs with a high thread priority. | 27 // Pre-read DLLs with a high thread priority. |
28 bool high_priority : 1; | 28 bool high_priority : 1; |
29 | 29 |
30 // Pre-read DLLs using the ::PrefetchVirtualMemory function, if available. | 30 // Pre-read DLLs using the ::PrefetchVirtualMemory function, if available. |
31 bool prefetch_virtual_memory : 1; | 31 bool prefetch_virtual_memory : 1; |
32 | 32 |
33 // Use a /prefetch argument when launching a process. | |
34 bool use_prefetch_argument : 1; | |
35 | |
36 // Pre-read chrome_child.dll in the browser process and not in child | 33 // Pre-read chrome_child.dll in the browser process and not in child |
37 // processes. | 34 // processes. |
38 bool pre_read_chrome_child_in_browser : 1; | 35 bool pre_read_chrome_child_in_browser : 1; |
39 }; | 36 }; |
40 | 37 |
41 // Initializes DLL pre-reading options from the registry. | 38 // Initializes DLL pre-reading options from the registry. |
42 // |product_registry_path| is the registry path under which the registry key for | 39 // |product_registry_path| is the registry path under which the registry key for |
43 // this field trial resides. | 40 // this field trial resides. |
44 void InitializePreReadOptions(const base::string16& product_registry_path); | 41 void InitializePreReadOptions(const base::string16& product_registry_path); |
45 | 42 |
(...skipping 12 matching lines...) Expand all Loading... |
58 // startup won't be correctly annotated. |product_registry_path| is the registry | 55 // startup won't be correctly annotated. |product_registry_path| is the registry |
59 // path under which the key for this field trial resides. | 56 // path under which the key for this field trial resides. |
60 void RegisterPreReadSyntheticFieldTrial( | 57 void RegisterPreReadSyntheticFieldTrial( |
61 const base::string16& product_registry_path, | 58 const base::string16& product_registry_path, |
62 const RegisterPreReadSyntheticFieldTrialCallback& | 59 const RegisterPreReadSyntheticFieldTrialCallback& |
63 register_synthetic_field_trial); | 60 register_synthetic_field_trial); |
64 | 61 |
65 } // namespace startup_metric_utils | 62 } // namespace startup_metric_utils |
66 | 63 |
67 #endif // COMPONENTS_STARTUP_METRIC_UTILS_COMMON_PRE_READ_FIELD_TRIAL_UTILS_WIN
_H_ | 64 #endif // COMPONENTS_STARTUP_METRIC_UTILS_COMMON_PRE_READ_FIELD_TRIAL_UTILS_WIN
_H_ |
OLD | NEW |