 Chromium Code Reviews
 Chromium Code Reviews Issue 936843002:
  Upstream iOS implementation of dom_distiller  (Closed) 
  Base URL: https://chromium.googlesource.com/chromium/src.git@web_controller_provider
    
  
    Issue 936843002:
  Upstream iOS implementation of dom_distiller  (Closed) 
  Base URL: https://chromium.googlesource.com/chromium/src.git@web_controller_provider| Index: components/dom_distiller/ios/distiller_page_factory_ios.mm | 
| diff --git a/components/dom_distiller/ios/distiller_page_factory_ios.mm b/components/dom_distiller/ios/distiller_page_factory_ios.mm | 
| new file mode 100644 | 
| index 0000000000000000000000000000000000000000..b98976286300324abf9560d619193a9734530da3 | 
| --- /dev/null | 
| +++ b/components/dom_distiller/ios/distiller_page_factory_ios.mm | 
| @@ -0,0 +1,28 @@ | 
| +// Copyright 2015 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. | 
| + | 
| +#include "components/dom_distiller/ios/distiller_page_factory_ios.h" | 
| + | 
| +#include "components/dom_distiller/ios/distiller_page_ios.h" | 
| +#include "ios/web/public/browser_state.h" | 
| + | 
| +namespace dom_distiller { | 
| + | 
| +DistillerPageFactoryIOS::DistillerPageFactoryIOS( | 
| + web::BrowserState* browser_state) | 
| + : browser_state_(browser_state) { | 
| +} | 
| + | 
| +scoped_ptr<DistillerPage> DistillerPageFactoryIOS::CreateDistillerPage( | 
| + const gfx::Size& view_size) const { | 
| + 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
 | 
| +} | 
| + | 
| +scoped_ptr<DistillerPage> | 
| +DistillerPageFactoryIOS::CreateDistillerPageWithHandle( | 
| + scoped_ptr<SourcePageHandle> handle) const { | 
| + return scoped_ptr<DistillerPage>(new DistillerPageIOS(browser_state_)); | 
| +} | 
| + | 
| +} // namespace dom_distiller |