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

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

Issue 11035014: Collect user logs that debugd can not access (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: fix indent Created 8 years, 1 month 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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 // - succeeded: information was obtained successfully. 68 // - succeeded: information was obtained successfully.
69 // - status: network interfaces information in json. For details, please refer 69 // - status: network interfaces information in json. For details, please refer
70 // to http://gerrit.chromium.org/gerrit/#/c/28045/5/src/helpers/netif.cc 70 // to http://gerrit.chromium.org/gerrit/#/c/28045/5/src/helpers/netif.cc
71 typedef base::Callback<void(bool succeeded, const std::string& status)> 71 typedef base::Callback<void(bool succeeded, const std::string& status)>
72 GetNetworkInterfacesCallback; 72 GetNetworkInterfacesCallback;
73 73
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 // Callback type for GetAllLogs() or GetUserLogFiles().
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 GetLogsCallback;
82 virtual void GetAllLogs(const GetAllLogsCallback& callback) = 0; 82
83 // Gets all logs collected by debugd.
84 virtual void GetAllLogs(const GetLogsCallback& callback) = 0;
85
86 // Gets list of user log files that must be read by Chrome.
87 virtual void GetUserLogFiles(const GetLogsCallback& callback) = 0;
83 88
84 // Requests to start system/kernel tracing. 89 // Requests to start system/kernel tracing.
85 virtual void StartSystemTracing() = 0; 90 virtual void StartSystemTracing() = 0;
86 91
87 // Called once RequestStopSystemTracing() is complete. Takes one parameter: 92 // Called once RequestStopSystemTracing() is complete. Takes one parameter:
88 // - result: the data collected while tracing was active 93 // - result: the data collected while tracing was active
89 typedef base::Callback<void(const scoped_refptr<base::RefCountedString>& 94 typedef base::Callback<void(const scoped_refptr<base::RefCountedString>&
90 result)> StopSystemTracingCallback; 95 result)> StopSystemTracingCallback;
91 96
92 // Requests to stop system tracing and calls |callback| when completed. 97 // Requests to stop system tracing and calls |callback| when completed.
(...skipping 24 matching lines...) Expand all
117 // Create() should be used instead. 122 // Create() should be used instead.
118 DebugDaemonClient(); 123 DebugDaemonClient();
119 124
120 private: 125 private:
121 DISALLOW_COPY_AND_ASSIGN(DebugDaemonClient); 126 DISALLOW_COPY_AND_ASSIGN(DebugDaemonClient);
122 }; 127 };
123 128
124 } // namespace chromeos 129 } // namespace chromeos
125 130
126 #endif // CHROMEOS_DBUS_DEBUG_DAEMON_CLIENT_H_ 131 #endif // CHROMEOS_DBUS_DEBUG_DAEMON_CLIENT_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/system_logs/system_logs_fetcher.cc ('k') | chromeos/dbus/debug_daemon_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698