Index: components/offline_pages/core/background/resource_data_type.h |
diff --git a/components/offline_pages/core/background/resource_data_type.h b/components/offline_pages/core/background/resource_data_type.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..f6b8fefd02180fb3bd36e80075c3723d2d01b46a |
--- /dev/null |
+++ b/components/offline_pages/core/background/resource_data_type.h |
@@ -0,0 +1,34 @@ |
+// 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. |
+ |
+// This type is used to communicate the type of a network request to the |
+// RequestCoordinator. We don't use content::ResourceType which is used by |
+// the network code because code from the content tree is not available to |
+// code in the components tree (RequestCoordinator). |
+ |
+#ifndef COMPONENTS_OFFLINE_PAGES_CORE_BACKGROUND_RESOURCE_DATA_TYPE_H_ |
+#define COMPONENTS_OFFLINE_PAGES_CORE_BACKGROUND_RESOURCE_DATA_TYPE_H_ |
+ |
+namespace offline_pages { |
+ |
+enum ResourceDataType { |
+ APPLICATION, |
+ MEDIA, |
+ EXAMPLE, |
+ IMAGE, |
+ MESSAGE, |
+ MODEL, |
+ MULTIPART, |
+ TEXT_CSS, |
+ TEXT_HTML, |
+ TEXT_PLAIN, |
+ TEXT_SCRIPT, |
+ XHR, |
+ OTHER, |
+ RESOURCE_DATA_TYPE_COUNT, |
+}; |
+ |
+} // namespace offline_pages |
+ |
+#endif // COMPONENTS_OFFLINE_PAGES_CORE_BACKGROUND_RESOURCE_DATA_TYPE_H_ |