Joel Hockey | c15f71b | 2023-05-11 21:03:50 | [diff] [blame] | 1 | // Copyright 2023 The Chromium Authors |
| 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_ASH_FILE_MANAGER_UMA_ENUMS_GEN_H_ |
| 6 | #define CHROME_BROWSER_ASH_FILE_MANAGER_UMA_ENUMS_GEN_H_ |
| 7 | |
| 8 | #include "base/files/file_path.h" |
| 9 | |
| 10 | // File generated by //ui/file_manager/base/gn/uma_enums_generate.py. |
| 11 | namespace file_manager::file_tasks { |
| 12 | |
| 13 | /** |
| 14 | * List of file extensions to record in UMA, from enums.xml ViewFileType. |
| 15 | */ |
| 16 | enum class ViewFileType { |
| 17 | {% for e in enums %} |
| 18 | k{{e.strip('.').title().replace(' ', '')}}, |
| 19 | {% endfor %} |
| 20 | kMaxValue = k{{enums[-1].strip('.').title().replace(' ', '')}}, |
| 21 | }; |
| 22 | |
| 23 | ViewFileType GetViewFileType(const base::FilePath& path); |
| 24 | |
| 25 | } // namespace file_manager::file_tasks |
| 26 | |
| 27 | #endif // CHROME_BROWSER_ASH_FILE_MANAGER_UMA_ENUMS_GEN_H_ |