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

Side by Side Diff: ios/chrome/browser/reading_list/reading_list_model_impl.h

Issue 2398233003: with sync (Closed)
Patch Set: done Created 4 years, 2 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 unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef IOS_CHROME_BROWSER_READING_LIST_READING_LIST_MODEL_IMPL_H_ 5 #ifndef IOS_CHROME_BROWSER_READING_LIST_READING_LIST_MODEL_IMPL_H_
6 #define IOS_CHROME_BROWSER_READING_LIST_READING_LIST_MODEL_IMPL_H_ 6 #define IOS_CHROME_BROWSER_READING_LIST_READING_LIST_MODEL_IMPL_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "components/keyed_service/core/keyed_service.h" 10 #include "components/keyed_service/core/keyed_service.h"
(...skipping 10 matching lines...) Expand all
21 public: 21 public:
22 // Initialize a ReadingListModelImpl to load and save data in 22 // Initialize a ReadingListModelImpl to load and save data in
23 // |persistence_layer|. 23 // |persistence_layer|.
24 ReadingListModelImpl(std::unique_ptr<ReadingListModelStorage> storage_layer, 24 ReadingListModelImpl(std::unique_ptr<ReadingListModelStorage> storage_layer,
25 PrefService* pref_service); 25 PrefService* pref_service);
26 26
27 // Initialize a ReadingListModelImpl without persistence. Data will not be 27 // Initialize a ReadingListModelImpl without persistence. Data will not be
28 // persistent across sessions. 28 // persistent across sessions.
29 ReadingListModelImpl(); 29 ReadingListModelImpl();
30 30
31 syncer::ModelTypeService* GetModelTypeService() override;
32
31 ~ReadingListModelImpl() override; 33 ~ReadingListModelImpl() override;
32 void Shutdown() override; 34 void Shutdown() override;
33 35
34 bool loaded() const override; 36 bool loaded() const override;
35 37
36 size_t unread_size() const override; 38 size_t unread_size() const override;
37 size_t read_size() const override; 39 size_t read_size() const override;
38 40
39 bool HasUnseenEntries() const override; 41 bool HasUnseenEntries() const override;
40 void ResetUnseenEntries() override; 42 void ResetUnseenEntries() override;
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 std::unique_ptr<ReadingListEntries> read_; 78 std::unique_ptr<ReadingListEntries> read_;
77 std::unique_ptr<ReadingListModelStorage> storage_layer_; 79 std::unique_ptr<ReadingListModelStorage> storage_layer_;
78 PrefService* pref_service_; 80 PrefService* pref_service_;
79 bool has_unseen_; 81 bool has_unseen_;
80 bool loaded_; 82 bool loaded_;
81 base::WeakPtrFactory<ReadingListModelImpl> weak_ptr_factory_; 83 base::WeakPtrFactory<ReadingListModelImpl> weak_ptr_factory_;
82 DISALLOW_COPY_AND_ASSIGN(ReadingListModelImpl); 84 DISALLOW_COPY_AND_ASSIGN(ReadingListModelImpl);
83 }; 85 };
84 86
85 #endif // IOS_CHROME_BROWSER_READING_LIST_READING_LIST_MODEL_MEMORY_H_ 87 #endif // IOS_CHROME_BROWSER_READING_LIST_READING_LIST_MODEL_MEMORY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698