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

Side by Side Diff: chrome/browser/dom_distiller/lazy_dom_distiller_service.h

Issue 442503002: Retrieve article original URL from entryID (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: string reference 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
« no previous file with comments | « no previous file | chrome/browser/dom_distiller/lazy_dom_distiller_service.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 CHROME_BROWSER_DOM_DISTILLER_LAZY_DOM_DISTILLER_SERVICE_H_ 5 #ifndef CHROME_BROWSER_DOM_DISTILLER_LAZY_DOM_DISTILLER_SERVICE_H_
6 #define CHROME_BROWSER_DOM_DISTILLER_LAZY_DOM_DISTILLER_SERVICE_H_ 6 #define CHROME_BROWSER_DOM_DISTILLER_LAZY_DOM_DISTILLER_SERVICE_H_
7 7
8 #include "components/dom_distiller/core/dom_distiller_service.h" 8 #include "components/dom_distiller/core/dom_distiller_service.h"
9 #include "components/dom_distiller/core/task_tracker.h" 9 #include "components/dom_distiller/core/task_tracker.h"
10 #include "content/public/browser/notification_observer.h" 10 #include "content/public/browser/notification_observer.h"
(...skipping 20 matching lines...) Expand all
31 const DomDistillerServiceFactory* service_factory); 31 const DomDistillerServiceFactory* service_factory);
32 virtual ~LazyDomDistillerService(); 32 virtual ~LazyDomDistillerService();
33 33
34 public: 34 public:
35 // DomDistillerServiceInterface implementation: 35 // DomDistillerServiceInterface implementation:
36 virtual syncer::SyncableService* GetSyncableService() const OVERRIDE; 36 virtual syncer::SyncableService* GetSyncableService() const OVERRIDE;
37 virtual const std::string AddToList( 37 virtual const std::string AddToList(
38 const GURL& url, 38 const GURL& url,
39 scoped_ptr<DistillerPage> distiller_page, 39 scoped_ptr<DistillerPage> distiller_page,
40 const ArticleAvailableCallback& article_cb) OVERRIDE; 40 const ArticleAvailableCallback& article_cb) OVERRIDE;
41 virtual bool HasEntry(const std::string& entry_id) OVERRIDE;
42 virtual std::string GetUrlForEntry(const std::string& entry_id) OVERRIDE;
41 virtual std::vector<ArticleEntry> GetEntries() const OVERRIDE; 43 virtual std::vector<ArticleEntry> GetEntries() const OVERRIDE;
42 virtual scoped_ptr<ArticleEntry> RemoveEntry( 44 virtual scoped_ptr<ArticleEntry> RemoveEntry(
43 const std::string& entry_id) OVERRIDE; 45 const std::string& entry_id) OVERRIDE;
44 virtual scoped_ptr<ViewerHandle> ViewEntry( 46 virtual scoped_ptr<ViewerHandle> ViewEntry(
45 ViewRequestDelegate* delegate, 47 ViewRequestDelegate* delegate,
46 scoped_ptr<DistillerPage> distiller_page, 48 scoped_ptr<DistillerPage> distiller_page,
47 const std::string& entry_id) OVERRIDE; 49 const std::string& entry_id) OVERRIDE;
48 virtual scoped_ptr<ViewerHandle> ViewUrl( 50 virtual scoped_ptr<ViewerHandle> ViewUrl(
49 ViewRequestDelegate* delegate, 51 ViewRequestDelegate* delegate,
50 scoped_ptr<DistillerPage> distiller_page, 52 scoped_ptr<DistillerPage> distiller_page,
(...skipping 24 matching lines...) Expand all
75 77
76 // Used to track when the profile is shut down. 78 // Used to track when the profile is shut down.
77 content::NotificationRegistrar registrar_; 79 content::NotificationRegistrar registrar_;
78 80
79 DISALLOW_COPY_AND_ASSIGN(LazyDomDistillerService); 81 DISALLOW_COPY_AND_ASSIGN(LazyDomDistillerService);
80 }; 82 };
81 83
82 } // namespace dom_distiller 84 } // namespace dom_distiller
83 85
84 #endif // CHROME_BROWSER_DOM_DISTILLER_LAZY_DOM_DISTILLER_SERVICE_H_ 86 #endif // CHROME_BROWSER_DOM_DISTILLER_LAZY_DOM_DISTILLER_SERVICE_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/dom_distiller/lazy_dom_distiller_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698