Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. |
|
bbudge
2011/08/16 22:40:49
2011
| |
| 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 #include "ppapi/proxy/interface_proxy.h" | 5 #include "ppapi/proxy/interface_proxy.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "ppapi/proxy/dispatcher.h" | 8 #include "ppapi/proxy/dispatcher.h" |
| 9 | 9 |
| 10 namespace pp { | 10 namespace ppapi { |
| 11 namespace proxy { | 11 namespace proxy { |
| 12 | 12 |
| 13 InterfaceProxy::InterfaceProxy(Dispatcher* dispatcher, | 13 InterfaceProxy::InterfaceProxy(Dispatcher* dispatcher, |
| 14 const void* target_interface) | 14 const void* target_interface) |
| 15 : dispatcher_(dispatcher), | 15 : dispatcher_(dispatcher), |
| 16 target_interface_(target_interface) { | 16 target_interface_(target_interface) { |
| 17 } | 17 } |
| 18 | 18 |
| 19 InterfaceProxy::~InterfaceProxy() { | 19 InterfaceProxy::~InterfaceProxy() { |
| 20 } | 20 } |
| 21 | 21 |
| 22 bool InterfaceProxy::Send(IPC::Message* msg) { | 22 bool InterfaceProxy::Send(IPC::Message* msg) { |
| 23 return dispatcher_->Send(msg); | 23 return dispatcher_->Send(msg); |
| 24 } | 24 } |
| 25 | 25 |
| 26 uint32 InterfaceProxy::SendCallback(PP_CompletionCallback callback) { | 26 uint32 InterfaceProxy::SendCallback(PP_CompletionCallback callback) { |
| 27 return dispatcher_->callback_tracker().SendCallback(callback); | 27 return dispatcher_->callback_tracker().SendCallback(callback); |
| 28 } | 28 } |
| 29 | 29 |
| 30 PP_CompletionCallback InterfaceProxy::ReceiveCallback( | 30 PP_CompletionCallback InterfaceProxy::ReceiveCallback( |
| 31 uint32 serialized_callback) { | 31 uint32 serialized_callback) { |
| 32 return dispatcher_->callback_tracker().ReceiveCallback(serialized_callback); | 32 return dispatcher_->callback_tracker().ReceiveCallback(serialized_callback); |
| 33 } | 33 } |
| 34 | 34 |
| 35 } // namespace proxy | 35 } // namespace proxy |
| 36 } // namespace pp | 36 } // namespace ppapi |
| OLD | NEW |