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

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

Issue 442503002: Retrieve article original URL from entryID (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 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 | Annotate | Revision Log
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 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 105
106 // Provide a view of the article list and ways of interacting with it. 106 // Provide a view of the article list and ways of interacting with it.
107 class DomDistillerService : public DomDistillerServiceInterface { 107 class DomDistillerService : public DomDistillerServiceInterface {
108 public: 108 public:
109 DomDistillerService(scoped_ptr<DomDistillerStoreInterface> store, 109 DomDistillerService(scoped_ptr<DomDistillerStoreInterface> store,
110 scoped_ptr<DistillerFactory> distiller_factory, 110 scoped_ptr<DistillerFactory> distiller_factory,
111 scoped_ptr<DistillerPageFactory> distiller_page_factory, 111 scoped_ptr<DistillerPageFactory> distiller_page_factory,
112 scoped_ptr<DistilledPagePrefs> distilled_page_prefs); 112 scoped_ptr<DistilledPagePrefs> distilled_page_prefs);
113 virtual ~DomDistillerService(); 113 virtual ~DomDistillerService();
114 114
115 bool HasEntry(const std::string entry_id);
nyquist 2014/08/13 20:09:10 Also add to DomDistillerServiceInterface. Also add
sunangel 2014/08/13 21:49:32 Done.
116 std::string GetUrlForEntry(const std::string entry_id);
117
115 // DomDistillerServiceInterface implementation. 118 // DomDistillerServiceInterface implementation.
116 virtual syncer::SyncableService* GetSyncableService() const OVERRIDE; 119 virtual syncer::SyncableService* GetSyncableService() const OVERRIDE;
117 virtual const std::string AddToList( 120 virtual const std::string AddToList(
118 const GURL& url, 121 const GURL& url,
119 scoped_ptr<DistillerPage> distiller_page, 122 scoped_ptr<DistillerPage> distiller_page,
120 const ArticleAvailableCallback& article_cb) OVERRIDE; 123 const ArticleAvailableCallback& article_cb) OVERRIDE;
121 virtual std::vector<ArticleEntry> GetEntries() const OVERRIDE; 124 virtual std::vector<ArticleEntry> GetEntries() const OVERRIDE;
122 virtual scoped_ptr<ArticleEntry> RemoveEntry( 125 virtual scoped_ptr<ArticleEntry> RemoveEntry(
123 const std::string& entry_id) OVERRIDE; 126 const std::string& entry_id) OVERRIDE;
124 virtual scoped_ptr<ViewerHandle> ViewEntry( 127 virtual scoped_ptr<ViewerHandle> ViewEntry(
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 164
162 typedef ScopedVector<TaskTracker> TaskList; 165 typedef ScopedVector<TaskTracker> TaskList;
163 TaskList tasks_; 166 TaskList tasks_;
164 167
165 DISALLOW_COPY_AND_ASSIGN(DomDistillerService); 168 DISALLOW_COPY_AND_ASSIGN(DomDistillerService);
166 }; 169 };
167 170
168 } // namespace dom_distiller 171 } // namespace dom_distiller
169 172
170 #endif // COMPONENTS_DOM_DISTILLER_CORE_DOM_DISTILLER_SERVICE_H_ 173 #endif // COMPONENTS_DOM_DISTILLER_CORE_DOM_DISTILLER_SERVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698