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

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

Issue 10069035: Add a way to implement GetInterface in the broker. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 8 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
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 #ifndef PPAPI_PROXY_PROXY_CHANNEL_H_ 5 #ifndef PPAPI_PROXY_PROXY_CHANNEL_H_
6 #define PPAPI_PROXY_PROXY_CHANNEL_H_ 6 #define PPAPI_PROXY_PROXY_CHANNEL_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "base/process.h" 9 #include "base/process.h"
10 #include "ipc/ipc_message.h" 10 #include "ipc/ipc_message.h"
(...skipping 10 matching lines...) Expand all
21 class TestSink; 21 class TestSink;
22 } 22 }
23 23
24 namespace ppapi { 24 namespace ppapi {
25 namespace proxy { 25 namespace proxy {
26 26
27 class PPAPI_PROXY_EXPORT ProxyChannel 27 class PPAPI_PROXY_EXPORT ProxyChannel
28 : public IPC::Channel::Listener, 28 : public IPC::Channel::Listener,
29 public IPC::Message::Sender { 29 public IPC::Message::Sender {
30 public: 30 public:
31 typedef void (*ShutdownModuleFunc)();
32
33 class PPAPI_PROXY_EXPORT Delegate { 31 class PPAPI_PROXY_EXPORT Delegate {
34 public: 32 public:
35 virtual ~Delegate() {} 33 virtual ~Delegate() {}
36 34
37 // Returns the dedicated message loop for processing IPC requests. 35 // Returns the dedicated message loop for processing IPC requests.
38 virtual base::MessageLoopProxy* GetIPCMessageLoop() = 0; 36 virtual base::MessageLoopProxy* GetIPCMessageLoop() = 0;
39 37
40 // Returns the event object that becomes signalled when the main thread's 38 // Returns the event object that becomes signalled when the main thread's
41 // message loop exits. 39 // message loop exits.
42 virtual base::WaitableEvent* GetShutdownEvent() = 0; 40 virtual base::WaitableEvent* GetShutdownEvent() = 0;
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 // remote side has crashed. 101 // remote side has crashed.
104 scoped_ptr<IPC::SyncChannel> channel_; 102 scoped_ptr<IPC::SyncChannel> channel_;
105 103
106 DISALLOW_COPY_AND_ASSIGN(ProxyChannel); 104 DISALLOW_COPY_AND_ASSIGN(ProxyChannel);
107 }; 105 };
108 106
109 } // namespace proxy 107 } // namespace proxy
110 } // namespace ppapi 108 } // namespace ppapi
111 109
112 #endif // PPAPI_PROXY_PROXY_CHANNEL_H_ 110 #endif // PPAPI_PROXY_PROXY_CHANNEL_H_
OLDNEW
« ppapi/cpp/ppp_entrypoints.cc ('K') | « ppapi/proxy/plugin_dispatcher.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698