OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2017 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 // This type is used to communicate the type of a network request to the | |
6 // RequestCoordinator. We don't use content::ResourceType which is used by | |
7 // the network code because code from the content tree is not available to | |
8 // code in the components tree (RequestCoordinator). | |
9 | |
10 #ifndef COMPONENTS_OFFLINE_PAGES_CORE_BACKGROUND_RESOURCE_DATA_TYPE_H_ | |
11 #define COMPONENTS_OFFLINE_PAGES_CORE_BACKGROUND_RESOURCE_DATA_TYPE_H_ | |
12 | |
13 namespace offline_pages { | |
14 | |
15 enum ResourceDataType { | |
Dmitry Titov
2017/05/18 02:28:10
It's simpler to move this enum into a proper class
Pete Williamson
2017/05/24 01:01:50
Since it is referenced in offliner.h, i moved it i
| |
16 APPLICATION, | |
17 MEDIA, | |
18 EXAMPLE, | |
19 IMAGE, | |
20 MESSAGE, | |
21 MODEL, | |
22 MULTIPART, | |
23 TEXT_CSS, | |
24 TEXT_HTML, | |
25 TEXT_PLAIN, | |
26 TEXT_SCRIPT, | |
27 XHR, | |
28 OTHER, | |
29 RESOURCE_DATA_TYPE_COUNT, | |
30 }; | |
31 | |
32 } // namespace offline_pages | |
33 | |
34 #endif // COMPONENTS_OFFLINE_PAGES_CORE_BACKGROUND_RESOURCE_DATA_TYPE_H_ | |
OLD | NEW |