| 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 #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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 return serialization_rules_.get(); | 62 return serialization_rules_.get(); |
| 63 } | 63 } |
| 64 | 64 |
| 65 // Wrapper for calling the local GetInterface function. | 65 // Wrapper for calling the local GetInterface function. |
| 66 const void* GetLocalInterface(const char* interface_name); | 66 const void* GetLocalInterface(const char* interface_name); |
| 67 | 67 |
| 68 // Returns the pointer to the IO thread for processing IPC messages. | 68 // Returns the pointer to the IO thread for processing IPC messages. |
| 69 // TODO(brettw) remove this. It's a hack to support the Flash | 69 // TODO(brettw) remove this. It's a hack to support the Flash |
| 70 // ModuleLocalThreadAdapter. When the thread stuff is sorted out, this | 70 // ModuleLocalThreadAdapter. When the thread stuff is sorted out, this |
| 71 // implementation detail should be hidden. | 71 // implementation detail should be hidden. |
| 72 MessageLoop* GetIPCMessageLoop(); | 72 base::MessageLoopProxy* GetIPCMessageLoop(); |
| 73 | 73 |
| 74 // Adds the given filter to the IO thread. Takes ownership of the pointer. | 74 // Adds the given filter to the IO thread. Takes ownership of the pointer. |
| 75 // TODO(brettw) remove this. It's a hack to support the Flash | 75 // TODO(brettw) remove this. It's a hack to support the Flash |
| 76 // ModuleLocalThreadAdapter. When the thread stuff is sorted out, this | 76 // ModuleLocalThreadAdapter. When the thread stuff is sorted out, this |
| 77 // implementation detail should be hidden. | 77 // implementation detail should be hidden. |
| 78 void AddIOThreadMessageFilter(IPC::ChannelProxy::MessageFilter* filter); | 78 void AddIOThreadMessageFilter(IPC::ChannelProxy::MessageFilter* filter); |
| 79 | 79 |
| 80 // TODO(brettw): What is this comment referring to? | 80 // TODO(brettw): What is this comment referring to? |
| 81 // Called if the remote side is declaring to us which interfaces it supports | 81 // Called if the remote side is declaring to us which interfaces it supports |
| 82 // so we don't have to query for each one. We'll pre-create proxies for | 82 // so we don't have to query for each one. We'll pre-create proxies for |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 121 | 121 |
| 122 scoped_ptr<VarSerializationRules> serialization_rules_; | 122 scoped_ptr<VarSerializationRules> serialization_rules_; |
| 123 | 123 |
| 124 DISALLOW_COPY_AND_ASSIGN(Dispatcher); | 124 DISALLOW_COPY_AND_ASSIGN(Dispatcher); |
| 125 }; | 125 }; |
| 126 | 126 |
| 127 } // namespace proxy | 127 } // namespace proxy |
| 128 } // namespace pp | 128 } // namespace pp |
| 129 | 129 |
| 130 #endif // PPAPI_PROXY_DISPATCHER_H_ | 130 #endif // PPAPI_PROXY_DISPATCHER_H_ |
| OLD | NEW |