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

Side by Side Diff: components/dom_distiller/ios/distiller_page_factory_ios.mm

Issue 2604773002: Create distiller files for Reading List. (Closed)
Patch Set: Attach/Detach Created 3 years, 11 months 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
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "components/dom_distiller/ios/distiller_page_factory_ios.h" 5 #include "components/dom_distiller/ios/distiller_page_factory_ios.h"
6 6
7 #include "base/memory/ptr_util.h" 7 #include "base/memory/ptr_util.h"
8 #include "components/dom_distiller/ios/distiller_page_ios.h" 8 #include "components/dom_distiller/ios/distiller_page_ios.h"
9 #include "components/dom_distiller/ios/favicon_web_state_dispatcher.h"
10 #include "ios/web/public/browser_state.h" 9 #include "ios/web/public/browser_state.h"
10 #include "ios/web/public/web_state/web_state.h"
gambard 2016/12/27 13:56:57 Not needed.
Olivier 2016/12/27 14:52:14 Done.
11 11
12 namespace dom_distiller { 12 namespace dom_distiller {
13 13
14 DistillerPageFactoryIOS::DistillerPageFactoryIOS( 14 DistillerPageFactoryIOS::DistillerPageFactoryIOS(
15 std::unique_ptr<FaviconWebStateDispatcher> web_state_dispatcher) 15 web::BrowserState* browser_state)
16 : web_state_dispatcher_(std::move(web_state_dispatcher)) {} 16 : browser_state_(browser_state) {}
17 17
18 DistillerPageFactoryIOS::~DistillerPageFactoryIOS() {} 18 DistillerPageFactoryIOS::~DistillerPageFactoryIOS() {}
19 19
20 std::unique_ptr<DistillerPage> DistillerPageFactoryIOS::CreateDistillerPage( 20 std::unique_ptr<DistillerPage> DistillerPageFactoryIOS::CreateDistillerPage(
21 const gfx::Size& view_size) const { 21 const gfx::Size& view_size) const {
22 return base::MakeUnique<DistillerPageIOS>(web_state_dispatcher_.get()); 22 return base::MakeUnique<DistillerPageIOS>(browser_state_);
23 } 23 }
24 24
25 std::unique_ptr<DistillerPage> 25 std::unique_ptr<DistillerPage>
26 DistillerPageFactoryIOS::CreateDistillerPageWithHandle( 26 DistillerPageFactoryIOS::CreateDistillerPageWithHandle(
27 std::unique_ptr<SourcePageHandle> handle) const { 27 std::unique_ptr<SourcePageHandle> handle) const {
28 return base::MakeUnique<DistillerPageIOS>(web_state_dispatcher_.get()); 28 return base::MakeUnique<DistillerPageIOS>(browser_state_);
29 } 29 }
30 30
31 } // namespace dom_distiller 31 } // namespace dom_distiller
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698