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

Unified Diff: chrome/browser/chromeos/system_logs/debug_daemon_log_source.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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/chromeos/system_logs/debug_daemon_log_source.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/system_logs/debug_daemon_log_source.h
diff --git a/chrome/browser/chromeos/system_logs/debug_daemon_log_source.h b/chrome/browser/chromeos/system_logs/debug_daemon_log_source.h
index dd483d5ca04d010b79fc616879d1bf93b86d1e5f..1e5195860563d13286b8d86d1a6da554a7739396 100644
--- a/chrome/browser/chromeos/system_logs/debug_daemon_log_source.h
+++ b/chrome/browser/chromeos/system_logs/debug_daemon_log_source.h
@@ -27,12 +27,21 @@ class DebugDaemonLogSource : public SystemLogsSource {
virtual void Fetch(const SysLogsSourceCallback& callback) OVERRIDE;
private:
- // Callbacks for the 4 different dbus calls
+ typedef std::map<std::string, std::string> KeyValueMap;
+
+ // Callbacks for the 5 different dbus calls to debugd.
void OnGetRoutes(bool succeeded, const std::vector<std::string>& routes);
void OnGetNetworkStatus(bool succeeded, const std::string& status);
void OnGetModemStatus(bool succeeded, const std::string& status);
void OnGetLogs(bool succeeded,
- const std::map<std::string, std::string>& logs);
+ const KeyValueMap& logs);
+ void OnGetUserLogFiles(bool succeeded,
+ const KeyValueMap& logs);
+
+ // Read the contents of the specified user logs files and adds it to
+ // the response.
+ void ReadUserLogFiles(const KeyValueMap& user_log_files);
+
// Sends the data to the callback_ when all the requests are completed
void RequestCompleted();
« no previous file with comments | « no previous file | chrome/browser/chromeos/system_logs/debug_daemon_log_source.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698