| 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" |
| 11 #include "ipc/ipc_platform_file.h" | 11 #include "ipc/ipc_platform_file.h" |
| 12 #include "ipc/ipc_sync_channel.h" | 12 #include "ipc/ipc_sync_channel.h" |
| 13 #include "ppapi/proxy/ppapi_proxy_export.h" |
| 13 | 14 |
| 14 namespace base { | 15 namespace base { |
| 15 class MessageLoopProxy; | 16 class MessageLoopProxy; |
| 16 class WaitableEvent; | 17 class WaitableEvent; |
| 17 } | 18 } |
| 18 | 19 |
| 19 namespace IPC { | 20 namespace IPC { |
| 20 class TestSink; | 21 class TestSink; |
| 21 } | 22 } |
| 22 | 23 |
| 23 namespace ppapi { | 24 namespace ppapi { |
| 24 namespace proxy { | 25 namespace proxy { |
| 25 | 26 |
| 26 class VarSerializationRules; | 27 class VarSerializationRules; |
| 27 | 28 |
| 28 class ProxyChannel : public IPC::Channel::Listener, | 29 class PPAPI_PROXY_EXPORT ProxyChannel |
| 29 public IPC::Message::Sender { | 30 : public IPC::Channel::Listener, |
| 31 public IPC::Message::Sender { |
| 30 public: | 32 public: |
| 31 typedef void (*ShutdownModuleFunc)(); | 33 typedef void (*ShutdownModuleFunc)(); |
| 32 | 34 |
| 33 class Delegate { | 35 class Delegate { |
| 34 public: | 36 public: |
| 35 // Returns the dedicated message loop for processing IPC requests. | 37 // Returns the dedicated message loop for processing IPC requests. |
| 36 virtual base::MessageLoopProxy* GetIPCMessageLoop() = 0; | 38 virtual base::MessageLoopProxy* GetIPCMessageLoop() = 0; |
| 37 | 39 |
| 38 // Returns the event object that becomes signalled when the main thread's | 40 // Returns the event object that becomes signalled when the main thread's |
| 39 // message loop exits. | 41 // message loop exits. |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 101 // remote side has crashed. | 103 // remote side has crashed. |
| 102 scoped_ptr<IPC::SyncChannel> channel_; | 104 scoped_ptr<IPC::SyncChannel> channel_; |
| 103 | 105 |
| 104 DISALLOW_COPY_AND_ASSIGN(ProxyChannel); | 106 DISALLOW_COPY_AND_ASSIGN(ProxyChannel); |
| 105 }; | 107 }; |
| 106 | 108 |
| 107 } // namespace proxy | 109 } // namespace proxy |
| 108 } // namespace ppapi | 110 } // namespace ppapi |
| 109 | 111 |
| 110 #endif // PPAPI_PROXY_PROXY_CHANNEL_H_ | 112 #endif // PPAPI_PROXY_PROXY_CHANNEL_H_ |
| OLD | NEW |