OLD | NEW |
1 // Copyright (c) 2010 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 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 <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
96 } | 96 } |
97 | 97 |
98 // Called if the remote side is declaring to us which interfaces it supports | 98 // Called if the remote side is declaring to us which interfaces it supports |
99 // so we don't have to query for each one. We'll pre-create proxies for | 99 // so we don't have to query for each one. We'll pre-create proxies for |
100 // each of the given interfaces. | 100 // each of the given interfaces. |
101 | 101 |
102 // IPC::Message::Sender implementation. | 102 // IPC::Message::Sender implementation. |
103 virtual bool Send(IPC::Message* msg); | 103 virtual bool Send(IPC::Message* msg); |
104 | 104 |
105 // IPC::Channel::Listener implementation. | 105 // IPC::Channel::Listener implementation. |
106 virtual void OnMessageReceived(const IPC::Message& msg); | 106 virtual bool OnMessageReceived(const IPC::Message& msg); |
107 | 107 |
108 IPC::SyncChannel* channel() const { | 108 IPC::SyncChannel* channel() const { |
109 return channel_.get(); | 109 return channel_.get(); |
110 } | 110 } |
111 | 111 |
112 CallbackTracker& callback_tracker() { | 112 CallbackTracker& callback_tracker() { |
113 return callback_tracker_; | 113 return callback_tracker_; |
114 } | 114 } |
115 | 115 |
116 protected: | 116 protected: |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
189 | 189 |
190 scoped_ptr<VarSerializationRules> serialization_rules_; | 190 scoped_ptr<VarSerializationRules> serialization_rules_; |
191 | 191 |
192 DISALLOW_COPY_AND_ASSIGN(Dispatcher); | 192 DISALLOW_COPY_AND_ASSIGN(Dispatcher); |
193 }; | 193 }; |
194 | 194 |
195 } // namespace proxy | 195 } // namespace proxy |
196 } // namespace pp | 196 } // namespace pp |
197 | 197 |
198 #endif // PPAPI_PROXY_DISPATCHER_H_ | 198 #endif // PPAPI_PROXY_DISPATCHER_H_ |
OLD | NEW |