Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(320)

Side by Side Diff: ppapi/proxy/interface_proxy.cc

Issue 4229002: Core PPAPI proxy files. This includes the dispatcher which is the control poi... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
Property Changes:
Added: svn:eol-style
+ LF
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #include "ppapi/proxy/interface_proxy.h"
6
7 #include "base/logging.h"
8 #include "ppapi/proxy/dispatcher.h"
9
10 namespace pp {
11 namespace proxy {
12
13 InterfaceProxy::InterfaceProxy(Dispatcher* dispatcher,
14 const void* target_interface)
15 : dispatcher_(dispatcher),
16 target_interface_(target_interface) {
17 }
18
19 InterfaceProxy::~InterfaceProxy() {
20 }
21
22 bool InterfaceProxy::Send(IPC::Message* msg) {
23 return dispatcher_->Send(msg);
24 }
25
26 uint32 InterfaceProxy::SendCallback(PP_CompletionCallback callback) {
27 return dispatcher_->callback_tracker().SendCallback(callback);
28 }
29
30 PP_CompletionCallback InterfaceProxy::ReceiveCallback(
31 uint32 serialized_callback) {
32 return dispatcher_->callback_tracker().ReceiveCallback(serialized_callback);
33 }
34
35 } // namespace proxy
36 } // namespace pp
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698