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..b7bfa7e19207dff1113a6a0beec1dc3a6a56c402 |
--- /dev/null |
+++ b/chrome/browser/dom_distiller/tab_utils.h |
@@ -0,0 +1,25 @@ |
+// 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 |
+ |
+namespace dom_distiller { |
sky
2014/05/22 19:50:41
Generally we don't use namespaces in chrome code l
nyquist
2014/05/22 23:00:54
Done.
|
+ |
+namespace tab_utils { |
+ |
+// 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); |
+ |
+} // namespace tab_utils |
+ |
+} // namespace dom_distiller |
+ |
+#endif // CHROME_BROWSER_DOM_DISTILLER_TAB_UTILS_H_ |