| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 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 #ifndef EXTENSIONS_BROWSER_API_DOCUMENT_SCAN_DOCUMENT_SCAN_INTERFACE_H_ | 5 #ifndef EXTENSIONS_BROWSER_API_DOCUMENT_SCAN_DOCUMENT_SCAN_INTERFACE_H_ |
| 6 #define EXTENSIONS_BROWSER_API_DOCUMENT_SCAN_DOCUMENT_SCAN_INTERFACE_H_ | 6 #define EXTENSIONS_BROWSER_API_DOCUMENT_SCAN_DOCUMENT_SCAN_INTERFACE_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| 11 #include "base/callback.h" | 11 #include "base/callback.h" |
| 12 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
| 13 | 13 |
| 14 namespace extensions { | 14 namespace extensions { |
| 15 | 15 |
| 16 namespace core_api { | 16 namespace api { |
| 17 | 17 |
| 18 class DocumentScanInterface { | 18 class DocumentScanInterface { |
| 19 public: | 19 public: |
| 20 struct ScannerDescription { | 20 struct ScannerDescription { |
| 21 ScannerDescription(); | 21 ScannerDescription(); |
| 22 ~ScannerDescription(); | 22 ~ScannerDescription(); |
| 23 std::string name; | 23 std::string name; |
| 24 std::string manufacturer; | 24 std::string manufacturer; |
| 25 std::string model; | 25 std::string model; |
| 26 std::string scanner_type; | 26 std::string scanner_type; |
| (...skipping 18 matching lines...) Expand all Loading... |
| 45 const ScanResultsCallback& callback) = 0; | 45 const ScanResultsCallback& callback) = 0; |
| 46 virtual void ListScanners(const ListScannersResultsCallback& callback) = 0; | 46 virtual void ListScanners(const ListScannersResultsCallback& callback) = 0; |
| 47 | 47 |
| 48 // Creates a platform-specific DocumentScanInterface instance. | 48 // Creates a platform-specific DocumentScanInterface instance. |
| 49 static DocumentScanInterface* CreateInstance(); | 49 static DocumentScanInterface* CreateInstance(); |
| 50 | 50 |
| 51 protected: | 51 protected: |
| 52 DocumentScanInterface(); | 52 DocumentScanInterface(); |
| 53 }; | 53 }; |
| 54 | 54 |
| 55 } // namespace core_api | 55 } // namespace api |
| 56 | 56 |
| 57 } // namespace extensions | 57 } // namespace extensions |
| 58 | 58 |
| 59 #endif // EXTENSIONS_BROWSER_API_DOCUMENT_SCAN_DOCUMENT_SCAN_INTERFACE_H_ | 59 #endif // EXTENSIONS_BROWSER_API_DOCUMENT_SCAN_DOCUMENT_SCAN_INTERFACE_H_ |
| OLD | NEW |