| 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 #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/process.h" | 9 #include "base/process/process.h" |
| 10 #include "ipc/ipc_listener.h" | 10 #include "ipc/ipc_listener.h" |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 // returns a handle that should be sent in exactly one IPC message. Upon | 63 // returns a handle that should be sent in exactly one IPC message. Upon |
| 64 // receipt, the remote side then owns that handle. Note: if sending the | 64 // receipt, the remote side then owns that handle. Note: if sending the |
| 65 // message fails, the returned handle is properly closed by the IPC system. If | 65 // message fails, the returned handle is properly closed by the IPC system. If |
| 66 // should_close_source is set to true, the original handle is closed by this | 66 // should_close_source is set to true, the original handle is closed by this |
| 67 // operation and should not be used again. | 67 // operation and should not be used again. |
| 68 IPC::PlatformFileForTransit ShareHandleWithRemote( | 68 IPC::PlatformFileForTransit ShareHandleWithRemote( |
| 69 base::PlatformFile handle, | 69 base::PlatformFile handle, |
| 70 bool should_close_source); | 70 bool should_close_source); |
| 71 | 71 |
| 72 // IPC::Sender implementation. | 72 // IPC::Sender implementation. |
| 73 virtual bool Send(IPC::Message* msg) OVERRIDE; | 73 virtual bool Send(IPC::Message* msg) override; |
| 74 | 74 |
| 75 // IPC::Listener implementation. | 75 // IPC::Listener implementation. |
| 76 virtual void OnChannelError() OVERRIDE; | 76 virtual void OnChannelError() override; |
| 77 | 77 |
| 78 // Will be NULL in some unit tests and if the remote side has crashed. | 78 // Will be NULL in some unit tests and if the remote side has crashed. |
| 79 IPC::SyncChannel* channel() const { | 79 IPC::SyncChannel* channel() const { |
| 80 return channel_.get(); | 80 return channel_.get(); |
| 81 } | 81 } |
| 82 | 82 |
| 83 #if defined(OS_POSIX) && !defined(OS_NACL) | 83 #if defined(OS_POSIX) && !defined(OS_NACL) |
| 84 int TakeRendererFD(); | 84 int TakeRendererFD(); |
| 85 #endif | 85 #endif |
| 86 | 86 |
| (...skipping 30 matching lines...) Expand all Loading... |
| 117 // remote side has crashed. | 117 // remote side has crashed. |
| 118 scoped_ptr<IPC::SyncChannel> channel_; | 118 scoped_ptr<IPC::SyncChannel> channel_; |
| 119 | 119 |
| 120 DISALLOW_COPY_AND_ASSIGN(ProxyChannel); | 120 DISALLOW_COPY_AND_ASSIGN(ProxyChannel); |
| 121 }; | 121 }; |
| 122 | 122 |
| 123 } // namespace proxy | 123 } // namespace proxy |
| 124 } // namespace ppapi | 124 } // namespace ppapi |
| 125 | 125 |
| 126 #endif // PPAPI_PROXY_PROXY_CHANNEL_H_ | 126 #endif // PPAPI_PROXY_PROXY_CHANNEL_H_ |
| OLD | NEW |