Elly Jones | 15fc20f | 2012-02-09 14:29:06 -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_MODE_TOOL_H_ |
6 | #define DEBUGD_SRC_DEBUG_MODE_TOOL_H_ | ||||
Elly Jones | 15fc20f | 2012-02-09 14:29:06 -0500 | [diff] [blame] | 7 | |
8 | #include <string> | ||||
Yuri Gorshenin | c18dee3 | 2012-08-16 23:03:46 +0400 | [diff] [blame] | 9 | #include <vector> |
Elly Jones | 15fc20f | 2012-02-09 14:29:06 -0500 | [diff] [blame] | 10 | |
Ben Chan | 657bed8 | 2014-09-02 20:40:51 -0700 | [diff] [blame] | 11 | #include <base/macros.h> |
Eric Caruso | cc7106c | 2017-04-27 14:22:42 -0700 | [diff] [blame] | 12 | #include <base/memory/ref_counted.h> |
13 | #include <dbus/bus.h> | ||||
Elly Jones | 15fc20f | 2012-02-09 14:29:06 -0500 | [diff] [blame] | 14 | |
15 | namespace debugd { | ||||
16 | |||||
17 | class DebugModeTool { | ||||
18 | public: | ||||
Eric Caruso | cc7106c | 2017-04-27 14:22:42 -0700 | [diff] [blame] | 19 | explicit DebugModeTool(scoped_refptr<dbus::Bus> bus); |
Ben Chan | 78f8953 | 2014-08-29 09:35:09 -0700 | [diff] [blame] | 20 | virtual ~DebugModeTool() = default; |
Elly Jones | 15fc20f | 2012-02-09 14:29:06 -0500 | [diff] [blame] | 21 | |
Eric Caruso | c93a15c | 2017-04-24 16:15:12 -0700 | [diff] [blame] | 22 | virtual void SetDebugMode(const std::string& subsystem); |
Yuri Gorshenin | c18dee3 | 2012-08-16 23:03:46 +0400 | [diff] [blame] | 23 | |
Elly Jones | 15fc20f | 2012-02-09 14:29:06 -0500 | [diff] [blame] | 24 | private: |
Ben Chan | 6f2ec9b | 2019-05-01 16:13:16 -0700 | [diff] [blame^] | 25 | void SetModemManagerLogging(const std::string& level); |
Yuri Gorshenin | c18dee3 | 2012-08-16 23:03:46 +0400 | [diff] [blame] | 26 | |
Eric Caruso | cc7106c | 2017-04-27 14:22:42 -0700 | [diff] [blame] | 27 | scoped_refptr<dbus::Bus> bus_; |
Ben Chan | 4b11012 | 2014-08-29 08:22:59 -0700 | [diff] [blame] | 28 | |
Elly Jones | 15fc20f | 2012-02-09 14:29:06 -0500 | [diff] [blame] | 29 | DISALLOW_COPY_AND_ASSIGN(DebugModeTool); |
30 | }; | ||||
31 | |||||
Ben Chan | a0011d8 | 2014-05-13 00:19:29 -0700 | [diff] [blame] | 32 | } // namespace debugd |
Elly Jones | 15fc20f | 2012-02-09 14:29:06 -0500 | [diff] [blame] | 33 | |
Alex Vakulenko | 262be3f | 2014-07-30 15:25:50 -0700 | [diff] [blame] | 34 | #endif // DEBUGD_SRC_DEBUG_MODE_TOOL_H_ |