Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 75 // HandleGoogleCachedAMPPage will navigate to the iframe containing the actual | 75 // HandleGoogleCachedAMPPage will navigate to the iframe containing the actual |
| 76 // article page. | 76 // article page. |
| 77 void HandleGoogleCachedAMPPage(); | 77 void HandleGoogleCachedAMPPage(); |
| 78 // Handles the JavaScript response. If the URL of the iframe is returned, | 78 // Handles the JavaScript response. If the URL of the iframe is returned, |
| 79 // triggers a navigation to it. Stop distillation of the page there as the new | 79 // triggers a navigation to it. Stop distillation of the page there as the new |
| 80 // load will trigger a new distillation. | 80 // load will trigger a new distillation. |
| 81 bool HandleGoogleCachedAMPPageJavaScriptResult(id result, id error); | 81 bool HandleGoogleCachedAMPPageJavaScriptResult(id result, id error); |
| 82 // Continue the distillation on the page that is currently loaded in | 82 // Continue the distillation on the page that is currently loaded in |
| 83 // |CurrentWebState()|. | 83 // |CurrentWebState()|. |
| 84 void ContinuePageDistillation(); | 84 void ContinuePageDistillation(); |
| 85 // Starts the fetching of |page_url|'s favicon. | |
|
stkhapugin
2017/02/03 10:37:13
Can you add a test for this?
Olivier
2017/02/03 10:44:55
This is a glue method.
Testing it would require fa
stkhapugin
2017/02/03 14:48:53
Sorry, I chose a bad place to leave this comment.
| |
| 86 void FetchFavicon(const GURL& page_url); | |
| 85 | 87 |
| 86 // Continues distillation by calling superclass |OnLoadURLDone|. | 88 // Continues distillation by calling superclass |OnLoadURLDone|. |
| 87 void DelayedOnLoadURLDone(); | 89 void DelayedOnLoadURLDone(); |
| 88 GURL original_url_; | 90 GURL original_url_; |
| 89 | 91 |
| 90 FaviconWebStateDispatcher* web_state_dispatcher_; | 92 FaviconWebStateDispatcher* web_state_dispatcher_; |
| 91 ReadingListDistillerPageDelegate* delegate_; | 93 ReadingListDistillerPageDelegate* delegate_; |
| 92 base::WeakPtrFactory<ReadingListDistillerPage> weak_ptr_factory_; | 94 base::WeakPtrFactory<ReadingListDistillerPage> weak_ptr_factory_; |
| 93 | 95 |
| 94 DISALLOW_COPY_AND_ASSIGN(ReadingListDistillerPage); | 96 DISALLOW_COPY_AND_ASSIGN(ReadingListDistillerPage); |
| 95 }; | 97 }; |
| 96 | 98 |
| 97 } // namespace reading_list | 99 } // namespace reading_list |
| 98 | 100 |
| 99 #endif // IOS_CHROME_BROWSER_READING_LIST_READING_LIST_DISTILLER_PAGE_H_ | 101 #endif // IOS_CHROME_BROWSER_READING_LIST_READING_LIST_DISTILLER_PAGE_H_ |
| OLD | NEW |