Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(357)

Unified Diff: components/offline_pages/core/background/resource_data_type.h

Issue 2857063002: Add a way to send the resource percentage signal to the RC. (Closed)
Patch Set: Turn off other metrics which might require tab helpers when background loading Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 {
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
+ 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_

Powered by Google App Engine
This is Rietveld 408576698