| OLD | NEW |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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_OFFLINE_ITEMS_COLLETION_CORE_OFFLINE_CONTENT_AGGREGATOR_H_ | 5 #ifndef COMPONENTS_OFFLINE_ITEMS_COLLETION_CORE_OFFLINE_CONTENT_AGGREGATOR_H_ |
| 6 #define COMPONENTS_OFFLINE_ITEMS_COLLETION_CORE_OFFLINE_CONTENT_AGGREGATOR_H_ | 6 #define COMPONENTS_OFFLINE_ITEMS_COLLETION_CORE_OFFLINE_CONTENT_AGGREGATOR_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <set> | 9 #include <set> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 77 | 77 |
| 78 // OfflineContentProvider implementation. | 78 // OfflineContentProvider implementation. |
| 79 bool AreItemsAvailable() override; | 79 bool AreItemsAvailable() override; |
| 80 void OpenItem(const ContentId& id) override; | 80 void OpenItem(const ContentId& id) override; |
| 81 void RemoveItem(const ContentId& id) override; | 81 void RemoveItem(const ContentId& id) override; |
| 82 void CancelDownload(const ContentId& id) override; | 82 void CancelDownload(const ContentId& id) override; |
| 83 void PauseDownload(const ContentId& id) override; | 83 void PauseDownload(const ContentId& id) override; |
| 84 void ResumeDownload(const ContentId& id) override; | 84 void ResumeDownload(const ContentId& id) override; |
| 85 const OfflineItem* GetItemById(const ContentId& id) override; | 85 const OfflineItem* GetItemById(const ContentId& id) override; |
| 86 OfflineItemList GetAllItems() override; | 86 OfflineItemList GetAllItems() override; |
| 87 void GetVisualsForItem(const ContentId& id, |
| 88 const VisualsCallback& callback) override; |
| 87 void AddObserver(OfflineContentProvider::Observer* observer) override; | 89 void AddObserver(OfflineContentProvider::Observer* observer) override; |
| 88 void RemoveObserver(OfflineContentProvider::Observer* observer) override; | 90 void RemoveObserver(OfflineContentProvider::Observer* observer) override; |
| 89 | 91 |
| 90 private: | 92 private: |
| 91 // OfflineContentProvider::Observer implementation. | 93 // OfflineContentProvider::Observer implementation. |
| 92 void OnItemsAvailable(OfflineContentProvider* provider) override; | 94 void OnItemsAvailable(OfflineContentProvider* provider) override; |
| 93 void OnItemsAdded(const OfflineItemList& items) override; | 95 void OnItemsAdded(const OfflineItemList& items) override; |
| 94 void OnItemRemoved(const ContentId& id) override; | 96 void OnItemRemoved(const ContentId& id) override; |
| 95 void OnItemUpdated(const OfflineItem& item) override; | 97 void OnItemUpdated(const OfflineItem& item) override; |
| 96 | 98 |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 138 bool sent_on_items_available_; | 140 bool sent_on_items_available_; |
| 139 | 141 |
| 140 base::WeakPtrFactory<OfflineContentAggregator> weak_ptr_factory_; | 142 base::WeakPtrFactory<OfflineContentAggregator> weak_ptr_factory_; |
| 141 | 143 |
| 142 DISALLOW_COPY_AND_ASSIGN(OfflineContentAggregator); | 144 DISALLOW_COPY_AND_ASSIGN(OfflineContentAggregator); |
| 143 }; | 145 }; |
| 144 | 146 |
| 145 } // namespace offline_items_collection | 147 } // namespace offline_items_collection |
| 146 | 148 |
| 147 #endif // COMPONENTS_OFFLINE_ITEMS_COLLETION_CORE_OFFLINE_CONTENT_AGGREGATOR_H_ | 149 #endif // COMPONENTS_OFFLINE_ITEMS_COLLETION_CORE_OFFLINE_CONTENT_AGGREGATOR_H_ |
| OLD | NEW |