OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2009 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 #ifndef CHROME_BROWSER_CHROMEOS_CROS_CROS_LIBRARY_LOADER_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_CROS_CROS_LIBRARY_LOADER_H_ |
| 7 |
| 8 #include <string> |
| 9 |
| 10 #include "chrome/browser/chromeos/cros/cros_library.h" |
| 11 |
| 12 namespace chromeos { |
| 13 |
| 14 // Library loads libcros library. It is abstracted behind this interface |
| 15 // so it can be mocked in tests. |
| 16 class LibraryLoader { |
| 17 public: |
| 18 virtual ~LibraryLoader() {} |
| 19 virtual bool Load(std::string* load_error_string) = 0; |
| 20 }; |
| 21 |
| 22 class CrosLibraryLoader : public LibraryLoader { |
| 23 public: |
| 24 CrosLibraryLoader() {} |
| 25 |
| 26 // CrosLibrary::LibraryLoader overrides. |
| 27 virtual bool Load(std::string* load_error_string); |
| 28 }; |
| 29 |
| 30 } // namespace chromeos |
| 31 |
| 32 #endif // CHROME_BROWSER_CHROMEOS_CROS_CROS_LIBRARY_LOADER_H_ |
| 33 |
OLD | NEW |