/external/chromium_org/base/ |
sync_socket_nacl.cc | 16 const SyncSocket::Handle SyncSocket::kInvalidHandle = -1; 18 SyncSocket::SyncSocket() : handle_(kInvalidHandle) { 21 SyncSocket::~SyncSocket() { 26 bool SyncSocket::CreatePair(SyncSocket* socket_a, SyncSocket* socket_b) { 30 bool SyncSocket::Close() [all...] |
sync_socket.h | 25 class BASE_EXPORT SyncSocket { 34 SyncSocket(); 36 // Creates a SyncSocket from a Handle. Used in transport. 37 explicit SyncSocket(Handle handle) : handle_(handle) {} 38 virtual ~SyncSocket(); 43 static bool CreatePair(SyncSocket* socket_a, SyncSocket* socket_b); 45 // Closes the SyncSocket. Returns true on success, false on failure. 48 // Sends the message to the remote peer of the SyncSocket. 56 // Receives a message from an SyncSocket [all...] |
sync_socket_posix.cc | 32 size_t SendHelper(SyncSocket::Handle handle, 37 DCHECK_NE(handle, SyncSocket::kInvalidHandle); 43 bool CloseHandle(SyncSocket::Handle handle) { 44 if (handle != SyncSocket::kInvalidHandle && close(handle) < 0) { 54 const SyncSocket::Handle SyncSocket::kInvalidHandle = -1; 56 SyncSocket::SyncSocket() : handle_(kInvalidHandle) {} 58 SyncSocket::~SyncSocket() { [all...] |
sync_socket_win.cc | 32 DCHECK_EQ(*socket_a, SyncSocket::kInvalidHandle); 33 DCHECK_EQ(*socket_b, SyncSocket::kInvalidHandle); 127 DCHECK_NE(file, SyncSocket::kInvalidHandle); 196 const SyncSocket::Handle SyncSocket::kInvalidHandle = INVALID_HANDLE_VALUE; 199 SyncSocket::SyncSocket() : handle_(kInvalidHandle) {} 201 SyncSocket::~SyncSocket() { 206 bool SyncSocket::CreatePair(SyncSocket* socket_a, SyncSocket* socket_b) [all...] |
sync_socket_unittest.cc | 17 explicit HangingReceiveThread(base::SyncSocket* socket) 40 base::SyncSocket* socket_; 49 void SendReceivePeek(base::SyncSocket* socket_a, base::SyncSocket* socket_b) { 100 TEST(SyncSocket, NormalSendReceivePeek) { 101 NormalSendReceivePeek<base::SyncSocket>(); 104 TEST(SyncSocket, ClonedSendReceivePeek) { 105 ClonedSendReceivePeek<base::SyncSocket>();
|
async_socket_io_handler_posix.cc | 14 : socket_(base::SyncSocket::kInvalidHandle), 67 bool AsyncSocketIoHandler::Initialize(base::SyncSocket::Handle socket, 69 DCHECK_EQ(socket_, base::SyncSocket::kInvalidHandle); 76 // SyncSocket is blocking by default, so let's convert it to non-blocking. 91 if (!is_watching_ && socket_ != base::SyncSocket::kInvalidHandle) {
|
async_socket_io_handler_win.cc | 10 : socket_(base::SyncSocket::kInvalidHandle), 45 DCHECK_NE(socket_, base::SyncSocket::kInvalidHandle); 58 bool AsyncSocketIoHandler::Initialize(base::SyncSocket::Handle socket, 61 DCHECK_EQ(socket_, base::SyncSocket::kInvalidHandle);
|
async_socket_io_handler.h | 67 bool Initialize(base::SyncSocket::Handle socket, 90 base::SyncSocket::Handle socket_;
|
/external/qemu/android/ |
sync-utils.h | 29 typedef struct SyncSocket SyncSocket; 40 * Initialized SyncSocket descriptor on success, or NULL on failure. 42 SyncSocket* syncsocket_connect(int fd, SockAddress* sockaddr, int timeout); 51 * Initialized SyncSocket descriptor on success, or NULL on failure. 53 SyncSocket* syncsocket_init(int fd); 56 * Closes SyncSocket descriptor obtained from syncsocket_connect routine. 58 * ssocket - SyncSocket descriptor obtained from syncsocket_connect routine. 60 void syncsocket_close(SyncSocket* ssocket); 63 * Frees memory allocated for SyncSocket descriptor obtained fro [all...] |
sync-utils.c | 32 struct SyncSocket { 40 SyncSocket* 43 SyncSocket* sync_socket; 53 SyncSocket* 58 SyncSocket* sync_socket = NULL; 87 // We're now connected. Lets initialize SyncSocket instance 89 sync_socket = malloc(sizeof(SyncSocket)); 102 syncsocket_close(SyncSocket* ssocket) 114 syncsocket_free(SyncSocket* ssocket) 125 syncsocket_start_read(SyncSocket* ssocket [all...] |
/external/chromium/base/ |
sync_socket.h | 23 class BASE_API SyncSocket { 31 // Creates a SyncSocket from a Handle. Used in transport. 32 explicit SyncSocket(Handle handle) : handle_(handle) { } 33 ~SyncSocket() { Close(); } 38 static bool CreatePair(SyncSocket* pair[2]); 40 // Closes the SyncSocket. Returns true on success, false on failure. 43 // Sends the message to the remote peer of the SyncSocket. 51 // Receives a message from an SyncSocket. 70 DISALLOW_COPY_AND_ASSIGN(SyncSocket);
|
sync_socket_posix.cc | 25 static const SyncSocket::Handle kInvalidHandle = -1; 29 bool SyncSocket::CreatePair(SyncSocket* pair[2]) { 31 SyncSocket* tmp_sockets[2] = { NULL, NULL }; 36 // Create the two SyncSocket objects first to avoid ugly cleanup issues. 37 tmp_sockets[0] = new SyncSocket(kInvalidHandle); 41 tmp_sockets[1] = new SyncSocket(kInvalidHandle); 79 bool SyncSocket::Close() { 90 size_t SyncSocket::Send(const void* buffer, size_t length) { 97 size_t SyncSocket::Receive(void* buffer, size_t length) [all...] |
sync_socket_win.cc | 31 static const SyncSocket::Handle kInvalidHandle = INVALID_HANDLE_VALUE; 35 bool SyncSocket::CreatePair(SyncSocket* pair[2]) { 37 SyncSocket* tmp_sockets[2]; 39 // Create the two SyncSocket objects first to avoid ugly cleanup issues. 40 tmp_sockets[0] = new SyncSocket(kInvalidHandle); 44 tmp_sockets[1] = new SyncSocket(kInvalidHandle); 101 bool SyncSocket::Close() { 110 size_t SyncSocket::Send(const void* buffer, size_t length) { 127 size_t SyncSocket::Receive(void* buffer, size_t length) [all...] |
/external/chromium_org/content/renderer/pepper/ |
audio_helper.h | 27 base::SyncSocket::Handle socket); 42 base::SyncSocket::Handle socket_handle) = 0; 53 scoped_ptr<base::SyncSocket> socket_for_create_callback_;
|
pepper_audio_input_host.h | 39 base::SyncSocket::Handle socket); 54 base::SyncSocket::Handle socket_handle); 57 const base::SyncSocket& socket,
|
pepper_broker.cc | 25 base::SyncSocket::Handle DuplicateHandle(base::SyncSocket::Handle handle) { 26 base::SyncSocket::Handle out_handle = base::kInvalidPlatformFileValue; 88 base::SyncSocket::Handle handle) { 101 base::SyncSocket temp_socket( 233 base::SyncSocket::Handle plugin_handle = base::kInvalidPlatformFileValue; 238 scoped_ptr<base::SyncSocket> broker_socket(new base::SyncSocket()); 239 scoped_ptr<base::SyncSocket> plugin_socket(new base::SyncSocket()); [all...] |
pepper_audio_input_host.cc | 25 base::PlatformFile ConvertSyncSocketHandle(const base::SyncSocket& socket) { 81 base::SyncSocket::Handle socket) { 87 base::SyncSocket::kInvalidHandle); 145 base::SyncSocket::Handle socket_handle) { 147 base::SyncSocket scoped_socket(socket_handle); 185 const base::SyncSocket& socket,
|
audio_helper.cc | 57 base::SyncSocket::Handle socket_handle) { 65 socket_for_create_callback_.reset(new base::SyncSocket(socket_handle));
|
/external/chromium_org/media/audio/ |
audio_output_ipc.h | 41 base::SyncSocket::Handle socket_handle,
|
audio_input_ipc.h | 36 base::SyncSocket::Handle socket_handle,
|
/external/chromium_org/ipc/ |
sync_socket_unittest.cc | 28 // Message class to pass a base::SyncSocket::Handle to another process. This 32 IPC_MESSAGE_CONTROL1(MsgClassSetHandle, base::SyncSocket::Handle) 47 const char kHelloString[] = "Hello, SyncSocket Client"; 50 // The SyncSocket server listener class processes two sorts of 73 // the handle for the SyncSocket. This message sends a buffer 74 // on the SyncSocket and then sends a response to the client. 76 void OnMsgClassSetHandle(const base::SyncSocket::Handle handle) { 87 void SetHandle(base::SyncSocket::Handle handle) { 88 base::SyncSocket sync_socket(handle); 120 // The SyncSocket client listener only processes one sort of message [all...] |
/external/chromium_org/content/common/media/ |
audio_messages.h | 36 // buffer it shares with the browser process. It is also given a SyncSocket that 43 base::SyncSocket::Handle /* socket handle */, 54 // The renderer process would be given a SyncSocket that it should read 60 base::SyncSocket::Handle /* socket handle */,
|
/external/chromium_org/ppapi/proxy/ |
broker_dispatcher.cc | 52 base::SyncSocket::Handle socket_handle = 63 base::SyncSocket temp_socket(socket_handle);
|
/external/chromium_org/content/browser/renderer_host/media/ |
audio_input_sync_writer.h | 18 // A AudioInputController::SyncWriter implementation using SyncSocket. This 40 base::SyncSocket::Handle* foreign_handle);
|
audio_sync_reader.h | 22 // A AudioOutputController::SyncReader implementation using SyncSocket. This 43 base::SyncSocket::Handle* foreign_handle);
|