summaryrefslogtreecommitdiffstats
path: root/chromeos/dbus/debug_daemon_client.h
diff options
context:
space:
mode:
authorhshi@chromium.org <hshi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-08-17 22:35:40 +0000
committerhshi@chromium.org <hshi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-08-17 22:35:40 +0000
commit0e88913728014a31dddfcbc6e7224cd8b90d9518 (patch)
tree05e09ba2eb6d7b1412abef48989c8709b530fa50 /chromeos/dbus/debug_daemon_client.h
parent15d206e1f9190d5af38b86d361ff0fb00f44b8bb (diff)
downloadchromium_src-0e88913728014a31dddfcbc6e7224cd8b90d9518.zip
chromium_src-0e88913728014a31dddfcbc6e7224cd8b90d9518.tar.gz
chromium_src-0e88913728014a31dddfcbc6e7224cd8b90d9518.tar.bz2
debugd: Add TestICMP functionality.
BUG=139442 TEST=CQ Review URL: https://chromiumcodereview.appspot.com/10829396 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@152168 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chromeos/dbus/debug_daemon_client.h')
-rw-r--r--chromeos/dbus/debug_daemon_client.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/chromeos/dbus/debug_daemon_client.h b/chromeos/dbus/debug_daemon_client.h
index 07e52ba..8159354 100644
--- a/chromeos/dbus/debug_daemon_client.h
+++ b/chromeos/dbus/debug_daemon_client.h
@@ -96,6 +96,19 @@ class CHROMEOS_EXPORT DebugDaemonClient {
// Returns an empty SystemTracingCallback that does nothing.
static StopSystemTracingCallback EmptyStopSystemTracingCallback();
+ // Called once TestICMP() is complete. Takes two parameters:
+ // - succeeded: information was obtained successfully.
+ // - status: information about ICMP connectivity to a specified host as json.
+ // For details please refer to
+ // https://gerrit.chromium.org/gerrit/#/c/30310/2/src/helpers/icmp.cc
+ typedef base::Callback<void(bool succeeded, const std::string& status)>
+ TestICMPCallback;
+
+ // Tests ICMP connectivity to a specified host. The |ip_address| contains the
+ // IPv4 or IPv6 address of the host, for example "8.8.8.8".
+ virtual void TestICMP(const std::string& ip_address,
+ const TestICMPCallback& callback) = 0;
+
// Factory function, creates a new instance and returns ownership.
// For normal usage, access the singleton via DBusThreadManager::Get().
static DebugDaemonClient* Create(DBusClientImplementationType type,