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

Side by Side Diff: components/reading_list/ios/favicon_web_state_dispatcher.h

Issue 2745313004: Remove all ReadingList entries on managed account signout. (Closed)
Patch Set: feedback 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 | components/reading_list/ios/reading_list_model.h » ('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 COMPONENTS_READING_LIST_IOS_FAVICON_WEB_STATE_DISPATCHER_H_ 5 #ifndef COMPONENTS_READING_LIST_IOS_FAVICON_WEB_STATE_DISPATCHER_H_
6 #define COMPONENTS_READING_LIST_IOS_FAVICON_WEB_STATE_DISPATCHER_H_ 6 #define COMPONENTS_READING_LIST_IOS_FAVICON_WEB_STATE_DISPATCHER_H_
7 7
8 namespace web { 8 namespace web {
9 class WebState; 9 class WebState;
10 } 10 }
11 11
12 namespace reading_list { 12 namespace reading_list {
13 13
14 // Dispatcher for WebState having a Favicon Driver, with BookmarkModel and 14 // Dispatcher for WebState having a Favicon Driver, with BookmarkModel and
15 // HistoryService attached, as observer. After a WebState is returned, the 15 // HistoryService attached, as observer. After a WebState is returned, the
16 // dispatcher keeps it alive long enough for it to download the favicons. 16 // dispatcher keeps it alive long enough for it to download the favicons.
17 class FaviconWebStateDispatcher { 17 class FaviconWebStateDispatcher {
18 public: 18 public:
19 FaviconWebStateDispatcher() {} 19 FaviconWebStateDispatcher() {}
20 virtual ~FaviconWebStateDispatcher() {} 20 virtual ~FaviconWebStateDispatcher() {}
21 // Returns a WebState with a Favicon Driver attached. 21 // Returns a WebState with a Favicon Driver attached.
22 virtual std::unique_ptr<web::WebState> RequestWebState() = 0; 22 virtual std::unique_ptr<web::WebState> RequestWebState() = 0;
23 // Called to return a WebState. The WebState should not be used after being 23 // Called to return a WebState. The WebState should not be used after being
24 // returned. 24 // returned.
25 virtual void ReturnWebState(std::unique_ptr<web::WebState> web_state) = 0; 25 virtual void ReturnWebState(std::unique_ptr<web::WebState> web_state) = 0;
26 26
27 // Releases all the WebState currently retained for favicon fetching.
28 virtual void ReleaseAll() = 0;
29
27 private: 30 private:
28 DISALLOW_COPY_AND_ASSIGN(FaviconWebStateDispatcher); 31 DISALLOW_COPY_AND_ASSIGN(FaviconWebStateDispatcher);
29 }; 32 };
30 33
31 } // namespace reading_list 34 } // namespace reading_list
32 35
33 #endif // COMPONENTS_READING_LIST_IOS_FAVICON_WEB_STATE_DISPATCHER_H_ 36 #endif // COMPONENTS_READING_LIST_IOS_FAVICON_WEB_STATE_DISPATCHER_H_
OLDNEW
« no previous file with comments | « no previous file | components/reading_list/ios/reading_list_model.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698