OLD | NEW |
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 #include <map> | 5 #include <map> |
6 #include <string> | 6 #include <string> |
7 | 7 |
8 #include "base/message_loop.h" | 8 #include "base/message_loop.h" |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 #include "base/synchronization/waitable_event.h" | 10 #include "base/synchronization/waitable_event.h" |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
107 | 107 |
108 void Init(base::MessageLoopProxy* ipc_message_loop, | 108 void Init(base::MessageLoopProxy* ipc_message_loop, |
109 base::WaitableEvent* shutdown_event) { | 109 base::WaitableEvent* shutdown_event) { |
110 ipc_message_loop_ = ipc_message_loop; | 110 ipc_message_loop_ = ipc_message_loop; |
111 shutdown_event_ = shutdown_event; | 111 shutdown_event_ = shutdown_event; |
112 } | 112 } |
113 | 113 |
114 // ProxyChannel::Delegate implementation. | 114 // ProxyChannel::Delegate implementation. |
115 virtual base::MessageLoopProxy* GetIPCMessageLoop() OVERRIDE; | 115 virtual base::MessageLoopProxy* GetIPCMessageLoop() OVERRIDE; |
116 virtual base::WaitableEvent* GetShutdownEvent() OVERRIDE; | 116 virtual base::WaitableEvent* GetShutdownEvent() OVERRIDE; |
| 117 virtual IPC::PlatformFileForTransit ShareHandleWithRemote( |
| 118 base::PlatformFile handle, |
| 119 const IPC::SyncChannel& /* channel */, |
| 120 bool should_close_source) OVERRIDE; |
117 | 121 |
118 // PluginDispatcher::PluginDelegate implementation. | 122 // PluginDispatcher::PluginDelegate implementation. |
119 virtual std::set<PP_Instance>* GetGloballySeenInstanceIDSet() OVERRIDE; | 123 virtual std::set<PP_Instance>* GetGloballySeenInstanceIDSet() OVERRIDE; |
120 virtual uint32 Register(PluginDispatcher* plugin_dispatcher) OVERRIDE; | 124 virtual uint32 Register(PluginDispatcher* plugin_dispatcher) OVERRIDE; |
121 virtual void Unregister(uint32 plugin_dispatcher_id) OVERRIDE; | 125 virtual void Unregister(uint32 plugin_dispatcher_id) OVERRIDE; |
122 | 126 |
123 // PluginPepperDelegate implementation. | 127 // PluginPepperDelegate implementation. |
124 virtual bool SendToBrowser(IPC::Message* msg) OVERRIDE; | 128 virtual bool SendToBrowser(IPC::Message* msg) OVERRIDE; |
125 virtual void PreCacheFont(const void* logfontw) OVERRIDE; | 129 virtual void PreCacheFont(const void* logfontw) OVERRIDE; |
126 | 130 |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
182 | 186 |
183 void Init(base::MessageLoopProxy* ipc_message_loop, | 187 void Init(base::MessageLoopProxy* ipc_message_loop, |
184 base::WaitableEvent* shutdown_event) { | 188 base::WaitableEvent* shutdown_event) { |
185 ipc_message_loop_ = ipc_message_loop; | 189 ipc_message_loop_ = ipc_message_loop; |
186 shutdown_event_ = shutdown_event; | 190 shutdown_event_ = shutdown_event; |
187 } | 191 } |
188 | 192 |
189 // ProxyChannel::Delegate implementation. | 193 // ProxyChannel::Delegate implementation. |
190 virtual base::MessageLoopProxy* GetIPCMessageLoop(); | 194 virtual base::MessageLoopProxy* GetIPCMessageLoop(); |
191 virtual base::WaitableEvent* GetShutdownEvent(); | 195 virtual base::WaitableEvent* GetShutdownEvent(); |
| 196 virtual IPC::PlatformFileForTransit ShareHandleWithRemote( |
| 197 base::PlatformFile handle, |
| 198 const IPC::SyncChannel& /* channel */, |
| 199 bool should_close_source) OVERRIDE; |
192 | 200 |
193 private: | 201 private: |
194 base::MessageLoopProxy* ipc_message_loop_; // Weak | 202 base::MessageLoopProxy* ipc_message_loop_; // Weak |
195 base::WaitableEvent* shutdown_event_; // Weak | 203 base::WaitableEvent* shutdown_event_; // Weak |
196 | 204 |
197 DISALLOW_COPY_AND_ASSIGN(DelegateMock); | 205 DISALLOW_COPY_AND_ASSIGN(DelegateMock); |
198 }; | 206 }; |
199 | 207 |
200 private: | 208 private: |
201 class MockSyncMessageStatusReceiver; | 209 class MockSyncMessageStatusReceiver; |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
256 // stopping the harnesses. | 264 // stopping the harnesses. |
257 ProxyTestHarnessBase* remote_harness_; | 265 ProxyTestHarnessBase* remote_harness_; |
258 ProxyTestHarnessBase* local_harness_; | 266 ProxyTestHarnessBase* local_harness_; |
259 | 267 |
260 base::WaitableEvent channel_created_; | 268 base::WaitableEvent channel_created_; |
261 base::WaitableEvent shutdown_event_; | 269 base::WaitableEvent shutdown_event_; |
262 }; | 270 }; |
263 | 271 |
264 } // namespace proxy | 272 } // namespace proxy |
265 } // namespace ppapi | 273 } // namespace ppapi |
OLD | NEW |