OLD | NEW |
1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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 CHROME_BROWSER_CHROMEOS_SYSTEM_LOGS_SINGLE_DEBUG_DAEMON_LOG_SOURCE_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_SYSTEM_LOGS_SINGLE_DEBUG_DAEMON_LOG_SOURCE_H_ |
6 #define CHROME_BROWSER_CHROMEOS_SYSTEM_LOGS_SINGLE_DEBUG_DAEMON_LOG_SOURCE_H_ | 6 #define CHROME_BROWSER_CHROMEOS_SYSTEM_LOGS_SINGLE_DEBUG_DAEMON_LOG_SOURCE_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
11 #include "base/memory/weak_ptr.h" | 11 #include "base/memory/weak_ptr.h" |
12 #include "chrome/browser/feedback/system_logs/system_logs_source.h" | 12 #include "components/feedback/system_logs/system_logs_source.h" |
13 | 13 |
14 namespace system_logs { | 14 namespace system_logs { |
15 | 15 |
16 // Gathers log data from a single debugd log source, via DebugDaemonClient. | 16 // Gathers log data from a single debugd log source, via DebugDaemonClient. |
17 class SingleDebugDaemonLogSource : public SystemLogsSource { | 17 class SingleDebugDaemonLogSource : public SystemLogsSource { |
18 public: | 18 public: |
19 enum class SupportedSource { | 19 enum class SupportedSource { |
20 // For "modetest" command. | 20 // For "modetest" command. |
21 kModetest, | 21 kModetest, |
22 | 22 |
(...skipping 15 matching lines...) Expand all Loading... |
38 const std::string& result) const; | 38 const std::string& result) const; |
39 | 39 |
40 base::WeakPtrFactory<SingleDebugDaemonLogSource> weak_ptr_factory_; | 40 base::WeakPtrFactory<SingleDebugDaemonLogSource> weak_ptr_factory_; |
41 | 41 |
42 DISALLOW_COPY_AND_ASSIGN(SingleDebugDaemonLogSource); | 42 DISALLOW_COPY_AND_ASSIGN(SingleDebugDaemonLogSource); |
43 }; | 43 }; |
44 | 44 |
45 } // namespace system_logs | 45 } // namespace system_logs |
46 | 46 |
47 #endif // CHROME_BROWSER_CHROMEOS_SYSTEM_LOGS_SINGLE_DEBUG_DAEMON_LOG_SOURCE_H_ | 47 #endif // CHROME_BROWSER_CHROMEOS_SYSTEM_LOGS_SINGLE_DEBUG_DAEMON_LOG_SOURCE_H_ |
OLD | NEW |