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

Unified Diff: chrome/browser/dom_distiller/lazy_dom_distiller_service.cc

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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/dom_distiller/lazy_dom_distiller_service.h ('k') | chrome/browser/dom_distiller/tab_utils.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/dom_distiller/lazy_dom_distiller_service.cc
diff --git a/chrome/browser/dom_distiller/lazy_dom_distiller_service.cc b/chrome/browser/dom_distiller/lazy_dom_distiller_service.cc
index bebd9f69392ff2781a31ef190518856f5e5984fe..3e7e74573a3ff01af226eebf8f8085897d7c8efc 100644
--- a/chrome/browser/dom_distiller/lazy_dom_distiller_service.cc
+++ b/chrome/browser/dom_distiller/lazy_dom_distiller_service.cc
@@ -7,6 +7,7 @@
#include "chrome/browser/chrome_notification_types.h"
#include "chrome/browser/dom_distiller/dom_distiller_service_factory.h"
#include "chrome/browser/profiles/profile.h"
+#include "components/dom_distiller/core/distiller_page.h"
#include "components/dom_distiller/core/dom_distiller_service.h"
#include "content/public/browser/notification_source.h"
@@ -78,6 +79,12 @@ LazyDomDistillerService::CreateDefaultDistillerPage() {
return instance()->CreateDefaultDistillerPage();
}
+scoped_ptr<DistillerPage>
+LazyDomDistillerService::CreateDefaultDistillerPageWithHandle(
+ scoped_ptr<SourcePageHandle> handle) {
+ return instance()->CreateDefaultDistillerPageWithHandle(handle.Pass());
+}
+
void LazyDomDistillerService::AddObserver(DomDistillerObserver* observer) {
instance()->AddObserver(observer);
}
« no previous file with comments | « chrome/browser/dom_distiller/lazy_dom_distiller_service.h ('k') | chrome/browser/dom_distiller/tab_utils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698