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

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

Issue 329853010: Additional methods for chrome.logPrivate API (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 6 years, 5 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
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> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 17 matching lines...) Expand all
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
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_
OLDNEW
« no previous file with comments | « chrome/common/extensions/permissions/chrome_api_permissions.cc ('k') | chrome/common/logging_chrome.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698