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

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

Issue 266073003: Add support for distilling current WebContents (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased Created 6 years, 7 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 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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 const std::string& entry_id) OVERRIDE; 43 const std::string& entry_id) OVERRIDE;
44 virtual scoped_ptr<ViewerHandle> ViewEntry( 44 virtual scoped_ptr<ViewerHandle> ViewEntry(
45 ViewRequestDelegate* delegate, 45 ViewRequestDelegate* delegate,
46 scoped_ptr<DistillerPage> distiller_page, 46 scoped_ptr<DistillerPage> distiller_page,
47 const std::string& entry_id) OVERRIDE; 47 const std::string& entry_id) OVERRIDE;
48 virtual scoped_ptr<ViewerHandle> ViewUrl( 48 virtual scoped_ptr<ViewerHandle> ViewUrl(
49 ViewRequestDelegate* delegate, 49 ViewRequestDelegate* delegate,
50 scoped_ptr<DistillerPage> distiller_page, 50 scoped_ptr<DistillerPage> distiller_page,
51 const GURL& url) OVERRIDE; 51 const GURL& url) OVERRIDE;
52 virtual scoped_ptr<DistillerPage> CreateDefaultDistillerPage() OVERRIDE; 52 virtual scoped_ptr<DistillerPage> CreateDefaultDistillerPage() OVERRIDE;
53 virtual scoped_ptr<DistillerPage> CreateDefaultDistillerPageWithHandle(
54 scoped_ptr<SourcePageHandle> handle) OVERRIDE;
53 virtual void AddObserver(DomDistillerObserver* observer) OVERRIDE; 55 virtual void AddObserver(DomDistillerObserver* observer) OVERRIDE;
54 virtual void RemoveObserver(DomDistillerObserver* observer) OVERRIDE; 56 virtual void RemoveObserver(DomDistillerObserver* observer) OVERRIDE;
55 57
56 private: 58 private:
57 // Accessor method for the backing service instance. 59 // Accessor method for the backing service instance.
58 DomDistillerServiceInterface* instance() const; 60 DomDistillerServiceInterface* instance() const;
59 61
60 // content::NotificationObserver implementation: 62 // content::NotificationObserver implementation:
61 virtual void Observe(int type, 63 virtual void Observe(int type,
62 const content::NotificationSource& source, 64 const content::NotificationSource& source,
63 const content::NotificationDetails& details) OVERRIDE; 65 const content::NotificationDetails& details) OVERRIDE;
64 66
65 // The Profile to use when retrieving the DomDistillerService and also the 67 // The Profile to use when retrieving the DomDistillerService and also the
66 // profile to listen for destruction of. 68 // profile to listen for destruction of.
67 Profile* profile_; 69 Profile* profile_;
68 70
69 // A BrowserContextKeyedServiceFactory for the DomDistillerService. 71 // A BrowserContextKeyedServiceFactory for the DomDistillerService.
70 const DomDistillerServiceFactory* service_factory_; 72 const DomDistillerServiceFactory* service_factory_;
71 73
72 // Used to track when the profile is shut down. 74 // Used to track when the profile is shut down.
73 content::NotificationRegistrar registrar_; 75 content::NotificationRegistrar registrar_;
74 76
75 DISALLOW_COPY_AND_ASSIGN(LazyDomDistillerService); 77 DISALLOW_COPY_AND_ASSIGN(LazyDomDistillerService);
76 }; 78 };
77 79
78 } // namespace dom_distiller 80 } // namespace dom_distiller
79 81
80 #endif // CHROME_BROWSER_DOM_DISTILLER_LAZY_DOM_DISTILLER_SERVICE_H_ 82 #endif // CHROME_BROWSER_DOM_DISTILLER_LAZY_DOM_DISTILLER_SERVICE_H_
OLDNEW
« no previous file with comments | « chrome/browser/android/chrome_jni_registrar.cc ('k') | chrome/browser/dom_distiller/lazy_dom_distiller_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698