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

Unified Diff: components/download/internal/model.h

Issue 2895953004: Add initial Controller to DownloadService (Closed)
Patch Set: Rebased 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
« no previous file with comments | « components/download/internal/entry_utils_unittest.cc ('k') | components/download/internal/model_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/download/internal/model.h
diff --git a/components/download/internal/model.h b/components/download/internal/model.h
index d7f6d105156b456a0123eeced297bdb046c3a17f..d45a25594d91009241760637abf1d56d050d41dd 100644
--- a/components/download/internal/model.h
+++ b/components/download/internal/model.h
@@ -30,7 +30,7 @@ class Model {
// |success| is |false|, initialization of the Model and/or the underlying
// Store failed. Initialization of the Model is complete after this
// callback. If |success| is true it can be accessed now.
- virtual void OnInitialized(bool success) = 0;
+ virtual void OnModelReady(bool success) = 0;
// Called when an Entry addition is complete. |success| determines whether
// or not the entry has been successfully persisted to the Store.
@@ -57,7 +57,7 @@ class Model {
// Initializes the Model. Client::OnInitialized() will be called in response.
// The Model can be used after that call.
- virtual void Initialize() = 0;
+ virtual void Initialize(Client* client) = 0;
// Adds |entry| to this Model and attempts to write |entry| to the Store.
// Client::OnItemAdded() will be called in response asynchronously.
« no previous file with comments | « components/download/internal/entry_utils_unittest.cc ('k') | components/download/internal/model_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698