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

Side by Side Diff: components/startup_metric_utils/common/pre_read_field_trial_utils_win.h

Issue 2075693002: Always use a /prefetch:# switch when launching a process on Windows. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 6 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
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « components/nacl/browser/nacl_process_host.cc ('k') | components/startup_metric_utils/common/pre_read_field_trial_utils_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698