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

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

Issue 8364040: Revert 106677 (caused several PPAPI test timeouts, see http://crbug.com/101154) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 2 months 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
« no previous file with comments | « ppapi/proxy/interface_proxy.h ('k') | ppapi/proxy/plugin_dispatcher.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 #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 ppapi { 10 namespace ppapi {
11 namespace proxy { 11 namespace proxy {
12 12
13 InterfaceProxy::InterfaceProxy(Dispatcher* dispatcher) 13 InterfaceProxy::InterfaceProxy(Dispatcher* dispatcher)
14 : dispatcher_(dispatcher) { 14 : dispatcher_(dispatcher) {
15 } 15 }
16 16
17 InterfaceProxy::~InterfaceProxy() { 17 InterfaceProxy::~InterfaceProxy() {
18 } 18 }
19 19
20 bool InterfaceProxy::Send(IPC::Message* msg) { 20 bool InterfaceProxy::Send(IPC::Message* msg) {
21 return dispatcher_->Send(msg); 21 return dispatcher_->Send(msg);
22 } 22 }
23 23
24 uint32 InterfaceProxy::SendCallback(PP_CompletionCallback callback) {
25 return dispatcher_->callback_tracker().SendCallback(callback);
26 }
27
28 PP_CompletionCallback InterfaceProxy::ReceiveCallback(
29 uint32 serialized_callback) {
30 return dispatcher_->callback_tracker().ReceiveCallback(serialized_callback);
31 }
32
24 } // namespace proxy 33 } // namespace proxy
25 } // namespace ppapi 34 } // namespace ppapi
OLDNEW
« no previous file with comments | « ppapi/proxy/interface_proxy.h ('k') | ppapi/proxy/plugin_dispatcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698