OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 CONTENT_RENDERER_DEVTOOLS_AGENT_FILTER_H_ | 5 #ifndef CONTENT_RENDERER_DEVTOOLS_AGENT_FILTER_H_ |
6 #define CONTENT_RENDERER_DEVTOOLS_AGENT_FILTER_H_ | 6 #define CONTENT_RENDERER_DEVTOOLS_AGENT_FILTER_H_ |
7 #pragma once | |
8 | 7 |
9 #include <string> | 8 #include <string> |
10 | 9 |
11 #include "ipc/ipc_channel_proxy.h" | 10 #include "ipc/ipc_channel_proxy.h" |
12 | 11 |
13 class MessageLoop; | 12 class MessageLoop; |
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 |
(...skipping 17 matching lines...) Expand all Loading... |
35 private: | 34 private: |
36 void OnDispatchOnInspectorBackend(const std::string& message); | 35 void OnDispatchOnInspectorBackend(const std::string& message); |
37 | 36 |
38 bool message_handled_; | 37 bool message_handled_; |
39 MessageLoop* render_thread_loop_; | 38 MessageLoop* render_thread_loop_; |
40 | 39 |
41 DISALLOW_COPY_AND_ASSIGN(DevToolsAgentFilter); | 40 DISALLOW_COPY_AND_ASSIGN(DevToolsAgentFilter); |
42 }; | 41 }; |
43 | 42 |
44 #endif // CONTENT_RENDERER_DEVTOOLS_AGENT_FILTER_H_ | 43 #endif // CONTENT_RENDERER_DEVTOOLS_AGENT_FILTER_H_ |
OLD | NEW |