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

Unified Diff: chrome/browser/dom_distiller/tab_utils.h

Issue 1058193002: Add support for not owning distilled WebContents (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix issues. Created 5 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
Index: chrome/browser/dom_distiller/tab_utils.h
diff --git a/chrome/browser/dom_distiller/tab_utils.h b/chrome/browser/dom_distiller/tab_utils.h
index d10a3c8d4b3959f8e0bf50a7098dba158285b07a..ab05a5a56d74114c40052f5ef4550c2aa1d07328 100644
--- a/chrome/browser/dom_distiller/tab_utils.h
+++ b/chrome/browser/dom_distiller/tab_utils.h
@@ -14,4 +14,10 @@ class WebContents;
// takes ownership over the old WebContents after swapping in the new one.
void DistillCurrentPageAndView(content::WebContents* old_web_contents);
+// Starts distillation in the |source_web_contents| while navigating the
+// |destination_web_contents| to view the distilled content. This does not take
+// ownership of any WebContents.
+void DistillAndView(content::WebContents* source_web_contents,
+ content::WebContents* destination_web_contents);
+
#endif // CHROME_BROWSER_DOM_DISTILLER_TAB_UTILS_H_

Powered by Google App Engine
This is Rietveld 408576698