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 #ifndef CHROME_BROWSER_FEEDBACK_SYSTEM_LOGS_SYSTEM_LOGS_FETCHER_H_ | 5 #ifndef COMPONENTS_FEEDBACK_SYSTEM_LOGS_SYSTEM_LOGS_FETCHER_H_ |
6 #define CHROME_BROWSER_FEEDBACK_SYSTEM_LOGS_SYSTEM_LOGS_FETCHER_H_ | 6 #define COMPONENTS_FEEDBACK_SYSTEM_LOGS_SYSTEM_LOGS_FETCHER_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 | 9 |
10 #include <map> | 10 #include <map> |
11 #include <memory> | 11 #include <memory> |
12 #include <string> | 12 #include <string> |
13 #include <vector> | 13 #include <vector> |
14 | 14 |
15 #include "base/callback.h" | 15 #include "base/callback.h" |
16 #include "base/macros.h" | 16 #include "base/macros.h" |
17 #include "base/memory/weak_ptr.h" | 17 #include "base/memory/weak_ptr.h" |
18 #include "chrome/browser/feedback/system_logs/system_logs_source.h" | |
19 #include "components/feedback/anonymizer_tool.h" | 18 #include "components/feedback/anonymizer_tool.h" |
20 #include "components/feedback/feedback_common.h" | 19 #include "components/feedback/feedback_common.h" |
| 20 #include "components/feedback/system_logs/system_logs_source.h" |
21 | 21 |
22 namespace system_logs { | 22 namespace system_logs { |
23 | 23 |
24 // Callback that the SystemLogsFetcher uses to return data. | 24 // Callback that the SystemLogsFetcher uses to return data. |
25 using SysLogsFetcherCallback = | 25 using SysLogsFetcherCallback = |
26 base::Callback<void(std::unique_ptr<SystemLogsResponse>)>; | 26 base::Callback<void(std::unique_ptr<SystemLogsResponse>)>; |
27 | 27 |
28 // The SystemLogsFetcher fetches key-value data from a list of log sources. | 28 // The SystemLogsFetcher fetches key-value data from a list of log sources. |
29 // | 29 // |
30 // EXAMPLE: | 30 // EXAMPLE: |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
73 | 73 |
74 std::unique_ptr<feedback::AnonymizerTool> anonymizer_; | 74 std::unique_ptr<feedback::AnonymizerTool> anonymizer_; |
75 | 75 |
76 base::WeakPtrFactory<SystemLogsFetcher> weak_ptr_factory_; | 76 base::WeakPtrFactory<SystemLogsFetcher> weak_ptr_factory_; |
77 | 77 |
78 DISALLOW_COPY_AND_ASSIGN(SystemLogsFetcher); | 78 DISALLOW_COPY_AND_ASSIGN(SystemLogsFetcher); |
79 }; | 79 }; |
80 | 80 |
81 } // namespace system_logs | 81 } // namespace system_logs |
82 | 82 |
83 #endif // CHROME_BROWSER_FEEDBACK_SYSTEM_LOGS_SYSTEM_LOGS_FETCHER_H_ | 83 #endif // COMPONENTS_FEEDBACK_SYSTEM_LOGS_SYSTEM_LOGS_FETCHER_H_ |
OLD | NEW |