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

Unified Diff: components/offline_pages/offline_page_model_impl.h

Issue 2180973002: [Offline pages] Adapting OfflinePageDownloadBridge to DownloadUIAdapter (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@ui-adapter
Patch Set: Hooking up download ui adapter to offline page model and bridge Created 4 years, 5 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/offline_page_model_impl.h
diff --git a/components/offline_pages/offline_page_model_impl.h b/components/offline_pages/offline_page_model_impl.h
index b93a227ebf40a5f09029fd8ffdbd3921eae29da0..52558365c1786d31f5d7df1cad2092a2ceda2053 100644
--- a/components/offline_pages/offline_page_model_impl.h
+++ b/components/offline_pages/offline_page_model_impl.h
@@ -48,6 +48,7 @@ struct OfflinePageItem;
class ArchiveManager;
class ClientPolicyController;
+class DownloadUIAdapter;
class OfflinePageMetadataStore;
class OfflinePageStorageManager;
@@ -111,6 +112,7 @@ class OfflinePageModelImpl : public OfflinePageModel, public KeyedService {
const base::Time& expiration_time,
const base::Callback<void(bool)>& callback) override;
ClientPolicyController* GetPolicyController() override;
+ DownloadUIAdapter* GetDownloadUIAdapter() override;
// Methods for testing only:
OfflinePageMetadataStore* GetStoreForTesting();
@@ -289,6 +291,9 @@ class OfflinePageModelImpl : public OfflinePageModel, public KeyedService {
// Controller of the client policies.
std::unique_ptr<ClientPolicyController> policy_controller_;
+ // Adapts offline page related structures to Download UI structures.
+ std::unique_ptr<DownloadUIAdapter> download_ui_adapter_;
+
// Manager for the storage consumed by archives and responsible for
// automatic page clearing.
std::unique_ptr<OfflinePageStorageManager> storage_manager_;

Powered by Google App Engine
This is Rietveld 408576698