OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2012 The Chromium 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 CHROME_BROWSER_CHROMEOS_SYSTEM_LOGS_USER_LOG_SOURCE_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_SYSTEM_LOGS_USER_LOG_SOURCE_H_ |
| 7 |
| 8 #include "chrome/browser/chromeos/system_logs/system_logs_fetcher.h" |
| 9 |
| 10 namespace chromeos { |
| 11 |
| 12 // This class gathers user log data stored inside the user's cryptohome. |
| 13 // This is not accessible to the debug daemon (which because of VFS namespacing |
| 14 // doesn't get to see the later cryptohome mounts). |
| 15 class UserLogSource : public SystemLogsSource { |
| 16 public: |
| 17 UserLogSource() {} |
| 18 virtual ~UserLogSource() {} |
| 19 |
| 20 // SystemLogsSource override. |
| 21 virtual void Fetch(const SysLogsSourceCallback& callback) OVERRIDE; |
| 22 |
| 23 private: |
| 24 // Gets all the user logs and puts them into the response. |
| 25 static void ReadUserLogs(SystemLogsResponse* response); |
| 26 |
| 27 DISALLOW_COPY_AND_ASSIGN(UserLogSource); |
| 28 }; |
| 29 |
| 30 } // namespace chromeos |
| 31 |
| 32 #endif // CHROME_BROWSER_CHROMEOS_SYSTEM_LOGS_USER_LOG_SOURCE_H_ |
OLD | NEW |