Lines Matching defs:CastSocket
56 ApiResourceManager<core_api::cast_channel::CastSocket> > > g_factory =
62 ApiResourceManager<core_api::cast_channel::CastSocket> >*
63 ApiResourceManager<core_api::cast_channel::CastSocket>::GetFactoryInstance() {
69 CastSocket::CastSocket(const std::string& owner_extension_id,
72 CastSocket::Delegate* delegate,
84 connect_timeout_timer_(new base::OneShotTimer<CastSocket>),
103 CastSocket::~CastSocket() {
109 ReadyState CastSocket::ready_state() const {
113 ChannelError CastSocket::error_state() const {
117 scoped_ptr<net::TCPClientSocket> CastSocket::CreateTcpSocket() {
126 scoped_ptr<net::SSLClientSocket> CastSocket::CreateSslSocket(
156 bool CastSocket::ExtractPeerCert(std::string* cert) {
178 bool CastSocket::VerifyChallengeReply() {
184 void CastSocket::Connect(const net::CompletionCallback& callback) {
201 base::Bind(&CastSocket::OnConnectTimeout, base::Unretained(this)));
209 void CastSocket::PostTaskToStartConnectLoop(int result) {
213 base::Bind(&CastSocket::DoConnectLoop, base::Unretained(this), result));
218 void CastSocket::OnConnectTimeout() {
231 void CastSocket::DoConnectLoop(int result) {
292 int CastSocket::DoTcpConnect() {
299 base::Bind(&CastSocket::DoConnectLoop, base::Unretained(this)));
304 int CastSocket::DoTcpConnectComplete(int result) {
317 int CastSocket::DoSslConnect() {
324 base::Bind(&CastSocket::DoConnectLoop, base::Unretained(this)));
329 int CastSocket::DoSslConnectComplete(int result) {
341 int CastSocket::DoAuthChallengeSend() {
354 base::Bind(&CastSocket::SendCastMessageInternal,
357 base::Bind(&CastSocket::DoAuthChallengeSendWriteComplete,
366 void CastSocket::DoAuthChallengeSendWriteComplete(int result) {
374 int CastSocket::DoAuthChallengeSendComplete(int result) {
389 int CastSocket::DoAuthChallengeReplyComplete(int result) {
401 void CastSocket::DoConnectCallback(int result) {
418 void CastSocket::Close(const net::CompletionCallback& callback) {
425 void CastSocket::CloseInternal() {
450 void CastSocket::RunPendingCallbacksOnClose() {
463 void CastSocket::SendMessage(const MessageInfo& message,
486 void CastSocket::SendCastMessageInternal(
511 void CastSocket::DoWriteLoop(int result) {
566 int CastSocket::DoWrite() {
579 base::Bind(&CastSocket::DoWriteLoop, base::Unretained(this)));
585 int CastSocket::DoWriteComplete(int result) {
606 int CastSocket::DoWriteCallback() {
623 int CastSocket::DoWriteError(int result) {
646 void CastSocket::PostTaskToStartReadLoop() {
650 base::Bind(&CastSocket::StartReadLoop, base::Unretained(this)));
655 void CastSocket::StartReadLoop() {
664 void CastSocket::DoReadLoop(int result) {
715 int CastSocket::DoRead() {
725 base::Bind(&CastSocket::DoReadLoop, base::Unretained(this)));
731 int CastSocket::DoReadComplete(int result) {
764 int CastSocket::DoReadCallback() {
800 int CastSocket::DoReadError(int result) {
805 void CastSocket::CloseWithError() {
815 std::string CastSocket::CastUrl() const {
820 bool CastSocket::CalledOnValidThread() const {
824 base::Timer* CastSocket::GetTimer() {
828 void CastSocket::SetConnectState(proto::ConnectionState connect_state) {
835 void CastSocket::SetReadyState(ReadyState ready_state) {
842 void CastSocket::SetErrorState(ChannelError error_state) {
849 void CastSocket::SetReadState(proto::ReadState read_state) {
856 void CastSocket::SetWriteState(proto::WriteState write_state) {
863 CastSocket::WriteRequest::WriteRequest(const net::CompletionCallback& callback)
867 bool CastSocket::WriteRequest::SetContent(const CastMessage& message_proto) {
879 CastSocket::WriteRequest::~WriteRequest() {