Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1122)

Side by Side Diff: chrome/common/logging_chrome.h

Issue 1012683003: Remove some dead code, fix some includes and whitespace. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | chrome/common/logging_chrome.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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>
9 #include <vector>
10
11 #include "base/logging.h" 8 #include "base/logging.h"
12 #include "base/time/time.h" 9 #include "base/time/time.h"
13 10
14 namespace base { 11 namespace base {
15 class CommandLine; 12 class CommandLine;
16 class FilePath; 13 class FilePath;
17 } 14 }
18 15
19 namespace logging { 16 namespace logging {
20 17
(...skipping 23 matching lines...) Expand all
44 // Redirects chrome logging to the appropriate session log dir. 41 // Redirects chrome logging to the appropriate session log dir.
45 void RedirectChromeLogging(const base::CommandLine& command_line); 42 void RedirectChromeLogging(const base::CommandLine& command_line);
46 #endif 43 #endif
47 44
48 // Call when done using logging for Chrome. 45 // Call when done using logging for Chrome.
49 void CleanupChromeLogging(); 46 void CleanupChromeLogging();
50 47
51 // Returns the fully-qualified name of the log file. 48 // Returns the fully-qualified name of the log file.
52 base::FilePath GetLogFileName(); 49 base::FilePath GetLogFileName();
53 50
54 // Returns true when error/assertion dialogs are to be shown, 51 // Returns true when error/assertion dialogs are not to be shown, false
55 // false otherwise. 52 // otherwise.
56 bool DialogsAreSuppressed(); 53 bool DialogsAreSuppressed();
57 54
58 typedef std::vector<std::wstring> AssertionList;
59
60 // Gets the list of fatal assertions in the current log file, and
61 // returns the number of fatal assertions. (If you don't care
62 // about the actual list of assertions, you can pass in NULL.)
63 // NOTE: Since this reads the log file to determine the assertions,
64 // this operation is O(n) over the length of the log.
65 // NOTE: This can fail if the file is locked for writing. However,
66 // this is unlikely as this function is most useful after
67 // the program writing the log has terminated.
68 size_t GetFatalAssertions(AssertionList* assertions);
69
70 // Inserts timestamp before file extension in the format 55 // Inserts timestamp before file extension in the format
71 // "_yymmdd-hhmmss". 56 // "_yymmdd-hhmmss".
72 base::FilePath GenerateTimestampedName(const base::FilePath& base_path, 57 base::FilePath GenerateTimestampedName(const base::FilePath& base_path,
73 base::Time timestamp); 58 base::Time timestamp);
74 } // namespace logging 59 } // namespace logging
75 60
76 #endif // CHROME_COMMON_LOGGING_CHROME_H_ 61 #endif // CHROME_COMMON_LOGGING_CHROME_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/common/logging_chrome.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698