| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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> | 9 #include <set> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 21 matching lines...) Expand all Loading... |
| 32 virtual bool OnMessageReceived(const IPC::Message& message); | 32 virtual bool OnMessageReceived(const IPC::Message& message); |
| 33 | 33 |
| 34 virtual void OnFilterAdded(IPC::Channel* channel) { channel_ = channel; } | 34 virtual void OnFilterAdded(IPC::Channel* channel) { channel_ = channel; } |
| 35 | 35 |
| 36 static void DispatchMessageLoop(); | 36 static void DispatchMessageLoop(); |
| 37 | 37 |
| 38 // OnDebuggerCommand will be executed in the IO thread so that we can | 38 // OnDebuggerCommand will be executed in the IO thread so that we can |
| 39 // handle debug messages even when v8 is stopped. | 39 // handle debug messages even when v8 is stopped. |
| 40 void OnDebuggerCommand(const std::string& command); | 40 void OnDebuggerCommand(const std::string& command); |
| 41 void OnDebuggerPauseScript(); | 41 void OnDebuggerPauseScript(); |
| 42 void OnRpcMessage(const DevToolsMessageData& data); | |
| 43 | 42 |
| 44 bool message_handled_; | 43 bool message_handled_; |
| 45 | 44 |
| 46 // Made static to allow DevToolsAgent to use it for replying directly | 45 // Made static to allow DevToolsAgent to use it for replying directly |
| 47 // from IO thread. | 46 // from IO thread. |
| 48 static int current_routing_id_; | 47 static int current_routing_id_; |
| 49 static IPC::Channel* channel_; | 48 static IPC::Channel* channel_; |
| 50 | 49 |
| 51 DISALLOW_COPY_AND_ASSIGN(DevToolsAgentFilter); | 50 DISALLOW_COPY_AND_ASSIGN(DevToolsAgentFilter); |
| 52 }; | 51 }; |
| 53 | 52 |
| 54 #endif // CHROME_RENDERER_DEVTOOLS_AGENT_FILTER_H_ | 53 #endif // CHROME_RENDERER_DEVTOOLS_AGENT_FILTER_H_ |
| OLD | NEW |