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_BASE_H_ | 5 #ifndef CHROME_BROWSER_FEEDBACK_SYSTEM_LOGS_SYSTEM_LOGS_FETCHER_BASE_H_ |
6 #define CHROME_BROWSER_FEEDBACK_SYSTEM_LOGS_SYSTEM_LOGS_FETCHER_BASE_H_ | 6 #define CHROME_BROWSER_FEEDBACK_SYSTEM_LOGS_SYSTEM_LOGS_FETCHER_BASE_H_ |
7 | 7 |
| 8 #include <stddef.h> |
| 9 |
8 #include <map> | 10 #include <map> |
9 #include <string> | 11 #include <string> |
10 | 12 |
11 #include "base/callback.h" | 13 #include "base/callback.h" |
| 14 #include "base/macros.h" |
12 #include "base/memory/scoped_vector.h" | 15 #include "base/memory/scoped_vector.h" |
13 #include "base/memory/weak_ptr.h" | 16 #include "base/memory/weak_ptr.h" |
14 | 17 |
15 namespace system_logs { | 18 namespace system_logs { |
16 | 19 |
17 typedef std::map<std::string, std::string> SystemLogsResponse; | 20 typedef std::map<std::string, std::string> SystemLogsResponse; |
18 | 21 |
19 // Callback that the data sources use to return data. | 22 // Callback that the data sources use to return data. |
20 typedef base::Callback<void(SystemLogsResponse* response)> | 23 typedef base::Callback<void(SystemLogsResponse* response)> |
21 SysLogsSourceCallback; | 24 SysLogsSourceCallback; |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
79 size_t num_pending_requests_; // The number of callbacks it should get. | 82 size_t num_pending_requests_; // The number of callbacks it should get. |
80 | 83 |
81 private: | 84 private: |
82 | 85 |
83 DISALLOW_COPY_AND_ASSIGN(SystemLogsFetcherBase); | 86 DISALLOW_COPY_AND_ASSIGN(SystemLogsFetcherBase); |
84 }; | 87 }; |
85 | 88 |
86 } // namespace system_logs | 89 } // namespace system_logs |
87 | 90 |
88 #endif // CHROME_BROWSER_FEEDBACK_SYSTEM_LOGS_SYSTEM_LOGS_FETCHER_BASE_H_ | 91 #endif // CHROME_BROWSER_FEEDBACK_SYSTEM_LOGS_SYSTEM_LOGS_FETCHER_BASE_H_ |
OLD | NEW |