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

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

Issue 2881173003: Download Service : Added leveldb proto layer (Closed)
Patch Set: Removed Model::Destroy 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/download_store_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 ce5de88e4500878f1f7667c461b30cfb53991144..d7f6d105156b456a0123eeced297bdb046c3a17f 100644
--- a/components/download/internal/model.h
+++ b/components/download/internal/model.h
@@ -32,11 +32,6 @@ class Model {
// callback. If |success| is true it can be accessed now.
virtual void OnInitialized(bool success) = 0;
- // Called asynchronously in response to a Model::Destroy call. If |success|
- // is |false|, destruction of the Model and/or the underlying Store failed.
- // Destruction of the Model is effectively complete after this callback.
- virtual void OnDestroyed(bool success) = 0;
-
// Called when an Entry addition is complete. |success| determines whether
// or not the entry has been successfully persisted to the Store.
virtual void OnItemAdded(bool success,
@@ -64,9 +59,6 @@ class Model {
// The Model can be used after that call.
virtual void Initialize() = 0;
- // Destroys the Model. Client::OnDestroyed() will be called in response.
- virtual void Destroy() = 0;
-
// Adds |entry| to this Model and attempts to write |entry| to the Store.
// Client::OnItemAdded() will be called in response asynchronously.
virtual void Add(const Entry& entry) = 0;
« no previous file with comments | « components/download/internal/download_store_unittest.cc ('k') | components/download/internal/model_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698