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

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

Issue 2879013002: Create skeleton for the Prefetching store and initial pipeline step. (Closed)
Patch Set: Dispatcher instance is now injected into Service. Minor changes. 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: components/offline_pages/core/prefetch/prefetch_service_impl.h
diff --git a/components/offline_pages/core/prefetch/prefetch_service_impl.h b/components/offline_pages/core/prefetch/prefetch_service_impl.h
index c476f13e90e0bbdf2a47530f71e58bcd3c6c14bb..6f957aafa2db5501ca2818b64f791de412ca66cd 100644
--- a/components/offline_pages/core/prefetch/prefetch_service_impl.h
+++ b/components/offline_pages/core/prefetch/prefetch_service_impl.h
@@ -14,16 +14,19 @@ namespace offline_pages {
class PrefetchServiceImpl : public PrefetchService {
public:
- PrefetchServiceImpl();
+ PrefetchServiceImpl(std::unique_ptr<PrefetchStore> store,
+ std::unique_ptr<PrefetchDispatcher> dispatcher);
~PrefetchServiceImpl() override;
// PrefetchService implementation:
PrefetchDispatcher* GetDispatcher() override;
+ PrefetchStore* GetStore() override;
// KeyedService implementation:
void Shutdown() override;
private:
+ std::unique_ptr<PrefetchStore> store_;
Dmitry Titov 2017/05/26 23:05:06 prefetch_store_
carlosk 2017/06/01 01:49:59 Done, and below too.
std::unique_ptr<PrefetchDispatcher> dispatcher_;
DISALLOW_COPY_AND_ASSIGN(PrefetchServiceImpl);

Powered by Google App Engine
This is Rietveld 408576698