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

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

Issue 2717483003: [Reading List] Check web state after the distillation delay. (Closed)
Patch Set: add task_id Created 3 years, 9 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 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
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. 85 // Starts the fetching of |page_url|'s favicon.
86 void FetchFavicon(const GURL& page_url); 86 void FetchFavicon(const GURL& page_url);
87 87
88 // Continues distillation by calling superclass |OnLoadURLDone|. 88 // Continues distillation by calling superclass |OnLoadURLDone|.
89 void DelayedOnLoadURLDone(); 89 void DelayedOnLoadURLDone(int delayed_task_id);
90 GURL original_url_; 90 GURL original_url_;
91 91
92 FaviconWebStateDispatcher* web_state_dispatcher_; 92 FaviconWebStateDispatcher* web_state_dispatcher_;
93 ReadingListDistillerPageDelegate* delegate_; 93 ReadingListDistillerPageDelegate* delegate_;
94 int delayed_task_id_;
94 base::WeakPtrFactory<ReadingListDistillerPage> weak_ptr_factory_; 95 base::WeakPtrFactory<ReadingListDistillerPage> weak_ptr_factory_;
95 96
96 DISALLOW_COPY_AND_ASSIGN(ReadingListDistillerPage); 97 DISALLOW_COPY_AND_ASSIGN(ReadingListDistillerPage);
97 }; 98 };
98 99
99 } // namespace reading_list 100 } // namespace reading_list
100 101
101 #endif // IOS_CHROME_BROWSER_READING_LIST_READING_LIST_DISTILLER_PAGE_H_ 102 #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