- add sources.
[platform/framework/web/crosswalk.git] / src / components / dom_distiller / core / dom_distiller_service.cc
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.
4
5 #include "components/dom_distiller/core/dom_distiller_service.h"
6 #include "components/dom_distiller/core/dom_distiller_store.h"
7
8 namespace dom_distiller {
9
10 ViewerHandle::ViewerHandle() {}
11 ViewerHandle::~ViewerHandle() {}
12
13 DomDistillerService::DomDistillerService(
14     scoped_ptr<DomDistillerStoreInterface> store,
15     scoped_ptr<DistillerFactory> distiller_factory)
16     : store_(store.Pass()), distiller_factory_(distiller_factory.Pass()) {}
17
18 DomDistillerService::~DomDistillerService() {}
19
20 syncer::SyncableService* DomDistillerService::GetSyncableService() const {
21   return store_->GetSyncableService();
22 }
23
24 void DomDistillerService::AddToList(const GURL& url) { NOTIMPLEMENTED(); }
25
26 std::vector<ArticleEntry> DomDistillerService::GetEntries() const {
27   return store_->GetEntries();
28 }
29
30 scoped_ptr<ViewerHandle> DomDistillerService::ViewEntry(
31     ViewerContext* context,
32     const std::string& entry_id) {
33   NOTIMPLEMENTED();
34   return scoped_ptr<ViewerHandle>();
35 }
36
37 scoped_ptr<ViewerHandle> DomDistillerService::ViewUrl(ViewerContext* context,
38                                                       const GURL& url) {
39   NOTIMPLEMENTED();
40   return scoped_ptr<ViewerHandle>();
41 }
42
43 }  // namespace dom_distiller