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 | 13 |
14 namespace base { | 14 namespace base { |
15 class MessageLoopProxy; | 15 class MessageLoopProxy; |
16 class WaitableEvent; | 16 class WaitableEvent; |
17 } | 17 } |
18 | 18 |
19 namespace IPC { | 19 namespace IPC { |
20 class TestSink; | 20 class TestSink; |
21 } | 21 } |
22 | 22 |
23 namespace pp { | 23 namespace ppapi { |
24 namespace proxy { | 24 namespace proxy { |
25 | 25 |
26 class VarSerializationRules; | 26 class VarSerializationRules; |
27 | 27 |
28 class ProxyChannel : public IPC::Channel::Listener, | 28 class ProxyChannel : public IPC::Channel::Listener, |
29 public IPC::Message::Sender { | 29 public IPC::Message::Sender { |
30 public: | 30 public: |
31 typedef void (*ShutdownModuleFunc)(); | 31 typedef void (*ShutdownModuleFunc)(); |
32 | 32 |
33 class Delegate { | 33 class Delegate { |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
98 IPC::TestSink* test_sink_; | 98 IPC::TestSink* test_sink_; |
99 | 99 |
100 // Will be null for some tests when there is a test_sink_, and if the | 100 // Will be null for some tests when there is a test_sink_, and if the |
101 // remote side has crashed. | 101 // remote side has crashed. |
102 scoped_ptr<IPC::SyncChannel> channel_; | 102 scoped_ptr<IPC::SyncChannel> channel_; |
103 | 103 |
104 DISALLOW_COPY_AND_ASSIGN(ProxyChannel); | 104 DISALLOW_COPY_AND_ASSIGN(ProxyChannel); |
105 }; | 105 }; |
106 | 106 |
107 } // namespace proxy | 107 } // namespace proxy |
108 } // namespace pp | 108 } // namespace ppapi |
109 | 109 |
110 #endif // PPAPI_PROXY_PROXY_CHANNEL_H_ | 110 #endif // PPAPI_PROXY_PROXY_CHANNEL_H_ |
OLD | NEW |