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

Side by Side Diff: ipc/ipc_logging.h

Issue 14383024: ipc: Use base::MessageLoop. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 IPC_IPC_LOGGING_H_ 5 #ifndef IPC_IPC_LOGGING_H_
6 #define IPC_IPC_LOGGING_H_ 6 #define IPC_IPC_LOGGING_H_
7 7
8 #include "ipc/ipc_message.h" // For IPC_MESSAGE_LOG_ENABLED. 8 #include "ipc/ipc_message.h" // For IPC_MESSAGE_LOG_ENABLED.
9 9
10 #ifdef IPC_MESSAGE_LOG_ENABLED 10 #ifdef IPC_MESSAGE_LOG_ENABLED
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 void Log(const LogData& data); 106 void Log(const LogData& data);
107 107
108 bool enabled_; 108 bool enabled_;
109 bool enabled_on_stderr_; // only used on POSIX for now 109 bool enabled_on_stderr_; // only used on POSIX for now
110 bool enabled_color_; // only used on POSIX for now 110 bool enabled_color_; // only used on POSIX for now
111 111
112 std::vector<LogData> queued_logs_; 112 std::vector<LogData> queued_logs_;
113 bool queue_invoke_later_pending_; 113 bool queue_invoke_later_pending_;
114 114
115 Sender* sender_; 115 Sender* sender_;
116 MessageLoop* main_thread_; 116 base::MessageLoop* main_thread_;
117 117
118 Consumer* consumer_; 118 Consumer* consumer_;
119 119
120 static LogFunctionMap* log_function_map_; 120 static LogFunctionMap* log_function_map_;
121 }; 121 };
122 122
123 } // namespace IPC 123 } // namespace IPC
124 124
125 #endif // IPC_MESSAGE_LOG_ENABLED 125 #endif // IPC_MESSAGE_LOG_ENABLED
126 126
127 #endif // IPC_IPC_LOGGING_H_ 127 #endif // IPC_IPC_LOGGING_H_
OLDNEW
« no previous file with comments | « ipc/ipc_fuzzing_tests.cc ('k') | ipc/ipc_logging.cc » ('j') | ipc/ipc_sync_channel_unittest.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698