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
3 // found in the LICENSE file.
5 #include "components/dom_distiller/core/dom_distiller_service.h"
6 #include "components/dom_distiller/core/dom_distiller_store.h"
8 namespace dom_distiller {
10 ViewerHandle::ViewerHandle() {}
11 ViewerHandle::~ViewerHandle() {}
13 DomDistillerService::DomDistillerService(
14 scoped_ptr<DomDistillerStoreInterface> store,
15 scoped_ptr<DistillerFactory> distiller_factory)
16 : store_(store.Pass()), distiller_factory_(distiller_factory.Pass()) {}
18 DomDistillerService::~DomDistillerService() {}
20 syncer::SyncableService* DomDistillerService::GetSyncableService() const {
21 return store_->GetSyncableService();
24 void DomDistillerService::AddToList(const GURL& url) { NOTIMPLEMENTED(); }
26 std::vector<ArticleEntry> DomDistillerService::GetEntries() const {
27 return store_->GetEntries();
30 scoped_ptr<ViewerHandle> DomDistillerService::ViewEntry(
31 ViewerContext* context,
32 const std::string& entry_id) {
34 return scoped_ptr<ViewerHandle>();
37 scoped_ptr<ViewerHandle> DomDistillerService::ViewUrl(ViewerContext* context,
40 return scoped_ptr<ViewerHandle>();
43 } // namespace dom_distiller