| OLD | NEW |
| 1 // Copyright (c) 2009 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 #ifndef CHROME_RENDERER_DEVTOOLS_AGENT_FILTER_H_ | 5 #ifndef CHROME_RENDERER_DEVTOOLS_AGENT_FILTER_H_ |
| 6 #define CHROME_RENDERER_DEVTOOLS_AGENT_FILTER_H_ | 6 #define CHROME_RENDERER_DEVTOOLS_AGENT_FILTER_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <set> | |
| 10 #include <string> | 9 #include <string> |
| 11 | 10 |
| 12 #include "ipc/ipc_channel_proxy.h" | 11 #include "ipc/ipc_channel_proxy.h" |
| 13 | 12 |
| 14 struct DevToolsMessageData; | 13 struct DevToolsMessageData; |
| 15 | 14 |
| 16 // DevToolsAgentFilter is registered as an IPC filter in order to be able to | 15 // DevToolsAgentFilter is registered as an IPC filter in order to be able to |
| 17 // dispatch messages while on the IO thread. The reason for that is that while | 16 // dispatch messages while on the IO thread. The reason for that is that while |
| 18 // debugging, Render thread is being held by the v8 and hence no messages | 17 // debugging, Render thread is being held by the v8 and hence no messages |
| 19 // are being dispatched there. While holding the thread in a tight loop, | 18 // are being dispatched there. While holding the thread in a tight loop, |
| (...skipping 24 matching lines...) Expand all Loading... |
| 44 | 43 |
| 45 // Made static to allow DevToolsAgent to use it for replying directly | 44 // Made static to allow DevToolsAgent to use it for replying directly |
| 46 // from IO thread. | 45 // from IO thread. |
| 47 static int current_routing_id_; | 46 static int current_routing_id_; |
| 48 static IPC::Channel* channel_; | 47 static IPC::Channel* channel_; |
| 49 | 48 |
| 50 DISALLOW_COPY_AND_ASSIGN(DevToolsAgentFilter); | 49 DISALLOW_COPY_AND_ASSIGN(DevToolsAgentFilter); |
| 51 }; | 50 }; |
| 52 | 51 |
| 53 #endif // CHROME_RENDERER_DEVTOOLS_AGENT_FILTER_H_ | 52 #endif // CHROME_RENDERER_DEVTOOLS_AGENT_FILTER_H_ |
| OLD | NEW |