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 #ifndef COMPONENTS_OFFLINE_PAGES_CORE_BACKGROUND_RESOURCE_TRACKER_OBSERVER_H_ |
| 6 #define COMPONENTS_OFFLINE_PAGES_CORE_BACKGROUND_RESOURCE_TRACKER_OBSERVER_H_ |
| 7 |
| 8 #include <stdint.h> |
| 9 |
| 10 #include "components/offline_pages/core/background/resource_data_type.h" |
| 11 |
| 12 namespace offline_pages { |
| 13 |
| 14 // Interface for observing notifications from the resource tracker start and |
| 15 // completion counts. |
| 16 class ResourceTrackerObserver { |
| 17 public: |
| 18 // When we are notified of a resource load starting or ending, pass the |
| 19 // information along to the offliner. |
| 20 virtual void ObserveResourceTracking(const ResourceDataType type, |
| 21 int64_t started_count, |
| 22 int64_t completed_count) = 0; |
| 23 }; |
| 24 |
| 25 } // namespace offline_pages |
| 26 |
| 27 #endif // COMPONENTS_OFFLINE_PAGES_CORE_BACKGROUND_RESOURCE_TRACKER_OBSERVER_H_ |
OLD | NEW |