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

Unified Diff: chrome/browser/predictors/loading_predictor.h

Issue 2896713003: Create LoadingDataCollector class and have observers rely on it instead of ResourcePrefetchPredictor (Closed)
Patch Set: 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: chrome/browser/predictors/loading_predictor.h
diff --git a/chrome/browser/predictors/loading_predictor.h b/chrome/browser/predictors/loading_predictor.h
index 9bcdd81fec861b45e1897c201c14f70d8aaced53..8e18c6006ad1e5d8570670663e095c3fc7fd3c8b 100644
--- a/chrome/browser/predictors/loading_predictor.h
+++ b/chrome/browser/predictors/loading_predictor.h
@@ -8,6 +8,7 @@
#include <memory>
#include "base/memory/weak_ptr.h"
+#include "chrome/browser/predictors/glowplug_collector.h"
#include "chrome/browser/predictors/resource_prefetch_common.h"
#include "chrome/browser/predictors/resource_prefetch_predictor.h"
#include "components/keyed_service/core/keyed_service.h"
@@ -44,12 +45,14 @@ class LoadingPredictor : public KeyedService,
// Don't use, internal only.
ResourcePrefetchPredictor* resource_prefetch_predictor() const;
+ GlowplugCollector* glowplug_collector() const;
// KeyedService:
void Shutdown() override;
private:
std::unique_ptr<ResourcePrefetchPredictor> resource_prefetch_predictor_;
+ std::unique_ptr<GlowplugCollector> glowplug_collector_;
alexilin 2017/05/22 13:20:36 We need to decide whether GlowplugCollector should
Benoit L 2017/05/22 13:37:16 As its lifetime is 100% tied to LoadingPredictor,
alexilin 2017/05/23 08:24:37 SGTM Just one point in favor of separate lifetimes
DISALLOW_COPY_AND_ASSIGN(LoadingPredictor);
};

Powered by Google App Engine
This is Rietveld 408576698