| OLD | NEW |
| 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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 virtual scoped_ptr<ArticleEntry> RemoveEntry( | 42 virtual scoped_ptr<ArticleEntry> RemoveEntry( |
| 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( |
| 53 const gfx::Size& render_view_size) OVERRIDE; |
| 53 virtual scoped_ptr<DistillerPage> CreateDefaultDistillerPageWithHandle( | 54 virtual scoped_ptr<DistillerPage> CreateDefaultDistillerPageWithHandle( |
| 54 scoped_ptr<SourcePageHandle> handle) OVERRIDE; | 55 scoped_ptr<SourcePageHandle> handle) OVERRIDE; |
| 55 virtual void AddObserver(DomDistillerObserver* observer) OVERRIDE; | 56 virtual void AddObserver(DomDistillerObserver* observer) OVERRIDE; |
| 56 virtual void RemoveObserver(DomDistillerObserver* observer) OVERRIDE; | 57 virtual void RemoveObserver(DomDistillerObserver* observer) OVERRIDE; |
| 57 | 58 |
| 58 private: | 59 private: |
| 59 // Accessor method for the backing service instance. | 60 // Accessor method for the backing service instance. |
| 60 DomDistillerServiceInterface* instance() const; | 61 DomDistillerServiceInterface* instance() const; |
| 61 | 62 |
| 62 // content::NotificationObserver implementation: | 63 // content::NotificationObserver implementation: |
| (...skipping 10 matching lines...) Expand all Loading... |
| 73 | 74 |
| 74 // Used to track when the profile is shut down. | 75 // Used to track when the profile is shut down. |
| 75 content::NotificationRegistrar registrar_; | 76 content::NotificationRegistrar registrar_; |
| 76 | 77 |
| 77 DISALLOW_COPY_AND_ASSIGN(LazyDomDistillerService); | 78 DISALLOW_COPY_AND_ASSIGN(LazyDomDistillerService); |
| 78 }; | 79 }; |
| 79 | 80 |
| 80 } // namespace dom_distiller | 81 } // namespace dom_distiller |
| 81 | 82 |
| 82 #endif // CHROME_BROWSER_DOM_DISTILLER_LAZY_DOM_DISTILLER_SERVICE_H_ | 83 #endif // CHROME_BROWSER_DOM_DISTILLER_LAZY_DOM_DISTILLER_SERVICE_H_ |
| OLD | NEW |