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

Side by Side Diff: ios/chrome/browser/reading_list/reading_list_distiller_page.h

Issue 2647323012: [ReadingList Offline] Handle AMP pages after the rendering delay. (Closed)
Patch Set: 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 unified diff | Download patch
« no previous file with comments | « no previous file | ios/chrome/browser/reading_list/reading_list_distiller_page.mm » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef IOS_CHROME_BROWSER_READING_LIST_READING_LIST_DISTILLER_PAGE_H_ 5 #ifndef IOS_CHROME_BROWSER_READING_LIST_READING_LIST_DISTILLER_PAGE_H_
6 #define IOS_CHROME_BROWSER_READING_LIST_READING_LIST_DISTILLER_PAGE_H_ 6 #define IOS_CHROME_BROWSER_READING_LIST_READING_LIST_DISTILLER_PAGE_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 10
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 // IsGoogleCachedAMPPage will determine if the current page is a Google AMP 53 // IsGoogleCachedAMPPage will determine if the current page is a Google AMP
54 // page. 54 // page.
55 bool IsGoogleCachedAMPPage(); 55 bool IsGoogleCachedAMPPage();
56 // HandleGoogleCachedAMPPage will navigate to the iframe containing the actual 56 // HandleGoogleCachedAMPPage will navigate to the iframe containing the actual
57 // article page. 57 // article page.
58 void HandleGoogleCachedAMPPage(); 58 void HandleGoogleCachedAMPPage();
59 // Handles the JavaScript response. If the URL of the iframe is returned, 59 // Handles the JavaScript response. If the URL of the iframe is returned,
60 // triggers a navigation to it. Stop distillation of the page there as the new 60 // triggers a navigation to it. Stop distillation of the page there as the new
61 // load will trigger a new distillation. 61 // load will trigger a new distillation.
62 bool HandleGoogleCachedAMPPageJavaScriptResult(id result, id error); 62 bool HandleGoogleCachedAMPPageJavaScriptResult(id result, id error);
63 63 // Continue the distillation on the page that is currently loaded in
64 // Waits a delay then calls DelayedOnLoadURLDone. 64 // |CurrentWebState()|.
65 void WaitForPageLoadCompletion(); 65 void ContinuePageDistillation();
66 66
67 // Continues distillation by calling superclass |OnLoadURLDone|. 67 // Continues distillation by calling superclass |OnLoadURLDone|.
68 void DelayedOnLoadURLDone(); 68 void DelayedOnLoadURLDone();
69 69
70 RedirectionCallback redirection_callback_; 70 RedirectionCallback redirection_callback_;
71 GURL original_url_; 71 GURL original_url_;
72 72
73 FaviconWebStateDispatcher* web_state_dispatcher_; 73 FaviconWebStateDispatcher* web_state_dispatcher_;
74 base::WeakPtrFactory<ReadingListDistillerPage> weak_ptr_factory_; 74 base::WeakPtrFactory<ReadingListDistillerPage> weak_ptr_factory_;
75 }; 75 };
76 76
77 } // namespace reading_list 77 } // namespace reading_list
78 78
79 #endif // IOS_CHROME_BROWSER_READING_LIST_READING_LIST_DISTILLER_PAGE_H_ 79 #endif // IOS_CHROME_BROWSER_READING_LIST_READING_LIST_DISTILLER_PAGE_H_
OLDNEW
« no previous file with comments | « no previous file | ios/chrome/browser/reading_list/reading_list_distiller_page.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698