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

Side by Side Diff: components/dom_distiller/core/dom_distiller_service.cc

Issue 396503003: DomDistiller: fix 0 document width (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: resolve patch conflicts Created 6 years, 5 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/core/dom_distiller_service.h" 5 #include "components/dom_distiller/core/dom_distiller_service.h"
6 6
7 #include "base/guid.h" 7 #include "base/guid.h"
8 #include "base/message_loop/message_loop.h" 8 #include "base/message_loop/message_loop.h"
9 #include "components/dom_distiller/core/distilled_content_store.h" 9 #include "components/dom_distiller/core/distilled_content_store.h"
10 #include "components/dom_distiller/core/dom_distiller_store.h" 10 #include "components/dom_distiller/core/dom_distiller_store.h"
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 distilled_page_prefs_(distilled_page_prefs.Pass()) { 48 distilled_page_prefs_(distilled_page_prefs.Pass()) {
49 } 49 }
50 50
51 DomDistillerService::~DomDistillerService() { 51 DomDistillerService::~DomDistillerService() {
52 } 52 }
53 53
54 syncer::SyncableService* DomDistillerService::GetSyncableService() const { 54 syncer::SyncableService* DomDistillerService::GetSyncableService() const {
55 return store_->GetSyncableService(); 55 return store_->GetSyncableService();
56 } 56 }
57 57
58 scoped_ptr<DistillerPage> DomDistillerService::CreateDefaultDistillerPage() { 58 scoped_ptr<DistillerPage> DomDistillerService::CreateDefaultDistillerPage(
59 return distiller_page_factory_->CreateDistillerPage().Pass(); 59 const gfx::Size& render_view_size) {
60 return distiller_page_factory_->CreateDistillerPage(render_view_size).Pass();
60 } 61 }
61 62
62 scoped_ptr<DistillerPage> 63 scoped_ptr<DistillerPage>
63 DomDistillerService::CreateDefaultDistillerPageWithHandle( 64 DomDistillerService::CreateDefaultDistillerPageWithHandle(
64 scoped_ptr<SourcePageHandle> handle) { 65 scoped_ptr<SourcePageHandle> handle) {
65 return distiller_page_factory_->CreateDistillerPageWithHandle(handle.Pass()) 66 return distiller_page_factory_->CreateDistillerPageWithHandle(handle.Pass())
66 .Pass(); 67 .Pass();
67 } 68 }
68 69
69 const std::string DomDistillerService::AddToList( 70 const std::string DomDistillerService::AddToList(
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after
239 void DomDistillerService::RemoveObserver(DomDistillerObserver* observer) { 240 void DomDistillerService::RemoveObserver(DomDistillerObserver* observer) {
240 DCHECK(observer); 241 DCHECK(observer);
241 store_->RemoveObserver(observer); 242 store_->RemoveObserver(observer);
242 } 243 }
243 244
244 DistilledPagePrefs* DomDistillerService::GetDistilledPagePrefs() { 245 DistilledPagePrefs* DomDistillerService::GetDistilledPagePrefs() {
245 return distilled_page_prefs_.get(); 246 return distilled_page_prefs_.get();
246 } 247 }
247 248
248 } // namespace dom_distiller 249 } // namespace dom_distiller
OLDNEW
« no previous file with comments | « components/dom_distiller/core/dom_distiller_service.h ('k') | components/dom_distiller/core/dom_distiller_service_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698