| 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_SERVICE_H_ | 5 #ifndef COMPONENTS_DOM_DISTILLER_CORE_DOM_DISTILLER_SERVICE_H_ |
| 6 #define COMPONENTS_DOM_DISTILLER_CORE_DOM_DISTILLER_SERVICE_H_ | 6 #define COMPONENTS_DOM_DISTILLER_CORE_DOM_DISTILLER_SERVICE_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| 11 | 11 |
| 12 #include "base/callback.h" | 12 #include "base/callback.h" |
| 13 #include "base/macros.h" | 13 #include "base/macros.h" |
| 14 #include "base/memory/scoped_vector.h" | |
| 15 #include "base/memory/weak_ptr.h" | 14 #include "base/memory/weak_ptr.h" |
| 16 #include "components/dom_distiller/core/article_entry.h" | 15 #include "components/dom_distiller/core/article_entry.h" |
| 17 #include "components/dom_distiller/core/distilled_page_prefs.h" | 16 #include "components/dom_distiller/core/distilled_page_prefs.h" |
| 18 #include "components/dom_distiller/core/distiller_page.h" | 17 #include "components/dom_distiller/core/distiller_page.h" |
| 19 | 18 |
| 20 class GURL; | 19 class GURL; |
| 21 | 20 |
| 22 namespace syncer { | 21 namespace syncer { |
| 23 class SyncableService; | 22 class SyncableService; |
| 24 } | 23 } |
| (...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 170 TaskTracker** task_tracker); | 169 TaskTracker** task_tracker); |
| 171 bool GetOrCreateTaskTrackerForEntry(const ArticleEntry& entry, | 170 bool GetOrCreateTaskTrackerForEntry(const ArticleEntry& entry, |
| 172 TaskTracker** task_tracker); | 171 TaskTracker** task_tracker); |
| 173 | 172 |
| 174 std::unique_ptr<DomDistillerStoreInterface> store_; | 173 std::unique_ptr<DomDistillerStoreInterface> store_; |
| 175 std::unique_ptr<DistilledContentStore> content_store_; | 174 std::unique_ptr<DistilledContentStore> content_store_; |
| 176 std::unique_ptr<DistillerFactory> distiller_factory_; | 175 std::unique_ptr<DistillerFactory> distiller_factory_; |
| 177 std::unique_ptr<DistillerPageFactory> distiller_page_factory_; | 176 std::unique_ptr<DistillerPageFactory> distiller_page_factory_; |
| 178 std::unique_ptr<DistilledPagePrefs> distilled_page_prefs_; | 177 std::unique_ptr<DistilledPagePrefs> distilled_page_prefs_; |
| 179 | 178 |
| 180 typedef ScopedVector<TaskTracker> TaskList; | 179 typedef std::vector<std::unique_ptr<TaskTracker>> TaskList; |
| 181 TaskList tasks_; | 180 TaskList tasks_; |
| 182 | 181 |
| 183 DISALLOW_COPY_AND_ASSIGN(DomDistillerService); | 182 DISALLOW_COPY_AND_ASSIGN(DomDistillerService); |
| 184 }; | 183 }; |
| 185 | 184 |
| 186 } // namespace dom_distiller | 185 } // namespace dom_distiller |
| 187 | 186 |
| 188 #endif // COMPONENTS_DOM_DISTILLER_CORE_DOM_DISTILLER_SERVICE_H_ | 187 #endif // COMPONENTS_DOM_DISTILLER_CORE_DOM_DISTILLER_SERVICE_H_ |
| OLD | NEW |