| 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> | 8 #include <stddef.h> |
| 9 | 9 |
| 10 #include <map> | 10 #include <map> |
| 11 #include <string> | 11 #include <string> |
| 12 | 12 |
| 13 #include "base/callback.h" | 13 #include "base/callback.h" |
| 14 #include "base/macros.h" | 14 #include "base/macros.h" |
| 15 #include "base/memory/scoped_ptr.h" |
| 15 #include "base/memory/scoped_vector.h" | 16 #include "base/memory/scoped_vector.h" |
| 16 #include "base/memory/weak_ptr.h" | 17 #include "base/memory/weak_ptr.h" |
| 17 | 18 |
| 18 namespace system_logs { | 19 namespace system_logs { |
| 19 | 20 |
| 20 typedef std::map<std::string, std::string> SystemLogsResponse; | 21 typedef std::map<std::string, std::string> SystemLogsResponse; |
| 21 | 22 |
| 22 // Callback that the data sources use to return data. | 23 // Callback that the data sources use to return data. |
| 23 typedef base::Callback<void(SystemLogsResponse* response)> | 24 typedef base::Callback<void(SystemLogsResponse* response)> |
| 24 SysLogsSourceCallback; | 25 SysLogsSourceCallback; |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 89 size_t num_pending_requests_; // The number of callbacks it should get. | 90 size_t num_pending_requests_; // The number of callbacks it should get. |
| 90 | 91 |
| 91 private: | 92 private: |
| 92 | 93 |
| 93 DISALLOW_COPY_AND_ASSIGN(SystemLogsFetcherBase); | 94 DISALLOW_COPY_AND_ASSIGN(SystemLogsFetcherBase); |
| 94 }; | 95 }; |
| 95 | 96 |
| 96 } // namespace system_logs | 97 } // namespace system_logs |
| 97 | 98 |
| 98 #endif // CHROME_BROWSER_FEEDBACK_SYSTEM_LOGS_SYSTEM_LOGS_FETCHER_BASE_H_ | 99 #endif // CHROME_BROWSER_FEEDBACK_SYSTEM_LOGS_SYSTEM_LOGS_FETCHER_BASE_H_ |
| OLD | NEW |