OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 #include "build/build_config.h" | 5 #include "build/build_config.h" |
6 | 6 |
7 // Need to include this before most other files because it defines | 7 // Need to include this before most other files because it defines |
8 // IPC_MESSAGE_LOG_ENABLED. We need to use it to define | 8 // IPC_MESSAGE_LOG_ENABLED. We need to use it to define |
9 // IPC_MESSAGE_MACROS_LOG_ENABLED so render_messages.h will generate the | 9 // IPC_MESSAGE_MACROS_LOG_ENABLED so render_messages.h will generate the |
10 // ViewMsgLog et al. functions. | 10 // ViewMsgLog et al. functions. |
11 #include "ipc/ipc_message.h" | 11 #include "ipc/ipc_message.h" |
12 | 12 |
13 // On Windows, the about:ipc dialog shows IPCs; on POSIX, we hook up a | 13 // On Windows, the about:ipc dialog shows IPCs; on POSIX, we hook up a |
14 // logger in this file. (We implement about:ipc on Mac but implement | 14 // logger in this file. (We implement about:ipc on Mac but implement |
15 // the loggers here anyway). We need to do this real early to be sure | 15 // the loggers here anyway). We need to do this real early to be sure |
16 // IPC_MESSAGE_MACROS_LOG_ENABLED doesn't get undefined. | 16 // IPC_MESSAGE_MACROS_LOG_ENABLED doesn't get undefined. |
17 #if defined(OS_POSIX) && defined(IPC_MESSAGE_LOG_ENABLED) | 17 #if defined(OS_POSIX) && defined(IPC_MESSAGE_LOG_ENABLED) |
18 #define IPC_MESSAGE_MACROS_LOG_ENABLED | 18 #define IPC_MESSAGE_MACROS_LOG_ENABLED |
19 #include "chrome/common/devtools_messages.h" | 19 #include "chrome/common/devtools_messages.h" |
20 #include "chrome/common/plugin_messages.h" | 20 #include "chrome/common/plugin_messages.h" |
21 #include "chrome/common/render_messages.h" | 21 #include "chrome/common/render_messages.h" |
22 #include "chrome/common/worker_messages.h" | 22 #include "chrome/common/worker_messages.h" |
23 #endif | 23 #endif |
24 | 24 |
25 #if defined(OS_WIN) | 25 #if defined(OS_WIN) |
26 #include <windows.h> | 26 #include <windows.h> |
27 #endif | 27 #endif |
28 | 28 |
29 #include <iostream> | |
30 #include <fstream> | 29 #include <fstream> |
31 | 30 |
32 #include "chrome/common/logging_chrome.h" | 31 #include "chrome/common/logging_chrome.h" |
33 | 32 |
34 #include "base/command_line.h" | 33 #include "base/command_line.h" |
35 #include "base/compiler_specific.h" | 34 #include "base/compiler_specific.h" |
36 #include "base/debug_util.h" | 35 #include "base/debug_util.h" |
37 #include "base/env_var.h" | 36 #include "base/env_var.h" |
38 #include "base/file_path.h" | 37 #include "base/file_path.h" |
39 #include "base/file_util.h" | 38 #include "base/file_util.h" |
(...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
286 assertions->push_back(wide_line); | 285 assertions->push_back(wide_line); |
287 ++assertion_count; | 286 ++assertion_count; |
288 } | 287 } |
289 } | 288 } |
290 log_file.close(); | 289 log_file.close(); |
291 | 290 |
292 return assertion_count; | 291 return assertion_count; |
293 } | 292 } |
294 | 293 |
295 } // namespace logging | 294 } // namespace logging |
OLD | NEW |