| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 #include "chrome/browser/feedback/system_logs/about_system_logs_fetcher.h" | 5 #include "chrome/browser/feedback/system_logs/about_system_logs_fetcher.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/bind_helpers.h" | 8 #include "base/bind_helpers.h" |
| 9 #include "chrome/browser/feedback/system_logs/log_sources/chrome_internal_log_so
urce.h" | 9 #include "chrome/browser/feedback/system_logs/log_sources/chrome_internal_log_so
urce.h" |
| 10 #include "chrome/browser/feedback/system_logs/log_sources/memory_details_log_sou
rce.h" | 10 #include "chrome/browser/feedback/system_logs/log_sources/memory_details_log_sou
rce.h" |
| 11 #include "content/public/browser/browser_thread.h" | 11 #include "content/public/browser/browser_thread.h" |
| 12 | 12 |
| 13 #if defined(OS_CHROMEOS) | 13 #if defined(OS_CHROMEOS) |
| 14 #include "chrome/browser/chromeos/system_logs/command_line_log_source.h" | 14 #include "chrome/browser/chromeos/system_logs/command_line_log_source.h" |
| 15 #include "chrome/browser/chromeos/system_logs/dbus_log_source.h" | 15 #include "chrome/browser/chromeos/system_logs/dbus_log_source.h" |
| 16 #include "chrome/browser/chromeos/system_logs/debug_daemon_log_source.h" | 16 #include "chrome/browser/chromeos/system_logs/debug_daemon_log_source.h" |
| 17 #include "chrome/browser/chromeos/system_logs/device_event_log_source.h" |
| 17 #include "chrome/browser/chromeos/system_logs/lsb_release_log_source.h" | 18 #include "chrome/browser/chromeos/system_logs/lsb_release_log_source.h" |
| 18 #include "chrome/browser/chromeos/system_logs/network_event_log_source.h" | |
| 19 #include "chrome/browser/chromeos/system_logs/touch_log_source.h" | 19 #include "chrome/browser/chromeos/system_logs/touch_log_source.h" |
| 20 #endif | 20 #endif |
| 21 | 21 |
| 22 using content::BrowserThread; | 22 using content::BrowserThread; |
| 23 | 23 |
| 24 namespace system_logs { | 24 namespace system_logs { |
| 25 | 25 |
| 26 AboutSystemLogsFetcher::AboutSystemLogsFetcher() { | 26 AboutSystemLogsFetcher::AboutSystemLogsFetcher() { |
| 27 data_sources_.push_back(new ChromeInternalLogSource()); | 27 data_sources_.push_back(new ChromeInternalLogSource()); |
| 28 data_sources_.push_back(new MemoryDetailsLogSource()); | 28 data_sources_.push_back(new MemoryDetailsLogSource()); |
| 29 | 29 |
| 30 #if defined(OS_CHROMEOS) | 30 #if defined(OS_CHROMEOS) |
| 31 data_sources_.push_back(new CommandLineLogSource()); | 31 data_sources_.push_back(new CommandLineLogSource()); |
| 32 data_sources_.push_back(new DBusLogSource()); | 32 data_sources_.push_back(new DBusLogSource()); |
| 33 data_sources_.push_back(new DeviceEventLogSource()); |
| 33 data_sources_.push_back(new LsbReleaseLogSource()); | 34 data_sources_.push_back(new LsbReleaseLogSource()); |
| 34 data_sources_.push_back(new NetworkEventLogSource()); | |
| 35 data_sources_.push_back(new TouchLogSource()); | 35 data_sources_.push_back(new TouchLogSource()); |
| 36 | 36 |
| 37 // Debug Daemon data source - currently only this data source supports | 37 // Debug Daemon data source - currently only this data source supports |
| 38 // the scrub_data parameter. | 38 // the scrub_data parameter. |
| 39 const bool scrub_data = false; | 39 const bool scrub_data = false; |
| 40 data_sources_.push_back(new DebugDaemonLogSource(scrub_data)); | 40 data_sources_.push_back(new DebugDaemonLogSource(scrub_data)); |
| 41 #endif | 41 #endif |
| 42 | 42 |
| 43 num_pending_requests_ = data_sources_.size(); | 43 num_pending_requests_ = data_sources_.size(); |
| 44 } | 44 } |
| 45 | 45 |
| 46 AboutSystemLogsFetcher::~AboutSystemLogsFetcher() { | 46 AboutSystemLogsFetcher::~AboutSystemLogsFetcher() { |
| 47 } | 47 } |
| 48 | 48 |
| 49 } // namespace system_logs | 49 } // namespace system_logs |
| OLD | NEW |