Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(198)

Side by Side Diff: components/dom_distiller/core/dom_distiller_service.h

Issue 666133002: Standardize usage of virtual/override/final in components/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 DISALLOW_COPY_AND_ASSIGN(DomDistillerServiceInterface); 111 DISALLOW_COPY_AND_ASSIGN(DomDistillerServiceInterface);
112 }; 112 };
113 113
114 // Provide a view of the article list and ways of interacting with it. 114 // Provide a view of the article list and ways of interacting with it.
115 class DomDistillerService : public DomDistillerServiceInterface { 115 class DomDistillerService : public DomDistillerServiceInterface {
116 public: 116 public:
117 DomDistillerService(scoped_ptr<DomDistillerStoreInterface> store, 117 DomDistillerService(scoped_ptr<DomDistillerStoreInterface> store,
118 scoped_ptr<DistillerFactory> distiller_factory, 118 scoped_ptr<DistillerFactory> distiller_factory,
119 scoped_ptr<DistillerPageFactory> distiller_page_factory, 119 scoped_ptr<DistillerPageFactory> distiller_page_factory,
120 scoped_ptr<DistilledPagePrefs> distilled_page_prefs); 120 scoped_ptr<DistilledPagePrefs> distilled_page_prefs);
121 virtual ~DomDistillerService(); 121 ~DomDistillerService() override;
122 122
123 // DomDistillerServiceInterface implementation. 123 // DomDistillerServiceInterface implementation.
124 virtual syncer::SyncableService* GetSyncableService() const override; 124 syncer::SyncableService* GetSyncableService() const override;
125 virtual const std::string AddToList( 125 const std::string AddToList(
126 const GURL& url, 126 const GURL& url,
127 scoped_ptr<DistillerPage> distiller_page, 127 scoped_ptr<DistillerPage> distiller_page,
128 const ArticleAvailableCallback& article_cb) override; 128 const ArticleAvailableCallback& article_cb) override;
129 virtual bool HasEntry(const std::string& entry_id) override; 129 bool HasEntry(const std::string& entry_id) override;
130 virtual std::string GetUrlForEntry(const std::string& entry_id) override; 130 std::string GetUrlForEntry(const std::string& entry_id) override;
131 virtual std::vector<ArticleEntry> GetEntries() const override; 131 std::vector<ArticleEntry> GetEntries() const override;
132 virtual scoped_ptr<ArticleEntry> RemoveEntry( 132 scoped_ptr<ArticleEntry> RemoveEntry(const std::string& entry_id) override;
133 const std::string& entry_id) override; 133 scoped_ptr<ViewerHandle> ViewEntry(ViewRequestDelegate* delegate,
134 virtual scoped_ptr<ViewerHandle> ViewEntry( 134 scoped_ptr<DistillerPage> distiller_page,
135 ViewRequestDelegate* delegate, 135 const std::string& entry_id) override;
136 scoped_ptr<DistillerPage> distiller_page, 136 scoped_ptr<ViewerHandle> ViewUrl(ViewRequestDelegate* delegate,
137 const std::string& entry_id) override; 137 scoped_ptr<DistillerPage> distiller_page,
138 virtual scoped_ptr<ViewerHandle> ViewUrl( 138 const GURL& url) override;
139 ViewRequestDelegate* delegate, 139 scoped_ptr<DistillerPage> CreateDefaultDistillerPage(
140 scoped_ptr<DistillerPage> distiller_page,
141 const GURL& url) override;
142 virtual scoped_ptr<DistillerPage> CreateDefaultDistillerPage(
143 const gfx::Size& render_view_size) override; 140 const gfx::Size& render_view_size) override;
144 virtual scoped_ptr<DistillerPage> CreateDefaultDistillerPageWithHandle( 141 scoped_ptr<DistillerPage> CreateDefaultDistillerPageWithHandle(
145 scoped_ptr<SourcePageHandle> handle) override; 142 scoped_ptr<SourcePageHandle> handle) override;
146 virtual void AddObserver(DomDistillerObserver* observer) override; 143 void AddObserver(DomDistillerObserver* observer) override;
147 virtual void RemoveObserver(DomDistillerObserver* observer) override; 144 void RemoveObserver(DomDistillerObserver* observer) override;
148 virtual DistilledPagePrefs* GetDistilledPagePrefs() override; 145 DistilledPagePrefs* GetDistilledPagePrefs() override;
149 146
150 private: 147 private:
151 void CancelTask(TaskTracker* task); 148 void CancelTask(TaskTracker* task);
152 void AddDistilledPageToList(const ArticleEntry& entry, 149 void AddDistilledPageToList(const ArticleEntry& entry,
153 const DistilledArticleProto* article_proto, 150 const DistilledArticleProto* article_proto,
154 bool distillation_succeeded); 151 bool distillation_succeeded);
155 152
156 TaskTracker* CreateTaskTracker(const ArticleEntry& entry); 153 TaskTracker* CreateTaskTracker(const ArticleEntry& entry);
157 154
158 TaskTracker* GetTaskTrackerForEntry(const ArticleEntry& entry) const; 155 TaskTracker* GetTaskTrackerForEntry(const ArticleEntry& entry) const;
(...skipping 12 matching lines...) Expand all
171 168
172 typedef ScopedVector<TaskTracker> TaskList; 169 typedef ScopedVector<TaskTracker> TaskList;
173 TaskList tasks_; 170 TaskList tasks_;
174 171
175 DISALLOW_COPY_AND_ASSIGN(DomDistillerService); 172 DISALLOW_COPY_AND_ASSIGN(DomDistillerService);
176 }; 173 };
177 174
178 } // namespace dom_distiller 175 } // namespace dom_distiller
179 176
180 #endif // COMPONENTS_DOM_DISTILLER_CORE_DOM_DISTILLER_SERVICE_H_ 177 #endif // COMPONENTS_DOM_DISTILLER_CORE_DOM_DISTILLER_SERVICE_H_
OLDNEW
« no previous file with comments | « components/dom_distiller/core/distiller_url_fetcher.h ('k') | components/dom_distiller/core/dom_distiller_store.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698