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

Unified Diff: ios/chrome/browser/dom_distiller/favicon_observer_factory_impl~.h

Issue 2529283002: Save favicon during reading list distillation (Closed)
Patch Set: Using web state 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
Index: ios/chrome/browser/dom_distiller/favicon_observer_factory_impl~.h
diff --git a/ios/chrome/browser/dom_distiller/favicon_observer_factory_impl~.h b/ios/chrome/browser/dom_distiller/favicon_observer_factory_impl~.h
new file mode 100644
index 0000000000000000000000000000000000000000..331e2a529247c5aae12807fa7c6fd87d5827cbfd
--- /dev/null
+++ b/ios/chrome/browser/dom_distiller/favicon_observer_factory_impl~.h
@@ -0,0 +1,27 @@
+// 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 IOS_CHROME_BROWSER_DOM_DISTILLER_FAVICON_OBSERVER_FACTORY_IMPL_H_
+#define IOS_CHROME_BROWSER_DOM_DISTILLER_FAVICON_OBSERVER_FACTORY_IMPL_H_
+
+#include "components/dom_distiller/ios/favicon_observer_factory.h"
+
+namespace web {
+class BrowserState;
+class WebState;
+}
+
+namespace dom_distiller {
+
+// Implementation of the WebControllerProviderFactory, creating the
+// WebControllerProvider with a FaviconDriver as WebObserver, allowing it to
+// automatically save the favicons of the loaded pages.
+class FaviconObserverFactoryImpl : public FaviconObserverFactory {
+ public:
+ void AddFaviconObserver(web::WebState* web_state,
+ web::BrowserState* browser_state) override;
+};
+}
Eugene But (OOO till 7-30) 2016/12/08 15:34:53 // namespace dom_distiller
+
+#endif // IOS_CHROME_BROWSER_DOM_DISTILLER_FAVICON_OBSERVER_FACTORY_IMPL_H_

Powered by Google App Engine
This is Rietveld 408576698