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

Unified Diff: chromeos/dbus/debug_daemon_client.h

Issue 10829396: debugd: Add TestICMP functionality. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: |host| -> |ip_address|; fix nits. Created 8 years, 4 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 07e52ba0b7b3ba6b031f1034da7c759dc34b90ec..81593544430e27183ebc9dc240e4b97f44be9272 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,
« 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