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