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

Side by Side Diff: components/offline_pages/core/background/resource_tracker_observer.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 unified diff | Download patch
OLDNEW
(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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698