fdoray | ab55daf | 2015-11-10 21:54:17 | [diff] [blame] | 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 |
| 3 | // found in the LICENSE file. |
| 4 | |
| 5 | // This file defines a function to pre-read a file in order to avoid touching |
| 6 | // the disk when it is subsequently used. |
| 7 | |
| 8 | #ifndef CHROME_APP_FILE_PRE_READER_WIN_H_ |
| 9 | #define CHROME_APP_FILE_PRE_READER_WIN_H_ |
| 10 | |
| 11 | namespace base { |
| 12 | class FilePath; |
| 13 | } |
| 14 | |
fdoray | fb9b774 | 2016-02-05 16:28:10 | [diff] [blame] | 15 | // Pre-reads |file_path| to avoid touching the disk when the file is actually |
fdoray | f888dced | 2016-08-31 22:08:14 | [diff] [blame] | 16 | // used. |
| 17 | void PreReadFile(const base::FilePath& file_path); |
fdoray | ab55daf | 2015-11-10 21:54:17 | [diff] [blame] | 18 | |
| 19 | #endif // CHROME_APP_FILE_PRE_READER_WIN_H_ |