Index: components/offline_pages/core/background/offliner.h |
diff --git a/components/offline_pages/core/background/offliner.h b/components/offline_pages/core/background/offliner.h |
index aae5fd9c780027f83747b3abce68c566d5c2353c..72faff465f54be1a83dad3e9389515b10a154982 100644 |
--- a/components/offline_pages/core/background/offliner.h |
+++ b/components/offline_pages/core/background/offliner.h |
@@ -8,6 +8,7 @@ |
#include <string> |
#include "base/callback.h" |
+#include "components/offline_pages/core/background/resource_data_type.h" |
namespace offline_pages { |
@@ -93,6 +94,12 @@ class Offliner { |
// offlining will be provided by |completion_callback|. |
virtual bool HandleTimeout(int64_t request_id) = 0; |
+ // We are notified of a resource load starting or ending, we can use this |
+ // for tracking loading signals. |
+ virtual void ObserveResourceTracking(const ResourceDataType type, |
+ int64_t started_count, |
+ int64_t completed_count) = 0; |
+ |
// TODO(dougarnett): add policy support methods. |
}; |