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