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

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

Issue 396503003: DomDistiller: fix 0 document width (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: resolve patch conflicts Created 6 years, 5 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 #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/distilled_page_prefs.h" 10 #include "components/dom_distiller/core/distilled_page_prefs.h"
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 } 69 }
70 70
71 scoped_ptr<ViewerHandle> LazyDomDistillerService::ViewUrl( 71 scoped_ptr<ViewerHandle> LazyDomDistillerService::ViewUrl(
72 ViewRequestDelegate* delegate, 72 ViewRequestDelegate* delegate,
73 scoped_ptr<DistillerPage> distiller_page, 73 scoped_ptr<DistillerPage> distiller_page,
74 const GURL& url) { 74 const GURL& url) {
75 return instance()->ViewUrl(delegate, distiller_page.Pass(), url); 75 return instance()->ViewUrl(delegate, distiller_page.Pass(), url);
76 } 76 }
77 77
78 scoped_ptr<DistillerPage> 78 scoped_ptr<DistillerPage>
79 LazyDomDistillerService::CreateDefaultDistillerPage() { 79 LazyDomDistillerService::CreateDefaultDistillerPage(
80 return instance()->CreateDefaultDistillerPage(); 80 const gfx::Size& render_view_size) {
81 return instance()->CreateDefaultDistillerPage(render_view_size);
81 } 82 }
82 83
83 scoped_ptr<DistillerPage> 84 scoped_ptr<DistillerPage>
84 LazyDomDistillerService::CreateDefaultDistillerPageWithHandle( 85 LazyDomDistillerService::CreateDefaultDistillerPageWithHandle(
85 scoped_ptr<SourcePageHandle> handle) { 86 scoped_ptr<SourcePageHandle> handle) {
86 return instance()->CreateDefaultDistillerPageWithHandle(handle.Pass()); 87 return instance()->CreateDefaultDistillerPageWithHandle(handle.Pass());
87 } 88 }
88 89
89 void LazyDomDistillerService::AddObserver(DomDistillerObserver* observer) { 90 void LazyDomDistillerService::AddObserver(DomDistillerObserver* observer) {
90 instance()->AddObserver(observer); 91 instance()->AddObserver(observer);
91 } 92 }
92 93
93 void LazyDomDistillerService::RemoveObserver(DomDistillerObserver* observer) { 94 void LazyDomDistillerService::RemoveObserver(DomDistillerObserver* observer) {
94 instance()->RemoveObserver(observer); 95 instance()->RemoveObserver(observer);
95 } 96 }
96 97
97 DistilledPagePrefs* LazyDomDistillerService::GetDistilledPagePrefs() { 98 DistilledPagePrefs* LazyDomDistillerService::GetDistilledPagePrefs() {
98 return instance()->GetDistilledPagePrefs(); 99 return instance()->GetDistilledPagePrefs();
99 } 100 }
100 101
101 } // namespace dom_distiller 102 } // namespace dom_distiller
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698