Searched refs:DataSocket (Results 1 – 5 of 5) sorted by relevance
20 class DataSocket; variable25 explicit ChannelMember(DataSocket* socket);31 bool is_wait_request(DataSocket* ds) const;43 void ForwardRequestToPeer(DataSocket* ds, ChannelMember* peer);45 void OnClosing(DataSocket* ds);52 void SetWaitingSocket(DataSocket* ds);59 DataSocket* waiting_socket_;81 static bool IsPeerConnection(const DataSocket* ds);84 ChannelMember* Lookup(DataSocket* ds) const;88 ChannelMember* IsTargetedRequest(const DataSocket* ds) const;[all …]
55 ChannelMember::ChannelMember(DataSocket* socket) in ChannelMember()61 assert(socket->method() == DataSocket::GET); in ChannelMember()74 bool ChannelMember::is_wait_request(DataSocket* ds) const { in is_wait_request()104 void ChannelMember::ForwardRequestToPeer(DataSocket* ds, ChannelMember* peer) { in ForwardRequestToPeer()120 void ChannelMember::OnClosing(DataSocket* ds) { in OnClosing()133 assert(waiting_socket_->method() == DataSocket::GET); in QueueResponse()151 void ChannelMember::SetWaitingSocket(DataSocket* ds) { in SetWaitingSocket()152 assert(ds->method() == DataSocket::GET); in SetWaitingSocket()169 bool PeerChannel::IsPeerConnection(const DataSocket* ds) { in IsPeerConnection()171 return (ds->method() == DataSocket::POST && ds->content_length() > 0) || in IsPeerConnection()[all …]
28 const char DataSocket::kCrossOriginAllowHeaders[] =72 std::string DataSocket::request_arguments() const { in request_arguments()79 bool DataSocket::PathEquals(const char* path) const { in PathEquals()87 bool DataSocket::OnDataAvailable(bool* close_socket) { in OnDataAvailable()118 bool DataSocket::Send(const std::string& data) const { in Send()123 bool DataSocket::Send(const std::string& status, in Send()158 void DataSocket::Clear() { in Clear()167 bool DataSocket::ParseHeaders() { in ParseHeaders()190 bool DataSocket::ParseMethodAndPath(const char* begin, size_t len) { in ParseMethodAndPath()227 bool DataSocket::ParseContentLengthAndType(const char* headers, size_t length) { in ParseContentLengthAndType()[all …]
53 class DataSocket : public SocketBase {62 explicit DataSocket(NativeSocket socket) in DataSocket() function65 ~DataSocket() {} in ~DataSocket()147 DataSocket* Accept() const;
43 void HandleBrowserRequest(DataSocket* ds, bool* quit) { in HandleBrowserRequest()54 } else if (ds->method() == DataSocket::OPTIONS) { in HandleBrowserRequest()99 typedef std::vector<DataSocket*> SocketArray; in main()118 DataSocket* s = *i; in main()177 DataSocket* s = listener.Accept(); in main()