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

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

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
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
new file mode 100644
index 0000000000000000000000000000000000000000..d10a3c8d4b3959f8e0bf50a7098dba158285b07a
--- /dev/null
+++ b/chrome/browser/dom_distiller/tab_utils.h
@@ -0,0 +1,17 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_DOM_DISTILLER_TAB_UTILS_H_
+#define CHROME_BROWSER_DOM_DISTILLER_TAB_UTILS_H_
+
+namespace content {
+class WebContents;
+} // namespace content
+
+// Creates a new WebContents and navigates it to view the URL of the current
+// page, while in the background starts distilling the current page. This method
+// takes ownership over the old WebContents after swapping in the new one.
+void DistillCurrentPageAndView(content::WebContents* old_web_contents);
+
+#endif // CHROME_BROWSER_DOM_DISTILLER_TAB_UTILS_H_
« no previous file with comments | « chrome/browser/dom_distiller/lazy_dom_distiller_service.cc ('k') | chrome/browser/dom_distiller/tab_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698