OLD | NEW |
| (Empty) |
1 // Copyright (c) 2011 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_LIBRARY_LOADER_H_ | |
6 #define CHROME_BROWSER_CHROMEOS_CROS_LIBRARY_LOADER_H_ | |
7 #pragma once | |
8 | |
9 #include <string> | |
10 | |
11 namespace chromeos { | |
12 | |
13 // This interface loads the libcros library. | |
14 class LibraryLoader { | |
15 public: | |
16 virtual ~LibraryLoader() {} | |
17 virtual bool Load(std::string* load_error_string) = 0; | |
18 | |
19 // Factory function, creates a new instance and returns ownership. | |
20 static LibraryLoader* GetImpl(); | |
21 }; | |
22 | |
23 } // namespace chromeos | |
24 | |
25 #endif // CHROME_BROWSER_CHROMEOS_CROS_LIBRARY_LOADER_H_ | |
OLD | NEW |