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 10:56:54 +0000
committerygorshenin@chromium.org <ygorshenin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-04-12 10:56:54 +0000
commitd87d36458dbfd07bd224c033d976ea43432fb1e4 (patch)
treee5dcc6696b85295092cf1f70f0cea3a2846b95ba /chromeos/dbus/debug_daemon_client.h
parent31b51c1378aa0f8c79b43b3761aa15eec29be7e4 (diff)
downloadchromium_src-d87d36458dbfd07bd224c033d976ea43432fb1e4.zip
chromium_src-d87d36458dbfd07bd224c033d976ea43432fb1e4.tar.gz
chromium_src-d87d36458dbfd07bd224c033d976ea43432fb1e4.tar.bz2
Added "Store Debug Logs" functionality. Logs from /var/log are gzipped
and stored on the fileshelf. BUG=chromium-os:25700 TEST= Review URL: http://codereview.chromium.org/9965072 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@131963 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;