Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(9)

Unified Diff: chromeos/dbus/debug_daemon_client.h

Issue 2944403002: Add GetLog method call to DebugDaemonClient (Closed)
Patch Set: Use separate callback type with string parameter Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chromeos/dbus/debug_daemon_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « no previous file | chromeos/dbus/debug_daemon_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698