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

Unified Diff: components/reading_list/ios/favicon_web_state_dispatcher.h

Issue 2604773002: Create distiller files for Reading List. (Closed)
Patch Set: 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: components/reading_list/ios/favicon_web_state_dispatcher.h
diff --git a/components/dom_distiller/ios/favicon_web_state_dispatcher.h b/components/reading_list/ios/favicon_web_state_dispatcher.h
similarity index 69%
rename from components/dom_distiller/ios/favicon_web_state_dispatcher.h
rename to components/reading_list/ios/favicon_web_state_dispatcher.h
index c34e6985a12377b207e7d4c1044e5512ec1430a0..ff394a448dc7f592af3ce85acccec868bac09bf3 100644
--- a/components/dom_distiller/ios/favicon_web_state_dispatcher.h
+++ b/components/reading_list/ios/favicon_web_state_dispatcher.h
@@ -2,14 +2,14 @@
// 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_FAVICON_WEB_STATE_DISPATCHER_H_
-#define COMPONENTS_DOM_DISTILLER_IOS_FAVICON_WEB_STATE_DISPATCHER_H_
+#ifndef COMPONENTS_READING_LIST_IOS_FAVICON_WEB_STATE_DISPATCHER_H_
+#define COMPONENTS_READING_LIST_IOS_FAVICON_WEB_STATE_DISPATCHER_H_
namespace web {
class WebState;
}
-namespace dom_distiller {
+namespace reading_list {
// Dispatcher for WebState having a Favicon Driver, with BookmarkModel and
// HistoryService attached, as observer. The Webstates are kept alive between
@@ -20,10 +20,10 @@ class FaviconWebStateDispatcher {
FaviconWebStateDispatcher() {}
virtual ~FaviconWebStateDispatcher() {}
// Returns a WebState with a Favicon Driver attached.
- virtual web::WebState* RequestWebState() = 0;
+ virtual std::unique_ptr<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;
+ virtual void ReturnWebState(std::unique_ptr<web::WebState> web_state) = 0;
private:
DISALLOW_COPY_AND_ASSIGN(FaviconWebStateDispatcher);
@@ -31,4 +31,4 @@ class FaviconWebStateDispatcher {
} // namespace dom_distiller
gambard 2016/12/27 09:35:58 Update namespace
Olivier 2016/12/27 10:08:36 Done.
-#endif // COMPONENTS_DOM_DISTILLER_IOS_FAVICON_WEB_STATE_DISPATCHER_H_
+#endif // COMPONENTS_READING_LIST_IOS_FAVICON_WEB_STATE_DISPATCHER_H_

Powered by Google App Engine
This is Rietveld 408576698