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

Unified Diff: components/dom_distiller/ios/distiller_page_ios.h

Issue 2635193003: IOS Reading distillation: Handle Google AMP iFrame. (Closed)
Patch Set: feedback Created 3 years, 11 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: components/dom_distiller/ios/distiller_page_ios.h
diff --git a/components/dom_distiller/ios/distiller_page_ios.h b/components/dom_distiller/ios/distiller_page_ios.h
index 5bad113052e5f9571bdd37dad842d9264057e5a6..c58387c8522477e84e00e2910e623ffa9a4cbcf8 100644
--- a/components/dom_distiller/ios/distiller_page_ios.h
+++ b/components/dom_distiller/ios/distiller_page_ios.h
@@ -37,6 +37,9 @@ class DistillerPageIOS : public DistillerPage {
// between |DistillPageImpl| and |OnDistillationDone|.
virtual void AttachWebState(std::unique_ptr<web::WebState> web_state);
+ // Returns the WebState handling the current distillation.
+ web::WebState* CurrentWebState();
+
// Release the WebState used for distillation. Do not call between
// |DistillPageImpl| and |OnDistillationDone|.
virtual std::unique_ptr<web::WebState> DetachWebState();

Powered by Google App Engine
This is Rietveld 408576698