| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 CHROME_BROWSER_CHROMEOS_CROS_SYSTEM_LIBRARY_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_CROS_SYSTEM_LIBRARY_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_CROS_SYSTEM_LIBRARY_H_ | 6 #define CHROME_BROWSER_CHROMEOS_CROS_SYSTEM_LIBRARY_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "base/observer_list.h" | 9 #include "base/observer_list.h" |
| 10 #include "base/singleton.h" | 10 #include "base/singleton.h" |
| 11 #include "cros/chromeos_system.h" | 11 #include "third_party/cros/chromeos_system.h" |
| 12 #include "unicode/timezone.h" | 12 #include "unicode/timezone.h" |
| 13 | 13 |
| 14 namespace chromeos { | 14 namespace chromeos { |
| 15 | 15 |
| 16 // This interface defines interaction with the ChromeOS system APIs. | 16 // This interface defines interaction with the ChromeOS system APIs. |
| 17 class SystemLibrary { | 17 class SystemLibrary { |
| 18 public: | 18 public: |
| 19 class Observer { | 19 class Observer { |
| 20 public: | 20 public: |
| 21 // Called when the timezone has changed. |timezone| is non-null. | 21 // Called when the timezone has changed. |timezone| is non-null. |
| (...skipping 17 matching lines...) Expand all Loading... |
| 39 std::string* result) = 0; | 39 std::string* result) = 0; |
| 40 | 40 |
| 41 // Factory function, creates a new instance and returns ownership. | 41 // Factory function, creates a new instance and returns ownership. |
| 42 // For normal usage, access the singleton via CrosLibrary::Get(). | 42 // For normal usage, access the singleton via CrosLibrary::Get(). |
| 43 static SystemLibrary* GetImpl(bool stub); | 43 static SystemLibrary* GetImpl(bool stub); |
| 44 }; | 44 }; |
| 45 | 45 |
| 46 } // namespace chromeos | 46 } // namespace chromeos |
| 47 | 47 |
| 48 #endif // CHROME_BROWSER_CHROMEOS_CROS_SYSTEM_LIBRARY_H_ | 48 #endif // CHROME_BROWSER_CHROMEOS_CROS_SYSTEM_LIBRARY_H_ |
| OLD | NEW |