| 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 PPAPI_PROXY_DISPATCHER_H_ | 5 #ifndef PPAPI_PROXY_DISPATCHER_H_ |
| 6 #define PPAPI_PROXY_DISPATCHER_H_ | 6 #define PPAPI_PROXY_DISPATCHER_H_ |
| 7 | 7 |
| 8 #include <set> | 8 #include <set> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 // created so far. | 61 // created so far. |
| 62 InterfaceProxy* GetInterfaceProxy(ApiID id); | 62 InterfaceProxy* GetInterfaceProxy(ApiID id); |
| 63 | 63 |
| 64 // Returns the pointer to the IO thread for processing IPC messages. | 64 // Returns the pointer to the IO thread for processing IPC messages. |
| 65 // TODO(brettw) remove this. It's a hack to support the Flash | 65 // TODO(brettw) remove this. It's a hack to support the Flash |
| 66 // ModuleLocalThreadAdapter. When the thread stuff is sorted out, this | 66 // ModuleLocalThreadAdapter. When the thread stuff is sorted out, this |
| 67 // implementation detail should be hidden. | 67 // implementation detail should be hidden. |
| 68 base::MessageLoopProxy* GetIPCMessageLoop(); | 68 base::MessageLoopProxy* GetIPCMessageLoop(); |
| 69 | 69 |
| 70 // Adds the given filter to the IO thread. Takes ownership of the pointer. | 70 // Adds the given filter to the IO thread. Takes ownership of the pointer. |
| 71 // TODO(brettw) remove this. It's a hack to support the Flash | |
| 72 // ModuleLocalThreadAdapter. When the thread stuff is sorted out, this | |
| 73 // implementation detail should be hidden. | |
| 74 void AddIOThreadMessageFilter(IPC::ChannelProxy::MessageFilter* filter); | 71 void AddIOThreadMessageFilter(IPC::ChannelProxy::MessageFilter* filter); |
| 75 | 72 |
| 76 // TODO(brettw): What is this comment referring to? | 73 // TODO(brettw): What is this comment referring to? |
| 77 // Called if the remote side is declaring to us which interfaces it supports | 74 // Called if the remote side is declaring to us which interfaces it supports |
| 78 // so we don't have to query for each one. We'll pre-create proxies for | 75 // so we don't have to query for each one. We'll pre-create proxies for |
| 79 // each of the given interfaces. | 76 // each of the given interfaces. |
| 80 | 77 |
| 81 // IPC::Channel::Listener implementation. | 78 // IPC::Channel::Listener implementation. |
| 82 virtual bool OnMessageReceived(const IPC::Message& msg); | 79 virtual bool OnMessageReceived(const IPC::Message& msg); |
| 83 | 80 |
| (...skipping 28 matching lines...) Expand all Loading... |
| 112 | 109 |
| 113 scoped_refptr<VarSerializationRules> serialization_rules_; | 110 scoped_refptr<VarSerializationRules> serialization_rules_; |
| 114 | 111 |
| 115 DISALLOW_COPY_AND_ASSIGN(Dispatcher); | 112 DISALLOW_COPY_AND_ASSIGN(Dispatcher); |
| 116 }; | 113 }; |
| 117 | 114 |
| 118 } // namespace proxy | 115 } // namespace proxy |
| 119 } // namespace ppapi | 116 } // namespace ppapi |
| 120 | 117 |
| 121 #endif // PPAPI_PROXY_DISPATCHER_H_ | 118 #endif // PPAPI_PROXY_DISPATCHER_H_ |
| OLD | NEW |