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

Unified Diff: chromeos/dbus/debug_daemon_client.h

Issue 10831059: debugd: Add GetNetworkInterfaces functionality. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add pointer to the documentation of the GetNetworkInterface json format. Created 8 years, 5 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 2cc7fc230ff08337217a7f1e8e5e57072a4b095b..07e52ba0b7b3ba6b031f1034da7c759dc34b90ec 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;
« 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