| OLD | NEW |
| 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 COMPONENTS_OFFLINE_PAGE_DOWNLOADS_DOWNLOAD_UI_ADAPTER_H_ | 5 #ifndef COMPONENTS_OFFLINE_PAGE_DOWNLOADS_DOWNLOAD_UI_ADAPTER_H_ |
| 6 #define COMPONENTS_OFFLINE_PAGE_DOWNLOADS_DOWNLOAD_UI_ADAPTER_H_ | 6 #define COMPONENTS_OFFLINE_PAGE_DOWNLOADS_DOWNLOAD_UI_ADAPTER_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <memory> | 9 #include <memory> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 110 // Always valid, this class is a member of the model. | 110 // Always valid, this class is a member of the model. |
| 111 OfflinePageModel* model_; | 111 OfflinePageModel* model_; |
| 112 | 112 |
| 113 bool is_loaded_; | 113 bool is_loaded_; |
| 114 | 114 |
| 115 // The cache of UI items. The key is DownloadUIItem.guid. | 115 // The cache of UI items. The key is DownloadUIItem.guid. |
| 116 DownloadUIItems items_; | 116 DownloadUIItems items_; |
| 117 | 117 |
| 118 // The observers. | 118 // The observers. |
| 119 base::ObserverList<Observer> observers_; | 119 base::ObserverList<Observer> observers_; |
| 120 int observers_count_; |
| 120 | 121 |
| 121 base::WeakPtrFactory<DownloadUIAdapter> weak_ptr_factory_; | 122 base::WeakPtrFactory<DownloadUIAdapter> weak_ptr_factory_; |
| 122 | 123 |
| 123 DISALLOW_COPY_AND_ASSIGN(DownloadUIAdapter); | 124 DISALLOW_COPY_AND_ASSIGN(DownloadUIAdapter); |
| 124 }; | 125 }; |
| 125 | 126 |
| 126 } // namespace offline_pages | 127 } // namespace offline_pages |
| 127 | 128 |
| 128 #endif // COMPONENTS_OFFLINE_PAGE_DOWNLOADS_DOWNLOAD_UI_ADAPTER_H_ | 129 #endif // COMPONENTS_OFFLINE_PAGE_DOWNLOADS_DOWNLOAD_UI_ADAPTER_H_ |
| OLD | NEW |