summaryrefslogtreecommitdiffstats
path: root/chromeos/dbus/debug_daemon_client.h
diff options
context:
space:
mode:
authorygorshenin@chromium.org <ygorshenin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-04-12 15:35:03 +0000
committerygorshenin@chromium.org <ygorshenin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-04-12 15:35:03 +0000
commit395a03967310f3a869c6d2e486cdd73677e7ab69 (patch)
treef5de9386234f42f039169cc2c62118d0b668bd80 /chromeos/dbus/debug_daemon_client.h
parent283794fa145a785af7dc74020ff66cdc1552239a (diff)
downloadchromium_src-395a03967310f3a869c6d2e486cdd73677e7ab69.zip
chromium_src-395a03967310f3a869c6d2e486cdd73677e7ab69.tar.gz
chromium_src-395a03967310f3a869c6d2e486cdd73677e7ab69.tar.bz2
Added "Store Debug Logs" functionality. Logs from /var/log are gzipped
and stored on the fileshelf. BUG=chromium-os:25700 TEST= Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=131963 Review URL: http://codereview.chromium.org/9965072 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@131988 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chromeos/dbus/debug_daemon_client.h')
-rw-r--r--chromeos/dbus/debug_daemon_client.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/chromeos/dbus/debug_daemon_client.h b/chromeos/dbus/debug_daemon_client.h
index 38e4015..cc91a94 100644
--- a/chromeos/dbus/debug_daemon_client.h
+++ b/chromeos/dbus/debug_daemon_client.h
@@ -6,6 +6,7 @@
#define CHROMEOS_DBUS_DEBUG_DAEMON_CLIENT_H_
#include "base/callback.h"
+#include "base/platform_file.h"
#include "base/memory/ref_counted_memory.h"
#include "chromeos/chromeos_export.h"
#include "chromeos/dbus/dbus_client_implementation_type.h"
@@ -21,6 +22,15 @@ class CHROMEOS_EXPORT DebugDaemonClient {
public:
virtual ~DebugDaemonClient();
+ // Called once GetDebugLogs() is complete. Takes one parameter:
+ // - succeeded: was the logs stored successfully.
+ typedef base::Callback<void(bool succeeded)> GetDebugLogsCallback;
+
+ // Requests to store debug logs into |file| and calls |callback|
+ // when completed. Debug logs will be stored in the .tgz format.
+ virtual void GetDebugLogs(base::PlatformFile file,
+ const GetDebugLogsCallback& callback) = 0;
+
// Requests to start system/kernel tracing.
virtual void StartSystemTracing() = 0;