| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 COMPONENTS_DOM_DISTILLER_CORE_DOM_DISTILLER_STORE_H_ | 5 #ifndef COMPONENTS_DOM_DISTILLER_CORE_DOM_DISTILLER_STORE_H_ |
| 6 #define COMPONENTS_DOM_DISTILLER_CORE_DOM_DISTILLER_STORE_H_ | 6 #define COMPONENTS_DOM_DISTILLER_CORE_DOM_DISTILLER_STORE_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 119 | 119 |
| 120 ~DomDistillerStore() override; | 120 ~DomDistillerStore() override; |
| 121 | 121 |
| 122 // DomDistillerStoreInterface implementation. | 122 // DomDistillerStoreInterface implementation. |
| 123 syncer::SyncableService* GetSyncableService() override; | 123 syncer::SyncableService* GetSyncableService() override; |
| 124 | 124 |
| 125 bool AddEntry(const ArticleEntry& entry) override; | 125 bool AddEntry(const ArticleEntry& entry) override; |
| 126 bool UpdateEntry(const ArticleEntry& entry) override; | 126 bool UpdateEntry(const ArticleEntry& entry) override; |
| 127 bool RemoveEntry(const ArticleEntry& entry) override; | 127 bool RemoveEntry(const ArticleEntry& entry) override; |
| 128 | 128 |
| 129 virtual void UpdateAttachments( | 129 void UpdateAttachments(const std::string& entry_id, |
| 130 const std::string& entry_id, | 130 scoped_ptr<ArticleAttachmentsData> attachments_data, |
| 131 scoped_ptr<ArticleAttachmentsData> attachments_data, | 131 const UpdateAttachmentsCallback& callback) override; |
| 132 const UpdateAttachmentsCallback& callback) override; | 132 void GetAttachments(const std::string& entry_id, |
| 133 virtual void GetAttachments(const std::string& entry_id, | 133 const GetAttachmentsCallback& callback) override; |
| 134 const GetAttachmentsCallback& callback) override; | |
| 135 | 134 |
| 136 bool GetEntryById(const std::string& entry_id, ArticleEntry* entry) override; | 135 bool GetEntryById(const std::string& entry_id, ArticleEntry* entry) override; |
| 137 bool GetEntryByUrl(const GURL& url, ArticleEntry* entry) override; | 136 bool GetEntryByUrl(const GURL& url, ArticleEntry* entry) override; |
| 138 std::vector<ArticleEntry> GetEntries() const override; | 137 std::vector<ArticleEntry> GetEntries() const override; |
| 139 | 138 |
| 140 void AddObserver(DomDistillerObserver* observer) override; | 139 void AddObserver(DomDistillerObserver* observer) override; |
| 141 void RemoveObserver(DomDistillerObserver* observer) override; | 140 void RemoveObserver(DomDistillerObserver* observer) override; |
| 142 | 141 |
| 143 // syncer::SyncableService implementation. | 142 // syncer::SyncableService implementation. |
| 144 syncer::SyncMergeResult MergeDataAndStartSyncing( | 143 syncer::SyncMergeResult MergeDataAndStartSyncing( |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 206 DomDistillerModel model_; | 205 DomDistillerModel model_; |
| 207 | 206 |
| 208 base::WeakPtrFactory<DomDistillerStore> weak_ptr_factory_; | 207 base::WeakPtrFactory<DomDistillerStore> weak_ptr_factory_; |
| 209 | 208 |
| 210 DISALLOW_COPY_AND_ASSIGN(DomDistillerStore); | 209 DISALLOW_COPY_AND_ASSIGN(DomDistillerStore); |
| 211 }; | 210 }; |
| 212 | 211 |
| 213 } // namespace dom_distiller | 212 } // namespace dom_distiller |
| 214 | 213 |
| 215 #endif // COMPONENTS_DOM_DISTILLER_CORE_DOM_DISTILLER_STORE_H_ | 214 #endif // COMPONENTS_DOM_DISTILLER_CORE_DOM_DISTILLER_STORE_H_ |
| OLD | NEW |