Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(165)

Side by Side Diff: chrome/browser/chromeos/system_logs/user_log_source.h

Issue 11035014: Collect user logs that debugd can not access (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698