OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_LOG_WRITER_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_SYSTEM_LOGS_DEBUG_LOG_WRITER_H_ |
6 #define CHROME_BROWSER_CHROMEOS_SYSTEM_LOGS_DEBUG_LOG_WRITER_H_ | 6 #define CHROME_BROWSER_CHROMEOS_SYSTEM_LOGS_DEBUG_LOG_WRITER_H_ |
7 | 7 |
8 #include "base/basictypes.h" | |
9 #include "base/callback_forward.h" | 8 #include "base/callback_forward.h" |
10 #include "base/files/file_path.h" | 9 #include "base/files/file_path.h" |
| 10 #include "base/macros.h" |
11 | 11 |
12 namespace chromeos { | 12 namespace chromeos { |
13 | 13 |
14 class DebugLogWriter { | 14 class DebugLogWriter { |
15 public: | 15 public: |
16 // Called once StoreDebugLogs is complete. Takes two parameters: | 16 // Called once StoreDebugLogs is complete. Takes two parameters: |
17 // - log_path: where the log file was saved in the case of success; | 17 // - log_path: where the log file was saved in the case of success; |
18 // - succeeded: was the log file saved successfully. | 18 // - succeeded: was the log file saved successfully. |
19 typedef base::Callback<void(const base::FilePath& log_path, bool succeeded)> | 19 typedef base::Callback<void(const base::FilePath& log_path, bool succeeded)> |
20 StoreLogsCallback; | 20 StoreLogsCallback; |
(...skipping 15 matching lines...) Expand all Loading... |
36 const StoreLogsCallback& callback); | 36 const StoreLogsCallback& callback); |
37 | 37 |
38 private: | 38 private: |
39 DebugLogWriter(); | 39 DebugLogWriter(); |
40 DISALLOW_COPY_AND_ASSIGN(DebugLogWriter); | 40 DISALLOW_COPY_AND_ASSIGN(DebugLogWriter); |
41 }; | 41 }; |
42 | 42 |
43 } // namespace chromeos | 43 } // namespace chromeos |
44 | 44 |
45 #endif // CHROME_BROWSER_CHROMEOS_SYSTEM_LOGS_DEBUG_LOG_WRITER_H_ | 45 #endif // CHROME_BROWSER_CHROMEOS_SYSTEM_LOGS_DEBUG_LOG_WRITER_H_ |
OLD | NEW |