Elly Jones | 0b6bd18 | 2012-02-14 18:24:22 -0500 | [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 | |
Alex Vakulenko | 262be3f | 2014-07-30 15:25:50 -0700 | [diff] [blame] | 5 | #ifndef DEBUGD_SRC_DEBUG_LOGS_TOOL_H_ |
| 6 | #define DEBUGD_SRC_DEBUG_LOGS_TOOL_H_ |
Elly Jones | 0b6bd18 | 2012-02-14 18:24:22 -0500 | [diff] [blame] | 7 | |
Eric Caruso | 0b24188 | 2018-04-04 13:43:46 -0700 | [diff] [blame] | 8 | #include <base/files/scoped_file.h> |
Ben Chan | 657bed8 | 2014-09-02 20:40:51 -0700 | [diff] [blame] | 9 | #include <base/macros.h> |
Brian Norris | ca4fc04 | 2018-04-03 00:24:26 -0700 | [diff] [blame] | 10 | #include <dbus/bus.h> |
Elly Jones | 0b6bd18 | 2012-02-14 18:24:22 -0500 | [diff] [blame] | 11 | |
| 12 | namespace debugd { |
| 13 | |
| 14 | class DebugLogsTool { |
| 15 | public: |
Brian Norris | ca4fc04 | 2018-04-03 00:24:26 -0700 | [diff] [blame] | 16 | explicit DebugLogsTool(scoped_refptr<dbus::Bus> bus) : bus_(bus) {} |
Ben Chan | 78f8953 | 2014-08-29 09:35:09 -0700 | [diff] [blame] | 17 | ~DebugLogsTool() = default; |
Elly Jones | 0b6bd18 | 2012-02-14 18:24:22 -0500 | [diff] [blame] | 18 | |
Tom Hughes | d6c2d39 | 2020-08-24 18:12:11 -0700 | [diff] [blame] | 19 | void GetDebugLogs(bool is_compressed, const base::ScopedFD& fd); |
Ben Chan | a0011d8 | 2014-05-13 00:19:29 -0700 | [diff] [blame] | 20 | |
Elly Jones | 0b6bd18 | 2012-02-14 18:24:22 -0500 | [diff] [blame] | 21 | private: |
Brian Norris | ca4fc04 | 2018-04-03 00:24:26 -0700 | [diff] [blame] | 22 | scoped_refptr<dbus::Bus> bus_; |
| 23 | |
Elly Jones | 0b6bd18 | 2012-02-14 18:24:22 -0500 | [diff] [blame] | 24 | DISALLOW_COPY_AND_ASSIGN(DebugLogsTool); |
| 25 | }; |
| 26 | |
Ben Chan | a0011d8 | 2014-05-13 00:19:29 -0700 | [diff] [blame] | 27 | } // namespace debugd |
Elly Jones | 0b6bd18 | 2012-02-14 18:24:22 -0500 | [diff] [blame] | 28 | |
Alex Vakulenko | 262be3f | 2014-07-30 15:25:50 -0700 | [diff] [blame] | 29 | #endif // DEBUGD_SRC_DEBUG_LOGS_TOOL_H_ |