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

Unified Diff: components/offline_pages/core/prefetch/prefetch_service_test_taco.h

Issue 2920083002: Prefetching: Introduce store commands abstractions to be used by tasks. (Closed)
Patch Set: Added TODO for NWake 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: components/offline_pages/core/prefetch/prefetch_service_test_taco.h
diff --git a/components/offline_pages/core/prefetch/prefetch_service_test_taco.h b/components/offline_pages/core/prefetch/prefetch_service_test_taco.h
index 08ccfd68d9c7a513ec7298518f09fd472632dade..84834b85f80561e3038e00c073116563793da097 100644
--- a/components/offline_pages/core/prefetch/prefetch_service_test_taco.h
+++ b/components/offline_pages/core/prefetch/prefetch_service_test_taco.h
@@ -14,7 +14,7 @@ class OfflineMetricsCollector;
class PrefetchDispatcher;
class PrefetchGCMHandler;
class PrefetchService;
-class PrefetchStore;
+class PrefetchStoreCommandFactory;
class SuggestedArticlesObserver;
// The taco class acts as a wrapper around the prefetch service making
@@ -27,7 +27,7 @@ class SuggestedArticlesObserver;
// * TestOfflineMetricsCollector
// * PrefetchDispatcherImpl
// * TestPrefetchGCMHandler
-// * PrefetchInMemoryStore
+// * PrefetchStoreCommandFactory (implementation TBD)
// * |nullptr| SuggestedArticlesObserver, since this is default just a lifetime
// arrangement.
class PrefetchServiceTestTaco {
@@ -41,7 +41,8 @@ class PrefetchServiceTestTaco {
std::unique_ptr<OfflineMetricsCollector> metrics_collector);
void SetPrefetchDispatcher(std::unique_ptr<PrefetchDispatcher> dispatcher);
void SetPrefetchGCMHandler(std::unique_ptr<PrefetchGCMHandler> gcm_handler);
- void SetPrefetchStore(std::unique_ptr<PrefetchStore> prefetch_store);
+ void SetPrefetchStoreCommandFactory(
+ std::unique_ptr<PrefetchStoreCommandFactory> store_command_factory);
void SetSuggestedArticlesObserver(
std::unique_ptr<SuggestedArticlesObserver> suggested_articles_observer);
@@ -61,7 +62,7 @@ class PrefetchServiceTestTaco {
std::unique_ptr<OfflineMetricsCollector> metrics_collector_;
std::unique_ptr<PrefetchDispatcher> dispatcher_;
std::unique_ptr<PrefetchGCMHandler> gcm_handler_;
- std::unique_ptr<PrefetchStore> store_;
+ std::unique_ptr<PrefetchStoreCommandFactory> store_command_factory_;
std::unique_ptr<SuggestedArticlesObserver> suggested_articles_observer_;
std::unique_ptr<PrefetchService> prefetch_service_;

Powered by Google App Engine
This is Rietveld 408576698