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 <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "base/callback.h" | 11 #include "base/callback.h" |
12 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
13 #include "base/memory/scoped_vector.h" | 13 #include "base/memory/scoped_vector.h" |
14 #include "base/memory/weak_ptr.h" | 14 #include "base/memory/weak_ptr.h" |
15 #include "components/dom_distiller/core/article_entry.h" | 15 #include "components/dom_distiller/core/article_entry.h" |
16 #include "components/dom_distiller/core/distilled_page_prefs.h" | |
nyquist
2014/07/09 23:49:05
Even though this is correct, this seems like unnec
sunangel
2014/07/10 14:31:53
Done.
| |
16 #include "components/dom_distiller/core/distiller_page.h" | 17 #include "components/dom_distiller/core/distiller_page.h" |
17 #include "components/dom_distiller/core/distilled_page_prefs.h" | |
18 | 18 |
19 class GURL; | 19 class GURL; |
20 | 20 |
21 namespace syncer { | 21 namespace syncer { |
22 class SyncableService; | 22 class SyncableService; |
23 } | 23 } |
24 | 24 |
25 namespace dom_distiller { | 25 namespace dom_distiller { |
26 | 26 |
27 class DistilledArticleProto; | 27 class DistilledArticleProto; |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
84 const GURL& url) = 0; | 84 const GURL& url) = 0; |
85 | 85 |
86 // Creates a default DistillerPage. | 86 // Creates a default DistillerPage. |
87 virtual scoped_ptr<DistillerPage> CreateDefaultDistillerPage() = 0; | 87 virtual scoped_ptr<DistillerPage> CreateDefaultDistillerPage() = 0; |
88 virtual scoped_ptr<DistillerPage> CreateDefaultDistillerPageWithHandle( | 88 virtual scoped_ptr<DistillerPage> CreateDefaultDistillerPageWithHandle( |
89 scoped_ptr<SourcePageHandle> handle) = 0; | 89 scoped_ptr<SourcePageHandle> handle) = 0; |
90 | 90 |
91 virtual void AddObserver(DomDistillerObserver* observer) = 0; | 91 virtual void AddObserver(DomDistillerObserver* observer) = 0; |
92 virtual void RemoveObserver(DomDistillerObserver* observer) = 0; | 92 virtual void RemoveObserver(DomDistillerObserver* observer) = 0; |
93 | 93 |
94 // Returns the DistilledPagePrefs owned by the instance of DomDistillerService . | 94 // Returns the DistilledPagePrefs owned by the instance of |
95 // DomDistillerService. | |
95 virtual DistilledPagePrefs* GetDistilledPagePrefs() = 0; | 96 virtual DistilledPagePrefs* GetDistilledPagePrefs() = 0; |
96 | 97 |
97 protected: | 98 protected: |
98 DomDistillerServiceInterface() {} | 99 DomDistillerServiceInterface() {} |
99 | 100 |
100 private: | 101 private: |
101 DISALLOW_COPY_AND_ASSIGN(DomDistillerServiceInterface); | 102 DISALLOW_COPY_AND_ASSIGN(DomDistillerServiceInterface); |
102 }; | 103 }; |
103 | 104 |
104 // Provide a view of the article list and ways of interacting with it. | 105 // Provide a view of the article list and ways of interacting with it. |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
158 | 159 |
159 typedef ScopedVector<TaskTracker> TaskList; | 160 typedef ScopedVector<TaskTracker> TaskList; |
160 TaskList tasks_; | 161 TaskList tasks_; |
161 | 162 |
162 DISALLOW_COPY_AND_ASSIGN(DomDistillerService); | 163 DISALLOW_COPY_AND_ASSIGN(DomDistillerService); |
163 }; | 164 }; |
164 | 165 |
165 } // namespace dom_distiller | 166 } // namespace dom_distiller |
166 | 167 |
167 #endif // COMPONENTS_DOM_DISTILLER_CORE_DOM_DISTILLER_SERVICE_H_ | 168 #endif // COMPONENTS_DOM_DISTILLER_CORE_DOM_DISTILLER_SERVICE_H_ |
OLD | NEW |