| 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/memory/ref_counted_memory.h" | 9 #include "base/memory/ref_counted_memory.h" |
| 10 #include "base/platform_file.h" | 10 #include "base/platform_file.h" |
| (...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 133 virtual void TestICMP(const std::string& ip_address, | 133 virtual void TestICMP(const std::string& ip_address, |
| 134 const TestICMPCallback& callback) = 0; | 134 const TestICMPCallback& callback) = 0; |
| 135 | 135 |
| 136 // Tests ICMP connectivity to a specified host. The |ip_address| contains the | 136 // Tests ICMP connectivity to a specified host. The |ip_address| contains the |
| 137 // IPv4 or IPv6 address of the host, for example "8.8.8.8". | 137 // IPv4 or IPv6 address of the host, for example "8.8.8.8". |
| 138 virtual void TestICMPWithOptions( | 138 virtual void TestICMPWithOptions( |
| 139 const std::string& ip_address, | 139 const std::string& ip_address, |
| 140 const std::map<std::string, std::string>& options, | 140 const std::map<std::string, std::string>& options, |
| 141 const TestICMPCallback& callback) = 0; | 141 const TestICMPCallback& callback) = 0; |
| 142 | 142 |
| 143 // Trigger uploading of crashes. |
| 144 virtual void UploadCrashes() = 0; |
| 145 |
| 143 // Factory function, creates a new instance and returns ownership. | 146 // Factory function, creates a new instance and returns ownership. |
| 144 // For normal usage, access the singleton via DBusThreadManager::Get(). | 147 // For normal usage, access the singleton via DBusThreadManager::Get(). |
| 145 static DebugDaemonClient* Create(); | 148 static DebugDaemonClient* Create(); |
| 146 | 149 |
| 147 protected: | 150 protected: |
| 148 // Create() should be used instead. | 151 // Create() should be used instead. |
| 149 DebugDaemonClient(); | 152 DebugDaemonClient(); |
| 150 | 153 |
| 151 private: | 154 private: |
| 152 DISALLOW_COPY_AND_ASSIGN(DebugDaemonClient); | 155 DISALLOW_COPY_AND_ASSIGN(DebugDaemonClient); |
| 153 }; | 156 }; |
| 154 | 157 |
| 155 } // namespace chromeos | 158 } // namespace chromeos |
| 156 | 159 |
| 157 #endif // CHROMEOS_DBUS_DEBUG_DAEMON_CLIENT_H_ | 160 #endif // CHROMEOS_DBUS_DEBUG_DAEMON_CLIENT_H_ |
| OLD | NEW |