OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CHROMEOS_DBUS_DEBUG_DAEMON_CLIENT_H_ | 5 #ifndef CHROMEOS_DBUS_DEBUG_DAEMON_CLIENT_H_ |
6 #define CHROMEOS_DBUS_DEBUG_DAEMON_CLIENT_H_ | 6 #define CHROMEOS_DBUS_DEBUG_DAEMON_CLIENT_H_ |
7 | 7 |
8 #include "base/callback.h" | 8 #include "base/callback.h" |
9 #include "base/platform_file.h" | 9 #include "base/platform_file.h" |
10 #include "base/memory/ref_counted_memory.h" | 10 #include "base/memory/ref_counted_memory.h" |
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
120 // For details please refer to | 120 // For details please refer to |
121 // https://gerrit.chromium.org/gerrit/#/c/30310/2/src/helpers/icmp.cc | 121 // https://gerrit.chromium.org/gerrit/#/c/30310/2/src/helpers/icmp.cc |
122 typedef base::Callback<void(bool succeeded, const std::string& status)> | 122 typedef base::Callback<void(bool succeeded, const std::string& status)> |
123 TestICMPCallback; | 123 TestICMPCallback; |
124 | 124 |
125 // Tests ICMP connectivity to a specified host. The |ip_address| contains the | 125 // Tests ICMP connectivity to a specified host. The |ip_address| contains the |
126 // IPv4 or IPv6 address of the host, for example "8.8.8.8". | 126 // IPv4 or IPv6 address of the host, for example "8.8.8.8". |
127 virtual void TestICMP(const std::string& ip_address, | 127 virtual void TestICMP(const std::string& ip_address, |
128 const TestICMPCallback& callback) = 0; | 128 const TestICMPCallback& callback) = 0; |
129 | 129 |
| 130 // Tests ICMP connectivity to a specified host. The |ip_address| contains the |
| 131 // IPv4 or IPv6 address of the host, for example "8.8.8.8". |
| 132 virtual void TestICMPWithOptions( |
| 133 const std::string& ip_address, |
| 134 const std::map<std::string, std::string>& options, |
| 135 const TestICMPCallback& callback) = 0; |
| 136 |
130 // Factory function, creates a new instance and returns ownership. | 137 // Factory function, creates a new instance and returns ownership. |
131 // For normal usage, access the singleton via DBusThreadManager::Get(). | 138 // For normal usage, access the singleton via DBusThreadManager::Get(). |
132 static DebugDaemonClient* Create(DBusClientImplementationType type, | 139 static DebugDaemonClient* Create(DBusClientImplementationType type, |
133 dbus::Bus* bus); | 140 dbus::Bus* bus); |
134 protected: | 141 protected: |
135 // Create() should be used instead. | 142 // Create() should be used instead. |
136 DebugDaemonClient(); | 143 DebugDaemonClient(); |
137 | 144 |
138 private: | 145 private: |
139 DISALLOW_COPY_AND_ASSIGN(DebugDaemonClient); | 146 DISALLOW_COPY_AND_ASSIGN(DebugDaemonClient); |
140 }; | 147 }; |
141 | 148 |
142 } // namespace chromeos | 149 } // namespace chromeos |
143 | 150 |
144 #endif // CHROMEOS_DBUS_DEBUG_DAEMON_CLIENT_H_ | 151 #endif // CHROMEOS_DBUS_DEBUG_DAEMON_CLIENT_H_ |
OLD | NEW |