OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2011 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_BROWSER_FRAGMENTATION_CHECKER_WIN_H_ |
| 6 #define CHROME_BROWSER_FRAGMENTATION_CHECKER_WIN_H_ |
| 7 #pragma once |
| 8 |
| 9 #include "base/basictypes.h" |
| 10 |
| 11 class FilePath; |
| 12 |
| 13 namespace fragmentation_checker { |
| 14 |
| 15 // Returns the number of extents for the file at |file_path|. On |
| 16 // success, returns true and the count is placed in |file_extents_count|. |
| 17 bool CountFileExtents(const FilePath& file_path, int* file_extents_count); |
| 18 |
| 19 // Records fragmentation metrics for the current module. This records the number |
| 20 // of fragments the current module is stored in. |
| 21 // This will be used to determine whether pursuing more aggressive |
| 22 // manual defragmentation is worth the effort. |
| 23 void RecordFragmentationMetricForCurrentModule(); |
| 24 |
| 25 } // namespace fragmentation_checker |
| 26 |
| 27 #endif // CHROME_BROWSER_FRAGMENTATION_CHECKER_WIN_H_ |
OLD | NEW |