blob: 24aa8de1052eebab4e27c6479565435af24108d4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
// Copyright 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/feedback/system_logs/scrubbed_system_logs_fetcher.h"
#include "base/bind.h"
#include "base/bind_helpers.h"
#include "build/build_config.h"
#include "chrome/browser/feedback/system_logs/log_sources/chrome_internal_log_source.h"
#include "chrome/browser/feedback/system_logs/log_sources/memory_details_log_source.h"
#include "content/public/browser/browser_thread.h"
#if defined(OS_CHROMEOS)
#include "chrome/browser/chromeos/system_logs/command_line_log_source.h"
#include "chrome/browser/chromeos/system_logs/dbus_log_source.h"
#include "chrome/browser/chromeos/system_logs/debug_daemon_log_source.h"
#include "chrome/browser/chromeos/system_logs/device_event_log_source.h"
#include "chrome/browser/chromeos/system_logs/lsb_release_log_source.h"
#include "chrome/browser/chromeos/system_logs/touch_log_source.h"
#endif
using content::BrowserThread;
namespace system_logs {
ScrubbedSystemLogsFetcher::ScrubbedSystemLogsFetcher() {
data_sources_.push_back(new ChromeInternalLogSource());
data_sources_.push_back(new MemoryDetailsLogSource());
#if defined(OS_CHROMEOS)
data_sources_.push_back(new CommandLineLogSource());
data_sources_.push_back(new DBusLogSource());
data_sources_.push_back(new DeviceEventLogSource());
data_sources_.push_back(new LsbReleaseLogSource());
data_sources_.push_back(new TouchLogSource());
// Debug Daemon data source - currently only this data source supports
// the scrub_data parameter.
const bool scrub_data = true;
data_sources_.push_back(new DebugDaemonLogSource(scrub_data));
#endif
num_pending_requests_ = data_sources_.size();
}
ScrubbedSystemLogsFetcher::~ScrubbedSystemLogsFetcher() {
}
} // namespace system_logs
|