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

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

Issue 623293003: replace OVERRIDE and FINAL with override and final in chrome/browser/chromeos/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: run git cl format on echo_dialog_view.h Created 6 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
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 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_DEBUG_DAEMON_LOG_SOURCE_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_SYSTEM_LOGS_DEBUG_DAEMON_LOG_SOURCE_H_
6 #define CHROME_BROWSER_CHROMEOS_SYSTEM_LOGS_DEBUG_DAEMON_LOG_SOURCE_H_ 6 #define CHROME_BROWSER_CHROMEOS_SYSTEM_LOGS_DEBUG_DAEMON_LOG_SOURCE_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
11 11
12 #include "base/files/file_path.h" 12 #include "base/files/file_path.h"
13 #include "base/memory/weak_ptr.h" 13 #include "base/memory/weak_ptr.h"
14 #include "chrome/browser/feedback/system_logs/system_logs_fetcher_base.h" 14 #include "chrome/browser/feedback/system_logs/system_logs_fetcher_base.h"
15 15
16 class Profile; 16 class Profile;
17 17
18 namespace system_logs { 18 namespace system_logs {
19 19
20 // Gathers log data from Debug Daemon. 20 // Gathers log data from Debug Daemon.
21 class DebugDaemonLogSource : public SystemLogsSource { 21 class DebugDaemonLogSource : public SystemLogsSource {
22 public: 22 public:
23 explicit DebugDaemonLogSource(bool scrub); 23 explicit DebugDaemonLogSource(bool scrub);
24 virtual ~DebugDaemonLogSource(); 24 virtual ~DebugDaemonLogSource();
25 25
26 // SystemLogsSource override: 26 // SystemLogsSource override:
27 // Fetches logs from the daemon over dbus. After the fetch is complete, the 27 // Fetches logs from the daemon over dbus. After the fetch is complete, the
28 // results will be forwarded to the request supplied to the constructor and 28 // results will be forwarded to the request supplied to the constructor and
29 // this instance will free itself. 29 // this instance will free itself.
30 virtual void Fetch(const SysLogsSourceCallback& callback) OVERRIDE; 30 virtual void Fetch(const SysLogsSourceCallback& callback) override;
31 31
32 private: 32 private:
33 typedef std::map<std::string, std::string> KeyValueMap; 33 typedef std::map<std::string, std::string> KeyValueMap;
34 34
35 // Callbacks for the 5 different dbus calls to debugd. 35 // Callbacks for the 5 different dbus calls to debugd.
36 void OnGetRoutes(bool succeeded, const std::vector<std::string>& routes); 36 void OnGetRoutes(bool succeeded, const std::vector<std::string>& routes);
37 void OnGetNetworkStatus(bool succeeded, const std::string& status); 37 void OnGetNetworkStatus(bool succeeded, const std::string& status);
38 void OnGetModemStatus(bool succeeded, const std::string& status); 38 void OnGetModemStatus(bool succeeded, const std::string& status);
39 void OnGetWiMaxStatus(bool succeeded, const std::string& status); 39 void OnGetWiMaxStatus(bool succeeded, const std::string& status);
40 void OnGetLogs(bool succeeded, 40 void OnGetLogs(bool succeeded,
(...skipping 21 matching lines...) Expand all
62 bool scrub_; 62 bool scrub_;
63 base::WeakPtrFactory<DebugDaemonLogSource> weak_ptr_factory_; 63 base::WeakPtrFactory<DebugDaemonLogSource> weak_ptr_factory_;
64 64
65 DISALLOW_COPY_AND_ASSIGN(DebugDaemonLogSource); 65 DISALLOW_COPY_AND_ASSIGN(DebugDaemonLogSource);
66 }; 66 };
67 67
68 68
69 } // namespace system_logs 69 } // namespace system_logs
70 70
71 #endif // CHROME_BROWSER_CHROMEOS_SYSTEM_LOGS_DEBUG_DAEMON_LOG_SOURCE_H_ 71 #endif // CHROME_BROWSER_CHROMEOS_SYSTEM_LOGS_DEBUG_DAEMON_LOG_SOURCE_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/system_logs/dbus_log_source.h ('k') | chrome/browser/chromeos/system_logs/lsb_release_log_source.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698