blob: 7207fe88605476621736bf1529ef9a6a95d8325a [file] [log] [blame]
Joel Hockeyc15f71b2023-05-11 21:03:501// 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.
11namespace file_manager::file_tasks {
12
13/**
14 * List of file extensions to record in UMA, from enums.xml ViewFileType.
15 */
16enum 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
23ViewFileType GetViewFileType(const base::FilePath& path);
24
25} // namespace file_manager::file_tasks
26
27#endif // CHROME_BROWSER_ASH_FILE_MANAGER_UMA_ENUMS_GEN_H_