| OLD | NEW |
| 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 14 matching lines...) Expand all Loading... |
| 25 namespace proxy { | 25 namespace proxy { |
| 26 | 26 |
| 27 class VarSerializationRules; | 27 class VarSerializationRules; |
| 28 | 28 |
| 29 class PPAPI_PROXY_EXPORT ProxyChannel | 29 class PPAPI_PROXY_EXPORT ProxyChannel |
| 30 : public IPC::Channel::Listener, | 30 : public IPC::Channel::Listener, |
| 31 public IPC::Message::Sender { | 31 public IPC::Message::Sender { |
| 32 public: | 32 public: |
| 33 typedef void (*ShutdownModuleFunc)(); | 33 typedef void (*ShutdownModuleFunc)(); |
| 34 | 34 |
| 35 class Delegate { | 35 class PPAPI_PROXY_EXPORT Delegate { |
| 36 public: | 36 public: |
| 37 virtual ~Delegate() {} |
| 38 |
| 37 // Returns the dedicated message loop for processing IPC requests. | 39 // Returns the dedicated message loop for processing IPC requests. |
| 38 virtual base::MessageLoopProxy* GetIPCMessageLoop() = 0; | 40 virtual base::MessageLoopProxy* GetIPCMessageLoop() = 0; |
| 39 | 41 |
| 40 // Returns the event object that becomes signalled when the main thread's | 42 // Returns the event object that becomes signalled when the main thread's |
| 41 // message loop exits. | 43 // message loop exits. |
| 42 virtual base::WaitableEvent* GetShutdownEvent() = 0; | 44 virtual base::WaitableEvent* GetShutdownEvent() = 0; |
| 43 }; | 45 }; |
| 44 | 46 |
| 45 virtual ~ProxyChannel(); | 47 virtual ~ProxyChannel(); |
| 46 | 48 |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 // remote side has crashed. | 105 // remote side has crashed. |
| 104 scoped_ptr<IPC::SyncChannel> channel_; | 106 scoped_ptr<IPC::SyncChannel> channel_; |
| 105 | 107 |
| 106 DISALLOW_COPY_AND_ASSIGN(ProxyChannel); | 108 DISALLOW_COPY_AND_ASSIGN(ProxyChannel); |
| 107 }; | 109 }; |
| 108 | 110 |
| 109 } // namespace proxy | 111 } // namespace proxy |
| 110 } // namespace ppapi | 112 } // namespace ppapi |
| 111 | 113 |
| 112 #endif // PPAPI_PROXY_PROXY_CHANNEL_H_ | 114 #endif // PPAPI_PROXY_PROXY_CHANNEL_H_ |
| OLD | NEW |