| OLD | NEW |
| 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_COMMON_LOGGING_CHROME_H__ | 5 #ifndef CHROME_COMMON_LOGGING_CHROME_H__ |
| 6 #define CHROME_COMMON_LOGGING_CHROME_H__ | 6 #define CHROME_COMMON_LOGGING_CHROME_H__ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 // | 28 // |
| 29 // XXX | 29 // XXX |
| 30 // Setting suppress_error_dialogs to true disables any dialogs that would | 30 // Setting suppress_error_dialogs to true disables any dialogs that would |
| 31 // normally appear for assertions and crashes, and makes any catchable | 31 // normally appear for assertions and crashes, and makes any catchable |
| 32 // errors (namely assertions) available via GetSilencedErrorCount() | 32 // errors (namely assertions) available via GetSilencedErrorCount() |
| 33 // and GetSilencedError(). | 33 // and GetSilencedError(). |
| 34 void InitChromeLogging(const base::CommandLine& command_line, | 34 void InitChromeLogging(const base::CommandLine& command_line, |
| 35 OldFileDeletionState delete_old_log_file); | 35 OldFileDeletionState delete_old_log_file); |
| 36 | 36 |
| 37 #if defined(OS_CHROMEOS) | 37 #if defined(OS_CHROMEOS) |
| 38 // Get the log file directory path. |
| 39 base::FilePath GetSessionLogDir(const base::CommandLine& command_line); |
| 40 |
| 38 // Get the log file location. | 41 // Get the log file location. |
| 39 base::FilePath GetSessionLogFile(const base::CommandLine& command_line); | 42 base::FilePath GetSessionLogFile(const base::CommandLine& command_line); |
| 40 | 43 |
| 41 // Redirects chrome logging to the appropriate session log dir. | 44 // Redirects chrome logging to the appropriate session log dir. |
| 42 void RedirectChromeLogging(const base::CommandLine& command_line); | 45 void RedirectChromeLogging(const base::CommandLine& command_line); |
| 43 #endif | 46 #endif |
| 44 | 47 |
| 45 // Call when done using logging for Chrome. | 48 // Call when done using logging for Chrome. |
| 46 void CleanupChromeLogging(); | 49 void CleanupChromeLogging(); |
| 47 | 50 |
| (...skipping 16 matching lines...) Expand all Loading... |
| 64 // the program writing the log has terminated. | 67 // the program writing the log has terminated. |
| 65 size_t GetFatalAssertions(AssertionList* assertions); | 68 size_t GetFatalAssertions(AssertionList* assertions); |
| 66 | 69 |
| 67 // Inserts timestamp before file extension in the format | 70 // Inserts timestamp before file extension in the format |
| 68 // "_yymmdd-hhmmss". | 71 // "_yymmdd-hhmmss". |
| 69 base::FilePath GenerateTimestampedName(const base::FilePath& base_path, | 72 base::FilePath GenerateTimestampedName(const base::FilePath& base_path, |
| 70 base::Time timestamp); | 73 base::Time timestamp); |
| 71 } // namespace logging | 74 } // namespace logging |
| 72 | 75 |
| 73 #endif // CHROME_COMMON_LOGGING_CHROME_H_ | 76 #endif // CHROME_COMMON_LOGGING_CHROME_H_ |
| OLD | NEW |