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

Unified Diff: components/dom_distiller/ios/web_state_dispatcher.h

Issue 2529283002: Save favicon during reading list distillation (Closed)
Patch Set: Fix constructor 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/dom_distiller/ios/distiller_page_ios.mm ('k') | ios/chrome/browser/dom_distiller/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/dom_distiller/ios/web_state_dispatcher.h
diff --git a/components/dom_distiller/ios/web_state_dispatcher.h b/components/dom_distiller/ios/web_state_dispatcher.h
new file mode 100644
index 0000000000000000000000000000000000000000..5a644c601275d0cb2c088d41e178a9b5b5e6883d
--- /dev/null
+++ b/components/dom_distiller/ios/web_state_dispatcher.h
@@ -0,0 +1,33 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef COMPONENTS_DOM_DISTILLER_IOS_WEB_STATE_DISPATCHER_H_
+#define COMPONENTS_DOM_DISTILLER_IOS_WEB_STATE_DISPATCHER_H_
+
+namespace web {
+class WebState;
+}
+
+namespace dom_distiller {
+
+// 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.
+// alive between their creation and their return. After a WebState is returned,
+// the dispatcher keeps it alive long enough for it to download the favicons.
+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.
+ public:
+ WebStateDispatcher() {}
+ virtual ~WebStateDispatcher() {}
+ // Returns a WebState with a Favicon Driver attached.
+ virtual web::WebState* RequestWebState() = 0;
+ // Called to return a WebState. The WebState should not be used after being
+ // returned.
+ virtual void ReturnWebState(web::WebState* web_state) = 0;
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(WebStateDispatcher);
+};
+
+} // namespace dom_distiller
+
+#endif // COMPONENTS_DOM_DISTILLER_IOS_WEB_STATE_DISPATCHER_H_
« no previous file with comments | « components/dom_distiller/ios/distiller_page_ios.mm ('k') | ios/chrome/browser/dom_distiller/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698