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

Side by Side Diff: ppapi/proxy/broker_dispatcher.h

Issue 11722017: Use an explicit PID for duplicating Pepper handles rather than the Channel's. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 11 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 | « ipc/ipc_channel.h ('k') | ppapi/proxy/broker_dispatcher.cc » ('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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_BROKER_DISPATCHER_H_ 5 #ifndef PPAPI_PROXY_BROKER_DISPATCHER_H_
6 #define PPAPI_PROXY_BROKER_DISPATCHER_H_ 6 #define PPAPI_PROXY_BROKER_DISPATCHER_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "ppapi/c/trusted/ppp_broker.h" 9 #include "ppapi/c/trusted/ppp_broker.h"
10 #include "ppapi/proxy/proxy_channel.h" 10 #include "ppapi/proxy/proxy_channel.h"
11 11
12 namespace ppapi { 12 namespace ppapi {
13 namespace proxy { 13 namespace proxy {
14 14
15 class PPAPI_PROXY_EXPORT BrokerDispatcher : public ProxyChannel { 15 class PPAPI_PROXY_EXPORT BrokerDispatcher : public ProxyChannel {
16 public: 16 public:
17 virtual ~BrokerDispatcher(); 17 virtual ~BrokerDispatcher();
18 18
19 // You must call this function before anything else. Returns true on success. 19 // You must call this function before anything else. Returns true on success.
20 // The delegate pointer must outlive this class, ownership is not 20 // The delegate pointer must outlive this class, ownership is not
21 // transferred. 21 // transferred.
22 virtual bool InitBrokerWithChannel(ProxyChannel::Delegate* delegate, 22 virtual bool InitBrokerWithChannel(ProxyChannel::Delegate* delegate,
23 base::ProcessId peer_pid,
23 const IPC::ChannelHandle& channel_handle, 24 const IPC::ChannelHandle& channel_handle,
24 bool is_client); 25 bool is_client);
25 26
26 // IPC::Listener implementation. 27 // IPC::Listener implementation.
27 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE; 28 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE;
28 29
29 protected: 30 protected:
30 // You must call InitBrokerWithChannel after the constructor. 31 // You must call InitBrokerWithChannel after the constructor.
31 explicit BrokerDispatcher(PP_ConnectInstance_Func connect_instance); 32 explicit BrokerDispatcher(PP_ConnectInstance_Func connect_instance);
32 33
(...skipping 22 matching lines...) Expand all
55 explicit BrokerSideDispatcher(PP_ConnectInstance_Func connect_instance); 56 explicit BrokerSideDispatcher(PP_ConnectInstance_Func connect_instance);
56 57
57 // IPC::Listener implementation. 58 // IPC::Listener implementation.
58 virtual void OnChannelError() OVERRIDE; 59 virtual void OnChannelError() OVERRIDE;
59 }; 60 };
60 61
61 } // namespace proxy 62 } // namespace proxy
62 } // namespace ppapi 63 } // namespace ppapi
63 64
64 #endif // PPAPI_PROXY_BROKER_DISPATCHER_H_ 65 #endif // PPAPI_PROXY_BROKER_DISPATCHER_H_
OLDNEW
« no previous file with comments | « ipc/ipc_channel.h ('k') | ppapi/proxy/broker_dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698