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

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

Issue 1595633002: Use valid /prefetch arguments for process launches on Windows. - do not submit (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@move
Patch Set: address simple comments from gab Created 4 years, 11 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/common/DEPS ('k') | chrome/common/prefetch_argument_win.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright (c) 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CHROME_COMMON_PREFETCH_ARGUMENT_WIN_H_
6 #define CHROME_COMMON_PREFETCH_ARGUMENT_WIN_H_
7
8 namespace base {
9 class CommandLine;
10 } // namespace base
11
12 namespace chrome {
13 // Adds a prefetch argument to |command_line|. The --type and
14 // --no-startup-window switches must already have been added, if applicable, as
15 // they determine which prefetch argument is added to |command_line|. It has
16 // been observed that when file reads are consistent for 3 process launches with
17 // the same prefetch argument, the prefetcher starts issuing the reads in batch
18 // at process launch. This is more efficient than reading a few pages at a time
19 // on-demand. The prefetcher isn't able to observe consistent file reads across
20 // Chrome process launches when no prefetch argument is used, because the reads
21 // depend on the process type.
22 void AddWindowsPrefetchArgument(base::CommandLine* command_line);
23 } // namespace chrome
24
25 #endif // CHROME_COMMON_PREFETCH_ARGUMENT_WIN_H_
OLDNEW
« no previous file with comments | « chrome/common/DEPS ('k') | chrome/common/prefetch_argument_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698