| 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 #include "chrome/browser/dom_distiller/lazy_dom_distiller_service.h" | 5 #include "chrome/browser/dom_distiller/lazy_dom_distiller_service.h" |
| 6 | 6 |
| 7 #include "chrome/browser/chrome_notification_types.h" | 7 #include "chrome/browser/chrome_notification_types.h" |
| 8 #include "chrome/browser/dom_distiller/dom_distiller_service_factory.h" | 8 #include "chrome/browser/dom_distiller/dom_distiller_service_factory.h" |
| 9 #include "chrome/browser/profiles/profile.h" | 9 #include "chrome/browser/profiles/profile.h" |
| 10 #include "components/dom_distiller/core/distiller_page.h" | 10 #include "components/dom_distiller/core/distiller_page.h" |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 } | 68 } |
| 69 | 69 |
| 70 scoped_ptr<ViewerHandle> LazyDomDistillerService::ViewUrl( | 70 scoped_ptr<ViewerHandle> LazyDomDistillerService::ViewUrl( |
| 71 ViewRequestDelegate* delegate, | 71 ViewRequestDelegate* delegate, |
| 72 scoped_ptr<DistillerPage> distiller_page, | 72 scoped_ptr<DistillerPage> distiller_page, |
| 73 const GURL& url) { | 73 const GURL& url) { |
| 74 return instance()->ViewUrl(delegate, distiller_page.Pass(), url); | 74 return instance()->ViewUrl(delegate, distiller_page.Pass(), url); |
| 75 } | 75 } |
| 76 | 76 |
| 77 scoped_ptr<DistillerPage> | 77 scoped_ptr<DistillerPage> |
| 78 LazyDomDistillerService::CreateDefaultDistillerPage() { | 78 LazyDomDistillerService::CreateDefaultDistillerPage( |
| 79 return instance()->CreateDefaultDistillerPage(); | 79 const gfx::Size& render_view_size) { |
| 80 return instance()->CreateDefaultDistillerPage(render_view_size); |
| 80 } | 81 } |
| 81 | 82 |
| 82 scoped_ptr<DistillerPage> | 83 scoped_ptr<DistillerPage> |
| 83 LazyDomDistillerService::CreateDefaultDistillerPageWithHandle( | 84 LazyDomDistillerService::CreateDefaultDistillerPageWithHandle( |
| 84 scoped_ptr<SourcePageHandle> handle) { | 85 scoped_ptr<SourcePageHandle> handle) { |
| 85 return instance()->CreateDefaultDistillerPageWithHandle(handle.Pass()); | 86 return instance()->CreateDefaultDistillerPageWithHandle(handle.Pass()); |
| 86 } | 87 } |
| 87 | 88 |
| 88 void LazyDomDistillerService::AddObserver(DomDistillerObserver* observer) { | 89 void LazyDomDistillerService::AddObserver(DomDistillerObserver* observer) { |
| 89 instance()->AddObserver(observer); | 90 instance()->AddObserver(observer); |
| 90 } | 91 } |
| 91 | 92 |
| 92 void LazyDomDistillerService::RemoveObserver(DomDistillerObserver* observer) { | 93 void LazyDomDistillerService::RemoveObserver(DomDistillerObserver* observer) { |
| 93 instance()->RemoveObserver(observer); | 94 instance()->RemoveObserver(observer); |
| 94 } | 95 } |
| 95 | 96 |
| 96 } // namespace dom_distiller | 97 } // namespace dom_distiller |
| OLD | NEW |