Chromium Code Reviews| OLD | NEW | 
|---|---|
| (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 | |
| 
 
Eugene But (OOO till 7-30)
2016/12/16 15:03:49
This also attaches HistoryService and BookmarkMode
 
gambard
2016/12/19 09:09:08
Done.
 
 | |
| 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 { | |
| 
 
Eugene But (OOO till 7-30)
2016/12/16 15:03:50
If offline conversation we determined that there i
 
gambard
2016/12/19 09:09:08
Done.
 
 | |
| 18 public: | |
| 19 WebStateDispatcher() {} | |
| 20 virtual ~WebStateDispatcher() {} | |
| 21 // Returns a WebState with a Favicon Driver attached. | |
| 22 virtual web::WebState* RequestWebState() = 0; | |
| 23 // Called to return a WebState. The WebState should not be used after being | |
| 24 // returned. | |
| 25 virtual void ReturnWebState(web::WebState* web_state) = 0; | |
| 26 | |
| 27 private: | |
| 28 DISALLOW_COPY_AND_ASSIGN(WebStateDispatcher); | |
| 29 }; | |
| 30 | |
| 31 } // namespace dom_distiller | |
| 32 | |
| 33 #endif // COMPONENTS_DOM_DISTILLER_IOS_WEB_STATE_DISPATCHER_H_ | |
| OLD | NEW |