summaryrefslogtreecommitdiffstats
path: root/chrome/app/file_pre_reader_win.h
blob: 93cc2e7f8e28f33dc6dc39b3c31e8fb227416eaa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

// This file defines a function to pre-read a file in order to avoid touching
// the disk when it is subsequently used.

#ifndef CHROME_APP_FILE_PRE_READER_WIN_H_
#define CHROME_APP_FILE_PRE_READER_WIN_H_

namespace base {
class FilePath;
}

namespace startup_metric_utils {
struct PreReadOptions;
}

// Pre-reads |file_path| to avoid touching the disk when the file is actually
// used. Checks |pre_read_options| to determine how to pre-read the file.
void PreReadFile(const base::FilePath& file_path,
                 const startup_metric_utils::PreReadOptions& pre_read_options);

#endif  // CHROME_APP_FILE_PRE_READER_WIN_H_