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

Side by Side Diff: components/dom_distiller/ios/web_state_dispatcher.h

Issue 2529283002: Save favicon during reading list distillation (Closed)
Patch Set: Add DependsOn Created 4 years 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
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef COMPONENTS_DOM_DISTILLER_IOS_WEB_STATE_DISPATCHER_H_
6 #define COMPONENTS_DOM_DISTILLER_IOS_WEB_STATE_DISPATCHER_H_
7
8 namespace web {
9 class WebState;
10 }
11
12 namespace dom_distiller {
13
14 // Dispatcher for WebState with Favicon Driver attached. The Webstate are kept
15 // alive between their creation and their return. After a WebState is returned,
16 // the dispatcher keeps it alive long enough for it to download the favicons.
17 class WebStateDispatcher {
18 public:
19 virtual ~WebStateDispatcher() {}
20 // Returns a WebState with a Favicon Driver attached.
21 virtual web::WebState* RequestWebState() = 0;
22 // Called to return a WebState. The WebState should not be used after being
23 // returned.
24 virtual void ReturnWebState(web::WebState* web_state) = 0;
Olivier 2016/12/16 10:31:31 NIT: Disallow copy
gambard 2016/12/16 13:49:19 Done.
25 };
26
27 } // namespace dom_distiller
28
29 #endif // COMPONENTS_DOM_DISTILLER_IOS_WEB_STATE_DISPATCHER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698