OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
11 | 11 |
12 #include "base/logging.h" | 12 #include "base/logging.h" |
13 | 13 |
14 class CommandLine; | 14 class CommandLine; |
15 class FilePath; | 15 class FilePath; |
16 | 16 |
17 namespace base { | |
18 class Time; | |
19 } | |
20 | |
21 namespace logging { | 17 namespace logging { |
22 | 18 |
23 // Call to initialize logging for Chrome. This sets up the chrome-specific | 19 // Call to initialize logging for Chrome. This sets up the chrome-specific |
24 // logfile naming scheme and might do other things like log modules and | 20 // logfile naming scheme and might do other things like log modules and |
25 // setting levels in the future. | 21 // setting levels in the future. |
26 // | 22 // |
27 // The main process might want to delete any old log files on startup by | 23 // The main process might want to delete any old log files on startup by |
28 // setting delete_old_log_file, but the renderer processes should not, or | 24 // setting delete_old_log_file, but the renderer processes should not, or |
29 // they will delete each others' logs. | 25 // they will delete each others' logs. |
30 // | 26 // |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 // NOTE: Since this reads the log file to determine the assertions, | 58 // NOTE: Since this reads the log file to determine the assertions, |
63 // this operation is O(n) over the length of the log. | 59 // this operation is O(n) over the length of the log. |
64 // NOTE: This can fail if the file is locked for writing. However, | 60 // NOTE: This can fail if the file is locked for writing. However, |
65 // this is unlikely as this function is most useful after | 61 // this is unlikely as this function is most useful after |
66 // the program writing the log has terminated. | 62 // the program writing the log has terminated. |
67 size_t GetFatalAssertions(AssertionList* assertions); | 63 size_t GetFatalAssertions(AssertionList* assertions); |
68 | 64 |
69 // Handler to silently dump the current process without crashing. | 65 // Handler to silently dump the current process without crashing. |
70 void DumpWithoutCrashing(); | 66 void DumpWithoutCrashing(); |
71 | 67 |
72 } // namespace logging | 68 } // namespace logging |
73 | 69 |
74 #endif // CHROME_COMMON_LOGGING_CHROME_H_ | 70 #endif // CHROME_COMMON_LOGGING_CHROME_H_ |
OLD | NEW |