1 // Copyright 2014 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 "extensions/browser/api/document_scan/document_scan_interface.h"
9 const char kScanFunctionNotImplementedError
[] = "Scan function not implemented";
13 namespace extensions
{
17 class DocumentScanInterfaceImpl
: public DocumentScanInterface
{
19 DocumentScanInterfaceImpl() {}
20 ~DocumentScanInterfaceImpl() override
{}
22 void ListScanners(const ListScannersResultsCallback
& callback
) override
{
23 callback
.Run(std::vector
<ScannerDescription
>(), "");
25 void Scan(const std::string
& scanner_name
,
28 const ScanResultsCallback
& callback
) override
{
29 callback
.Run("", "", kScanFunctionNotImplementedError
);
33 DISALLOW_COPY_AND_ASSIGN(DocumentScanInterfaceImpl
);
37 DocumentScanInterface
* DocumentScanInterface::CreateInstance() {
38 return new DocumentScanInterfaceImpl();
43 } // namespace extensions