| 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_SYSLOGS_LIBRARY_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_CROS_SYSLOGS_LIBRARY_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_CROS_SYSLOGS_LIBRARY_H_ | 6 #define CHROME_BROWSER_CHROMEOS_CROS_SYSLOGS_LIBRARY_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "base/singleton.h" | 9 #include "base/singleton.h" |
| 10 #include "chrome/browser/cancelable_request.h" | 10 #include "chrome/browser/cancelable_request.h" |
| 11 #include "cros/chromeos_syslogs.h" | 11 #include "third_party/cros/chromeos_syslogs.h" |
| 12 | 12 |
| 13 class CancelableRequestConsumerBase; | 13 class CancelableRequestConsumerBase; |
| 14 | 14 |
| 15 namespace chromeos { | 15 namespace chromeos { |
| 16 | 16 |
| 17 // This interface defines interaction with the ChromeOS syslogs APIs. | 17 // This interface defines interaction with the ChromeOS syslogs APIs. |
| 18 class SyslogsLibrary : public CancelableRequestProvider { | 18 class SyslogsLibrary : public CancelableRequestProvider { |
| 19 public: | 19 public: |
| 20 typedef Callback2<LogDictionaryType*, | 20 typedef Callback2<LogDictionaryType*, |
| 21 std::string*>::Type ReadCompleteCallback; | 21 std::string*>::Type ReadCompleteCallback; |
| (...skipping 12 matching lines...) Expand all Loading... |
| 34 ReadCompleteCallback* callback) = 0; | 34 ReadCompleteCallback* callback) = 0; |
| 35 | 35 |
| 36 // Factory function, creates a new instance and returns ownership. | 36 // Factory function, creates a new instance and returns ownership. |
| 37 // For normal usage, access the singleton via CrosLibrary::Get(). | 37 // For normal usage, access the singleton via CrosLibrary::Get(). |
| 38 static SyslogsLibrary* GetImpl(bool stub); | 38 static SyslogsLibrary* GetImpl(bool stub); |
| 39 }; | 39 }; |
| 40 | 40 |
| 41 } // namespace chromeos | 41 } // namespace chromeos |
| 42 | 42 |
| 43 #endif // CHROME_BROWSER_CHROMEOS_CROS_SYSLOGS_LIBRARY_H_ | 43 #endif // CHROME_BROWSER_CHROMEOS_CROS_SYSLOGS_LIBRARY_H_ |
| OLD | NEW |