Chromium Code Reviews| Index: ios/chrome/browser/reading_list/reading_list_distiller_page.h |
| diff --git a/ios/chrome/browser/reading_list/reading_list_distiller_page.h b/ios/chrome/browser/reading_list/reading_list_distiller_page.h |
| index 0678a91bafb1e057f287a71d376eb42648ebf46d..8c7e7dc04c94d78cd00f1459f98326e695a48e70 100644 |
| --- a/ios/chrome/browser/reading_list/reading_list_distiller_page.h |
| +++ b/ios/chrome/browser/reading_list/reading_list_distiller_page.h |
| @@ -37,8 +37,20 @@ class ReadingListDistillerPage : public dom_distiller::DistillerPageIOS { |
| web::PageLoadCompletionStatus load_completion_status) override; |
| private: |
| - void DelayedOnLoadURLDone( |
| - web::PageLoadCompletionStatus load_completion_status); |
| + // Work around the fact that articles opened from Google Search page and |
| + // Google News are presented in an iframe. This method detects if the current |
| + // page is a Google AMP and navigate to the iframe in that case. |
| + // Returns whether the current page is a Google AMP page. |
| + // IsGoogleCachedAMPPage will determine if the current page is a Google AMP |
| + // page. |
| + bool IsGoogleCachedAMPPage(); |
| + // HandleGoogleCachedAMPPage will navigate to the iframe containing the actual |
| + // article page. |
| + void HandleGoogleCachedAMPPage(); |
| + bool HandleGoogleCachedAMPPageJavaScriptResult(id result, NSError* error); |
|
stkhapugin
2017/01/18 12:38:24
Please add comments to these methods.
|
| + |
| + void WaitForPageLoadCompletion(); |
| + void DelayedOnLoadURLDone(); |
| FaviconWebStateDispatcher* web_state_dispatcher_; |
| base::WeakPtrFactory<ReadingListDistillerPage> weak_ptr_factory_; |
| }; |