Chromium Code Reviews| Index: components/offline_content/core/offline_item_file_extension.h |
| diff --git a/components/offline_content/core/offline_item_file_extension.h b/components/offline_content/core/offline_item_file_extension.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..fdad463ec01199b0a06316934d5e757d102e9a0c |
| --- /dev/null |
| +++ b/components/offline_content/core/offline_item_file_extension.h |
| @@ -0,0 +1,33 @@ |
| +// Copyright 2017 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef COMPONENTS_OFFLINE_CONTENT_CORE_OFFLINE_ITEM_FILE_EXTENSION_H_ |
| +#define COMPONENTS_OFFLINE_CONTENT_CORE_OFFLINE_ITEM_FILE_EXTENSION_H_ |
| + |
| +namespace offline_content { |
| + |
| +// A Java counterpart will be generated for this enum. |
| +// GENERATED_JAVA_ENUM_PACKAGE: org.chromium.offline_content.core.item |
| +enum OfflineItemFileExtension { |
| + FILE_EXTENSION_OTHER = 0, |
|
qinmin
2017/02/14 07:37:20
are these extensions for FILTER_DOCUMENT? Why not
David Trainor- moved to gerrit
2017/02/22 01:23:13
I pulled this (practically all) of the fields from
|
| + FILE_EXTENSION_APK = 1, |
|
qinmin
2017/02/14 07:37:20
you can remove all the numbers here and below
David Trainor- moved to gerrit
2017/02/22 01:23:13
Done.
|
| + FILE_EXTENSION_CSV = 2, |
| + FILE_EXTENSION_DOC = 3, |
| + FILE_EXTENSION_DOCX = 4, |
| + FILE_EXTENSION_EXE = 5, |
| + FILE_EXTENSION_PDF = 6, |
| + FILE_EXTENSION_PPT = 7, |
| + FILE_EXTENSION_PPTX = 8, |
| + FILE_EXTENSION_PSD = 9, |
| + FILE_EXTENSION_RTF = 10, |
| + FILE_EXTENSION_TXT = 11, |
| + FILE_EXTENSION_XLS = 12, |
| + FILE_EXTENSION_XLSX = 13, |
| + FILE_EXTENSION_ZIP = 14, |
| + FILE_EXTENSION_BOUNDARY = 15, |
| +}; |
| + |
| +} // namespace offline_content |
| + |
| +#endif // COMPONENTS_OFFLINE_CONTENT_CORE_OFFLINE_ITEM_FILE_EXTENSION_H_ |