diff options
author | ygorshenin@chromium.org <ygorshenin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-04-13 09:19:52 +0000 |
---|---|---|
committer | ygorshenin@chromium.org <ygorshenin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-04-13 09:19:52 +0000 |
commit | 37ce3b0ef4e43d21abeaa2c12c9b8044fab51681 (patch) | |
tree | 2f40e1d030a1d3f01bf539b04700ba3e8aac911c /chromeos/dbus/debug_daemon_client.h | |
parent | df0211a7dd85ada61c4bfa60228e100d6535e37b (diff) | |
download | chromium_src-37ce3b0ef4e43d21abeaa2c12c9b8044fab51681.zip chromium_src-37ce3b0ef4e43d21abeaa2c12c9b8044fab51681.tar.gz chromium_src-37ce3b0ef4e43d21abeaa2c12c9b8044fab51681.tar.bz2 |
Added functionality to chrome://net-internals/#chromeos page that user
is able to change network debugging mode without going to crosh.
BUG=chromium-os:25701
TEST=Manual testing on Alex device.
Review URL: http://codereview.chromium.org/10024056
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@132163 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chromeos/dbus/debug_daemon_client.h')
-rw-r--r-- | chromeos/dbus/debug_daemon_client.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/chromeos/dbus/debug_daemon_client.h b/chromeos/dbus/debug_daemon_client.h index cc91a94..637e2a3 100644 --- a/chromeos/dbus/debug_daemon_client.h +++ b/chromeos/dbus/debug_daemon_client.h @@ -31,6 +31,16 @@ class CHROMEOS_EXPORT DebugDaemonClient { virtual void GetDebugLogs(base::PlatformFile file, const GetDebugLogsCallback& callback) = 0; + // Called once SetDebugMode() is complete. Takes one parameter: + // - succeeded: debug mode was changed successfully. + typedef base::Callback<void(bool succeeded)> SetDebugModeCallback; + + // Requests to change debug mode to given |subsystem| and calls + // |callback| when completed. |subsystem| should be one of the + // following: "wifi", "ethernet", "cellular" or "none". + virtual void SetDebugMode(const std::string& subsystem, + const SetDebugModeCallback& callback) = 0; + // Requests to start system/kernel tracing. virtual void StartSystemTracing() = 0; |