diff options
author | hshi@chromium.org <hshi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-07-31 22:56:56 +0000 |
---|---|---|
committer | hshi@chromium.org <hshi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-07-31 22:56:56 +0000 |
commit | 48080fd30160be4918476b4533f0c1bb19637b65 (patch) | |
tree | d821838406fa472f6c04df0155bab3025fb54ded /chromeos/dbus/debug_daemon_client.h | |
parent | 97948f9d4224765c7d72ff09474cfa65ddd76a38 (diff) | |
download | chromium_src-48080fd30160be4918476b4533f0c1bb19637b65.zip chromium_src-48080fd30160be4918476b4533f0c1bb19637b65.tar.gz chromium_src-48080fd30160be4918476b4533f0c1bb19637b65.tar.bz2 |
debugd: Add GetNetworkInterfaces functionality.
BUG=139442
TEST=CQ
Review URL: https://chromiumcodereview.appspot.com/10831059
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@149304 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chromeos/dbus/debug_daemon_client.h')
-rw-r--r-- | chromeos/dbus/debug_daemon_client.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/chromeos/dbus/debug_daemon_client.h b/chromeos/dbus/debug_daemon_client.h index 2cc7fc2..07e52ba 100644 --- a/chromeos/dbus/debug_daemon_client.h +++ b/chromeos/dbus/debug_daemon_client.h @@ -43,22 +43,39 @@ class CHROMEOS_EXPORT DebugDaemonClient { virtual void SetDebugMode(const std::string& subsystem, const SetDebugModeCallback& callback) = 0; + // Called once GetRoutes() is complete. typedef base::Callback<void(bool succeeded, const std::vector<std::string>& routes)> GetRoutesCallback; virtual void GetRoutes(bool numeric, bool ipv6, const GetRoutesCallback& callback) = 0; + // Called once GetNetworkStatus() is complete. typedef base::Callback<void(bool succeeded, const std::string& status)> GetNetworkStatusCallback; + // Gets information about network status as json. virtual void GetNetworkStatus(const GetNetworkStatusCallback& callback) = 0; + // Called once GetModemStatus() is complete. typedef base::Callback<void(bool succeeded, const std::string& status)> GetModemStatusCallback; + // Gets information about modem status as json. virtual void GetModemStatus(const GetModemStatusCallback& callback) = 0; + // Called once GetNetworkInterfaces() is complete. Takes two parameters: + // - succeeded: information was obtained successfully. + // - status: network interfaces information in json. For details, please refer + // to http://gerrit.chromium.org/gerrit/#/c/28045/5/src/helpers/netif.cc + typedef base::Callback<void(bool succeeded, const std::string& status)> + GetNetworkInterfacesCallback; + + // Gets information about network interfaces as json. + virtual void GetNetworkInterfaces( + const GetNetworkInterfacesCallback& callback) = 0; + + // Called once GetAllLogs() is complete. typedef base::Callback<void(bool succeeded, const std::map<std::string, std::string>& logs)> GetAllLogsCallback; |