Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #include "components/dom_distiller/ios/distiller_page_factory_ios.h" | |
| 6 | |
| 7 #include "components/dom_distiller/ios/distiller_page_ios.h" | |
| 8 #include "ios/web/public/browser_state.h" | |
| 9 | |
| 10 namespace dom_distiller { | |
| 11 | |
| 12 DistillerPageFactoryIOS::DistillerPageFactoryIOS( | |
| 13 web::BrowserState* browser_state) | |
| 14 : browser_state_(browser_state) { | |
| 15 } | |
| 16 | |
| 17 scoped_ptr<DistillerPage> DistillerPageFactoryIOS::CreateDistillerPage( | |
| 18 const gfx::Size& view_size) const { | |
| 19 return scoped_ptr<DistillerPage>(new DistillerPageIOS(browser_state_)); | |
|
bengr
2015/02/20 20:11:38
Use make_scoped_ptr
sdefresne
2015/02/23 11:08:57
I don't really see the benefit here (since the typ
| |
| 20 } | |
| 21 | |
| 22 scoped_ptr<DistillerPage> | |
| 23 DistillerPageFactoryIOS::CreateDistillerPageWithHandle( | |
| 24 scoped_ptr<SourcePageHandle> handle) const { | |
| 25 return scoped_ptr<DistillerPage>(new DistillerPageIOS(browser_state_)); | |
| 26 } | |
| 27 | |
| 28 } // namespace dom_distiller | |
| OLD | NEW |