| 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 CHROME_BROWSER_CHROMEOS_DBUS_DEBUG_DAEMON_CLIENT_H_ | 5 #ifndef CHROMEOS_DBUS_DEBUG_DAEMON_CLIENT_H_ |
| 6 #define CHROME_BROWSER_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 "chrome/browser/chromeos/dbus/dbus_client_implementation_type.h" | 10 #include "chromeos/chromeos_export.h" |
| 11 #include "chromeos/dbus/dbus_client_implementation_type.h" |
| 11 | 12 |
| 12 namespace dbus { | 13 namespace dbus { |
| 13 class Bus; | 14 class Bus; |
| 14 } // namespace dbus | 15 } // namespace dbus |
| 15 | 16 |
| 16 namespace chromeos { | 17 namespace chromeos { |
| 17 | 18 |
| 18 // DebugDaemonClient is used to communicate with the debug daemon. | 19 // DebugDaemonClient is used to communicate with the debug daemon. |
| 19 class DebugDaemonClient { | 20 class CHROMEOS_EXPORT DebugDaemonClient { |
| 20 public: | 21 public: |
| 21 virtual ~DebugDaemonClient(); | 22 virtual ~DebugDaemonClient(); |
| 22 | 23 |
| 23 // Requests to start system/kernel tracing. | 24 // Requests to start system/kernel tracing. |
| 24 virtual void StartSystemTracing() = 0; | 25 virtual void StartSystemTracing() = 0; |
| 25 | 26 |
| 26 // Called once RequestStopSystemTracing() is complete. Takes one parameter: | 27 // Called once RequestStopSystemTracing() is complete. Takes one parameter: |
| 27 // - result: the data collected while tracing was active | 28 // - result: the data collected while tracing was active |
| 28 typedef base::Callback<void(const scoped_refptr<base::RefCountedString>& | 29 typedef base::Callback<void(const scoped_refptr<base::RefCountedString>& |
| 29 result)> StopSystemTracingCallback; | 30 result)> StopSystemTracingCallback; |
| (...skipping 12 matching lines...) Expand all Loading... |
| 42 protected: | 43 protected: |
| 43 // Create() should be used instead. | 44 // Create() should be used instead. |
| 44 DebugDaemonClient(); | 45 DebugDaemonClient(); |
| 45 | 46 |
| 46 private: | 47 private: |
| 47 DISALLOW_COPY_AND_ASSIGN(DebugDaemonClient); | 48 DISALLOW_COPY_AND_ASSIGN(DebugDaemonClient); |
| 48 }; | 49 }; |
| 49 | 50 |
| 50 } // namespace chromeos | 51 } // namespace chromeos |
| 51 | 52 |
| 52 #endif // CHROME_BROWSER_CHROMEOS_DBUS_DEBUG_DAEMON_CLIENT_H_ | 53 #endif // CHROMEOS_DBUS_DEBUG_DAEMON_CLIENT_H_ |
| OLD | NEW |