File: file_extension.h

package info (click to toggle)
chromium 120.0.6099.224-1~deb11u1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 6,112,112 kB
  • sloc: cpp: 32,907,025; ansic: 8,148,123; javascript: 3,679,536; python: 2,031,248; asm: 959,718; java: 804,675; xml: 617,256; sh: 111,417; objc: 100,835; perl: 88,443; cs: 53,032; makefile: 29,579; fortran: 24,137; php: 21,162; tcl: 21,147; sql: 20,809; ruby: 17,735; pascal: 12,864; yacc: 8,045; lisp: 3,388; lex: 1,323; ada: 727; awk: 329; jsp: 267; csh: 117; exp: 43; sed: 37
file content (98 lines) | stat: -rw-r--r-- 1,601 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
// Copyright 2022 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef PDF_FILE_EXTENSION_H_
#define PDF_FILE_EXTENSION_H_

#include <string>

namespace chrome_pdf {

// The indexes should always match `ViewFileType` in
// tools/metrics/histograms/enums.xml and should never be renumbered.
enum class ExtensionIndex : int {
  kOtherExt = 0,
  k3ga = 1,
  k3gp = 2,
  kAac = 3,
  kAlac = 4,
  kAsf = 5,
  kAvi = 6,
  kBmp = 7,
  kCsv = 8,
  kDoc = 9,
  kDocx = 10,
  kFlac = 11,
  kGif = 12,
  kJpeg = 13,
  kJpg = 14,
  kLog = 15,
  kM3u = 16,
  kM3u8 = 17,
  kM4a = 18,
  kM4v = 19,
  kMid = 20,
  kMkv = 21,
  kMov = 22,
  kMp3 = 23,
  kMp4 = 24,
  kMpg = 25,
  kOdf = 26,
  kOdp = 27,
  kOds = 28,
  kOdt = 29,
  kOga = 30,
  kOgg = 31,
  kOgv = 32,
  kPdf = 33,
  kPng = 34,
  kPpt = 35,
  kPptx = 36,
  kRa = 37,
  kRam = 38,
  kRar = 39,
  kRm = 40,
  kRtf = 41,
  kWav = 42,
  kWebm = 43,
  kWebp = 44,
  kWma = 45,
  kWmv = 46,
  kXls = 47,
  kXlsx = 48,
  kCrdownload = 49,
  kCrx = 50,
  kDmg = 51,
  kExe = 52,
  kHtml = 53,
  kHtm = 54,
  kJar = 55,
  kPs = 56,
  kTorrent = 57,
  kTxt = 58,
  kZip = 59,
  kDirectory = 60,
  kEmptyExt = 61,
  kUnknownExt = 62,
  kMhtml = 63,
  kGdoc = 64,
  kGsheet = 65,
  kGslides = 66,
  kArw = 67,
  kCr2 = 68,
  kDng = 69,
  kNef = 70,
  kNrw = 71,
  kOrf = 72,
  kRaf = 73,
  kRw2 = 74,
  kTini = 75,
  kMaxValue = kTini,
};

enum ExtensionIndex FileNameToExtensionIndex(const std::u16string& file_name);

}  // namespace chrome_pdf

#endif  // PDF_FILE_EXTENSION_H_