| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 CHROMEOS_DBUS_DEBUG_DAEMON_CLIENT_H_ | 5 #ifndef CHROMEOS_DBUS_DEBUG_DAEMON_CLIENT_H_ |
| 6 #define CHROMEOS_DBUS_DEBUG_DAEMON_CLIENT_H_ | 6 #define CHROMEOS_DBUS_DEBUG_DAEMON_CLIENT_H_ |
| 7 | 7 |
| 8 #include "base/callback.h" | 8 #include "base/callback.h" |
| 9 #include "base/platform_file.h" | 9 #include "base/platform_file.h" |
| 10 #include "base/memory/ref_counted_memory.h" | 10 #include "base/memory/ref_counted_memory.h" |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 79 typedef base::Callback<void(bool succeeded, | 79 typedef base::Callback<void(bool succeeded, |
| 80 const std::map<std::string, std::string>& logs)> | 80 const std::map<std::string, std::string>& logs)> |
| 81 GetLogsCallback; | 81 GetLogsCallback; |
| 82 | 82 |
| 83 // Gets all logs collected by debugd. | 83 // Gets all logs collected by debugd. |
| 84 virtual void GetAllLogs(const GetLogsCallback& callback) = 0; | 84 virtual void GetAllLogs(const GetLogsCallback& callback) = 0; |
| 85 | 85 |
| 86 // Gets list of user log files that must be read by Chrome. | 86 // Gets list of user log files that must be read by Chrome. |
| 87 virtual void GetUserLogFiles(const GetLogsCallback& callback) = 0; | 87 virtual void GetUserLogFiles(const GetLogsCallback& callback) = 0; |
| 88 | 88 |
| 89 // Same output format as GetAllLogs just that it returns logs for feedback. |
| 90 virtual void GetFeedbackLogs(const GetLogsCallback& callback) = 0; |
| 91 |
| 89 // Requests to start system/kernel tracing. | 92 // Requests to start system/kernel tracing. |
| 90 virtual void StartSystemTracing() = 0; | 93 virtual void StartSystemTracing() = 0; |
| 91 | 94 |
| 92 // Called once RequestStopSystemTracing() is complete. Takes one parameter: | 95 // Called once RequestStopSystemTracing() is complete. Takes one parameter: |
| 93 // - result: the data collected while tracing was active | 96 // - result: the data collected while tracing was active |
| 94 typedef base::Callback<void(const scoped_refptr<base::RefCountedString>& | 97 typedef base::Callback<void(const scoped_refptr<base::RefCountedString>& |
| 95 result)> StopSystemTracingCallback; | 98 result)> StopSystemTracingCallback; |
| 96 | 99 |
| 97 // Requests to stop system tracing and calls |callback| when completed. | 100 // Requests to stop system tracing and calls |callback| when completed. |
| 98 virtual bool RequestStopSystemTracing(const StopSystemTracingCallback& | 101 virtual bool RequestStopSystemTracing(const StopSystemTracingCallback& |
| (...skipping 23 matching lines...) Expand all Loading... |
| 122 // Create() should be used instead. | 125 // Create() should be used instead. |
| 123 DebugDaemonClient(); | 126 DebugDaemonClient(); |
| 124 | 127 |
| 125 private: | 128 private: |
| 126 DISALLOW_COPY_AND_ASSIGN(DebugDaemonClient); | 129 DISALLOW_COPY_AND_ASSIGN(DebugDaemonClient); |
| 127 }; | 130 }; |
| 128 | 131 |
| 129 } // namespace chromeos | 132 } // namespace chromeos |
| 130 | 133 |
| 131 #endif // CHROMEOS_DBUS_DEBUG_DAEMON_CLIENT_H_ | 134 #endif // CHROMEOS_DBUS_DEBUG_DAEMON_CLIENT_H_ |
| OLD | NEW |