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

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: Rebase Created 3 years, 6 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 eb1d29ad5065e6a74b6e5ac650584b7ce925c326..e5c90b81b3aef9c006bb718a36e52f3ab4b78865 100644
--- a/chrome/browser/predictors/loading_predictor.h
+++ b/chrome/browser/predictors/loading_predictor.h
@@ -12,6 +12,7 @@
#include "base/gtest_prod_util.h"
#include "base/memory/weak_ptr.h"
#include "base/time/time.h"
+#include "chrome/browser/predictors/loading_data_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"
@@ -52,7 +53,8 @@ class LoadingPredictor : public KeyedService,
void StartInitialization();
// Don't use, internal only.
- ResourcePrefetchPredictor* resource_prefetch_predictor() const;
+ ResourcePrefetchPredictor* resource_prefetch_predictor();
+ LoadingDataCollector* loading_data_collector();
// KeyedService:
void Shutdown() override;
@@ -82,6 +84,7 @@ class LoadingPredictor : public KeyedService,
Profile* profile_;
std::unique_ptr<ResourcePrefetchPredictor> resource_prefetch_predictor_;
std::unique_ptr<LoadingStatsCollector> stats_collector_;
+ std::unique_ptr<LoadingDataCollector> loading_data_collector_;
std::map<GURL, base::TimeTicks> active_hints_;
// Initial URL.
std::map<NavigationID, GURL> active_navigations_;
« no previous file with comments | « chrome/browser/predictors/loading_data_collector_unittest.cc ('k') | chrome/browser/predictors/loading_predictor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698