| 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 "chrome/browser/feedback/system_logs/system_logs_fetcher.h" | 11 #include "base/memory/weak_ptr.h" |
| 12 #include "chrome/browser/feedback/system_logs/system_logs_source.h" |
| 12 | 13 |
| 13 namespace system_logs { | 14 namespace system_logs { |
| 14 | 15 |
| 15 // Gathers log data from a single debugd log source, via DebugDaemonClient. | 16 // Gathers log data from a single debugd log source, via DebugDaemonClient. |
| 16 class SingleDebugDaemonLogSource : public SystemLogsSource { | 17 class SingleDebugDaemonLogSource : public SystemLogsSource { |
| 17 public: | 18 public: |
| 18 enum class SupportedSource { | 19 enum class SupportedSource { |
| 19 // For "modetest" command. | 20 // For "modetest" command. |
| 20 kModetest, | 21 kModetest, |
| 21 | 22 |
| (...skipping 15 matching lines...) Expand all Loading... |
| 37 const std::string& result) const; | 38 const std::string& result) const; |
| 38 | 39 |
| 39 base::WeakPtrFactory<SingleDebugDaemonLogSource> weak_ptr_factory_; | 40 base::WeakPtrFactory<SingleDebugDaemonLogSource> weak_ptr_factory_; |
| 40 | 41 |
| 41 DISALLOW_COPY_AND_ASSIGN(SingleDebugDaemonLogSource); | 42 DISALLOW_COPY_AND_ASSIGN(SingleDebugDaemonLogSource); |
| 42 }; | 43 }; |
| 43 | 44 |
| 44 } // namespace system_logs | 45 } // namespace system_logs |
| 45 | 46 |
| 46 #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 |