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" | |
21 #include "chrome/common/render_messages.h" | 20 #include "chrome/common/render_messages.h" |
| 21 #include "content/common/plugin_messages.h" |
22 #include "content/common/worker_messages.h" | 22 #include "content/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 <fstream> | 29 #include <fstream> |
30 | 30 |
31 #include "chrome/common/logging_chrome.h" | 31 #include "chrome/common/logging_chrome.h" |
(...skipping 404 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
436 assertions->push_back(wide_line); | 436 assertions->push_back(wide_line); |
437 ++assertion_count; | 437 ++assertion_count; |
438 } | 438 } |
439 } | 439 } |
440 log_file.close(); | 440 log_file.close(); |
441 | 441 |
442 return assertion_count; | 442 return assertion_count; |
443 } | 443 } |
444 | 444 |
445 } // namespace logging | 445 } // namespace logging |
OLD | NEW |