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

Unified Diff: third_party/mojo/src/mojo/public/c/environment/logger.h

Issue 1157843002: Update mojo sdk to rev 1dc8a9a5db73d3718d99917fadf31f5fb2ebad4f (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/mojo/src/mojo/public/VERSION ('k') | third_party/mojo/src/mojo/public/c/gles2/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/mojo/src/mojo/public/c/environment/logger.h
diff --git a/third_party/mojo/src/mojo/public/c/environment/logger.h b/third_party/mojo/src/mojo/public/c/environment/logger.h
index c492a66397f9d181ed4231608c3a9696cef662b0..2a9b617a383d8ab0287ada2648c6db62577488be 100644
--- a/third_party/mojo/src/mojo/public/c/environment/logger.h
+++ b/third_party/mojo/src/mojo/public/c/environment/logger.h
@@ -30,10 +30,17 @@ const MojoLogLevel MOJO_LOG_LEVEL_FATAL = 3;
// macros may be built). The functions are thread-safe, except for
// |SetMinimumLogLevel()| (see below).
struct MojoLogger {
- // Logs |message| at level |log_level| if |log_level| is at least the current
- // minimum log level. If |log_level| is |MOJO_LOG_LEVEL_FATAL| (or greater),
- // aborts the application/process.
- void (*LogMessage)(MojoLogLevel log_level, const char* message);
+ // Logs |message| (which must not be null) at level |log_level| if |log_level|
+ // is at least the current minimum log level. If |log_level| is
+ // |MOJO_LOG_LEVEL_FATAL| (or greater), aborts the application/process.
+ // |source_file| and |source_line| indicate the source file and (1-based) line
+ // number, respectively; they are optional: |source_file| may be null and
+ // |source_line| may be zero (if |source_file| is null, then |source_line| may
+ // be ignored).
+ void (*LogMessage)(MojoLogLevel log_level,
+ const char* source_file,
+ uint32_t source_line,
+ const char* message);
// Gets the minimum log level (see above), which will always be at most
// |MOJO_LOG_LEVEL_FATAL|. (Though |LogMessage()| will automatically avoid
« no previous file with comments | « third_party/mojo/src/mojo/public/VERSION ('k') | third_party/mojo/src/mojo/public/c/gles2/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698