Elly Jones | 03cd6d7 | 2012-06-11 13:04:28 -0400 | [diff] [blame] | 1 | // Copyright (c) 2012 The Chromium OS Authors. All rights reserved. |
| 2 | // Use of this source code is governed by a BSD-style license that can be |
| 3 | // found in the LICENSE file. |
| 4 | |
| 5 | #ifndef LOG_TOOL_H |
| 6 | #define LOG_TOOL_H |
| 7 | |
| 8 | #include <string> |
Gaurav Shah | f6c8f2a | 2012-10-11 17:22:43 -0700 | [diff] [blame] | 9 | #include <map> |
Elly Jones | 03cd6d7 | 2012-06-11 13:04:28 -0400 | [diff] [blame] | 10 | |
| 11 | #include <base/basictypes.h> |
| 12 | #include <dbus-c++/dbus.h> |
| 13 | |
| 14 | namespace debugd { |
| 15 | |
| 16 | class LogTool { |
| 17 | public: |
| 18 | LogTool(); |
| 19 | ~LogTool(); |
| 20 | |
Elly Jones | 533c7c4 | 2012-08-10 15:07:05 -0400 | [diff] [blame] | 21 | typedef std::map<std::string, std::string> LogMap; |
| 22 | |
Elly Jones | 03cd6d7 | 2012-06-11 13:04:28 -0400 | [diff] [blame] | 23 | std::string GetLog(const std::string& name, DBus::Error& error); // NOLINT |
Elly Jones | 533c7c4 | 2012-08-10 15:07:05 -0400 | [diff] [blame] | 24 | LogMap GetAllLogs(DBus::Error& error); // NOLINT |
| 25 | LogMap GetFeedbackLogs(DBus::Error& error); // NOLINT |
Gaurav Shah | f6c8f2a | 2012-10-11 17:22:43 -0700 | [diff] [blame] | 26 | LogMap GetUserLogFiles(DBus::Error& error); // NOLINT |
Darin Petkov | ce9b3a1 | 2013-01-10 16:38:54 +0100 | [diff] [blame] | 27 | |
Elly Jones | 03cd6d7 | 2012-06-11 13:04:28 -0400 | [diff] [blame] | 28 | private: |
Darin Petkov | ce9b3a1 | 2013-01-10 16:38:54 +0100 | [diff] [blame] | 29 | friend class LogToolTest; |
| 30 | |
| 31 | void AnonymizeLogMap(LogMap* log_map); |
| 32 | |
Elly Jones | 03cd6d7 | 2012-06-11 13:04:28 -0400 | [diff] [blame] | 33 | DISALLOW_COPY_AND_ASSIGN(LogTool); |
| 34 | }; |
| 35 | |
| 36 | }; // namespace debugd |
| 37 | |
| 38 | #endif // LOG_TOOL_H |