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

Side by Side Diff: chromeos/dbus/debug_daemon_client.h

Issue 11026008: Adding GetFeedbackLogs call to DebugDaemon Dbus client. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 2 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 unified diff | Download patch
OLDNEW
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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 // Gets information about network interfaces as json. 74 // Gets information about network interfaces as json.
75 virtual void GetNetworkInterfaces( 75 virtual void GetNetworkInterfaces(
76 const GetNetworkInterfacesCallback& callback) = 0; 76 const GetNetworkInterfacesCallback& callback) = 0;
77 77
78 // Called once GetAllLogs() is complete. 78 // Called once GetAllLogs() is complete.
79 typedef base::Callback<void(bool succeeded, 79 typedef base::Callback<void(bool succeeded,
80 const std::map<std::string, std::string>& logs)> 80 const std::map<std::string, std::string>& logs)>
81 GetAllLogsCallback; 81 GetAllLogsCallback;
82 virtual void GetAllLogs(const GetAllLogsCallback& callback) = 0; 82 virtual void GetAllLogs(const GetAllLogsCallback& callback) = 0;
83 83
84 // Same output format as GetAllLogs just that it returns logs for feedback.
85 virtual void GetFeedbackLogs(const GetAllLogsCallback& callback) = 0;
86
84 // Requests to start system/kernel tracing. 87 // Requests to start system/kernel tracing.
85 virtual void StartSystemTracing() = 0; 88 virtual void StartSystemTracing() = 0;
86 89
87 // Called once RequestStopSystemTracing() is complete. Takes one parameter: 90 // Called once RequestStopSystemTracing() is complete. Takes one parameter:
88 // - result: the data collected while tracing was active 91 // - result: the data collected while tracing was active
89 typedef base::Callback<void(const scoped_refptr<base::RefCountedString>& 92 typedef base::Callback<void(const scoped_refptr<base::RefCountedString>&
90 result)> StopSystemTracingCallback; 93 result)> StopSystemTracingCallback;
91 94
92 // Requests to stop system tracing and calls |callback| when completed. 95 // Requests to stop system tracing and calls |callback| when completed.
93 virtual bool RequestStopSystemTracing(const StopSystemTracingCallback& 96 virtual bool RequestStopSystemTracing(const StopSystemTracingCallback&
(...skipping 23 matching lines...) Expand all
117 // Create() should be used instead. 120 // Create() should be used instead.
118 DebugDaemonClient(); 121 DebugDaemonClient();
119 122
120 private: 123 private:
121 DISALLOW_COPY_AND_ASSIGN(DebugDaemonClient); 124 DISALLOW_COPY_AND_ASSIGN(DebugDaemonClient);
122 }; 125 };
123 126
124 } // namespace chromeos 127 } // namespace chromeos
125 128
126 #endif // CHROMEOS_DBUS_DEBUG_DAEMON_CLIENT_H_ 129 #endif // CHROMEOS_DBUS_DEBUG_DAEMON_CLIENT_H_
OLDNEW
« no previous file with comments | « no previous file | chromeos/dbus/debug_daemon_client.cc » ('j') | chromeos/dbus/debug_daemon_client.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698