OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |