OLD | NEW |
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 #include "content/public/browser/content_ipc_logging.h" | 5 #include "content/public/browser/content_ipc_logging.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "content/browser/browser_child_process_host.h" | |
9 #include "content/common/child_process_messages.h" | 8 #include "content/common/child_process_messages.h" |
10 #include "content/public/browser/browser_child_process_host_iterator.h" | 9 #include "content/public/browser/browser_child_process_host_iterator.h" |
11 #include "content/public/browser/browser_thread.h" | 10 #include "content/public/browser/browser_thread.h" |
12 #include "content/public/browser/render_process_host.h" | 11 #include "content/public/browser/render_process_host.h" |
13 #include "ipc/ipc_logging.h" | 12 #include "ipc/ipc_logging.h" |
14 | 13 |
15 namespace content { | 14 namespace content { |
16 | 15 |
17 #if defined(IPC_MESSAGE_LOG_ENABLED) | 16 #if defined(IPC_MESSAGE_LOG_ENABLED) |
18 | 17 |
(...skipping 24 matching lines...) Expand all Loading... |
43 // Finally, tell the renderers which don't derive from ChildProcess. | 42 // Finally, tell the renderers which don't derive from ChildProcess. |
44 // Messages to the renderers must be done on the UI (main) thread. | 43 // Messages to the renderers must be done on the UI (main) thread. |
45 for (RenderProcessHost::iterator i(RenderProcessHost::AllHostsIterator()); | 44 for (RenderProcessHost::iterator i(RenderProcessHost::AllHostsIterator()); |
46 !i.IsAtEnd(); i.Advance()) | 45 !i.IsAtEnd(); i.Advance()) |
47 i.GetCurrentValue()->Send(new ChildProcessMsg_SetIPCLoggingEnabled(enable)); | 46 i.GetCurrentValue()->Send(new ChildProcessMsg_SetIPCLoggingEnabled(enable)); |
48 } | 47 } |
49 | 48 |
50 #endif // IPC_MESSAGE_LOG_ENABLED | 49 #endif // IPC_MESSAGE_LOG_ENABLED |
51 | 50 |
52 } // namespace content | 51 } // namespace content |
OLD | NEW |