Index: chromeos/dbus/debug_daemon_client.h |
diff --git a/chromeos/dbus/debug_daemon_client.h b/chromeos/dbus/debug_daemon_client.h |
index b80ab61525e2c673cb16a4e1a395ab208e94367d..46d1c83cb86e3c6755e02a74131b178e3935f6c2 100644 |
--- a/chromeos/dbus/debug_daemon_client.h |
+++ b/chromeos/dbus/debug_daemon_client.h |
@@ -114,6 +114,9 @@ class CHROMEOS_EXPORT DebugDaemonClient |
using GetLogsCallback = |
base::Callback<void(bool succeeded, |
const std::map<std::string, std::string>& logs)>; |
+ // Callback type for GetLog(). |
+ using GetLogCallback = |
+ base::Callback<void(bool succeeded, const std::string& result)>; |
// Gets scrubbed logs from debugd. |
virtual void GetScrubbedLogs(const GetLogsCallback& callback) = 0; |
@@ -129,6 +132,10 @@ class CHROMEOS_EXPORT DebugDaemonClient |
// Gets list of user log files that must be read by Chrome. |
virtual void GetUserLogFiles(const GetLogsCallback& callback) = 0; |
+ // Gets an individual log source provided by debugd. |
+ virtual void GetLog(const std::string& log_name, |
+ const GetLogCallback& callback) = 0; |
+ |
virtual void SetStopAgentTracingTaskRunner( |
scoped_refptr<base::TaskRunner> task_runner) = 0; |