1635860845790a19bf50bbc51ba8fb66a96dde068The Android Open Source Project/* 2e14391e94c850b8bd03680c23b38978db68687a8John Reck * Copyright (C) 2009 Brent Fulgham. All rights reserved. 3e14391e94c850b8bd03680c23b38978db68687a8John Reck * Copyright (C) 2009 Google Inc. All rights reserved. 4e14391e94c850b8bd03680c23b38978db68687a8John Reck * 5635860845790a19bf50bbc51ba8fb66a96dde068The Android Open Source Project * Redistribution and use in source and binary forms, with or without 6635860845790a19bf50bbc51ba8fb66a96dde068The Android Open Source Project * modification, are permitted provided that the following conditions are 7635860845790a19bf50bbc51ba8fb66a96dde068The Android Open Source Project * met: 8e14391e94c850b8bd03680c23b38978db68687a8John Reck * 9635860845790a19bf50bbc51ba8fb66a96dde068The Android Open Source Project * * Redistributions of source code must retain the above copyright 10635860845790a19bf50bbc51ba8fb66a96dde068The Android Open Source Project * notice, this list of conditions and the following disclaimer. 11635860845790a19bf50bbc51ba8fb66a96dde068The Android Open Source Project * * Redistributions in binary form must reproduce the above 12635860845790a19bf50bbc51ba8fb66a96dde068The Android Open Source Project * copyright notice, this list of conditions and the following disclaimer 13635860845790a19bf50bbc51ba8fb66a96dde068The Android Open Source Project * in the documentation and/or other materials provided with the 14635860845790a19bf50bbc51ba8fb66a96dde068The Android Open Source Project * distribution. 15635860845790a19bf50bbc51ba8fb66a96dde068The Android Open Source Project * * Neither the name of Google Inc. nor the names of its 16635860845790a19bf50bbc51ba8fb66a96dde068The Android Open Source Project * contributors may be used to endorse or promote products derived from 17635860845790a19bf50bbc51ba8fb66a96dde068The Android Open Source Project * this software without specific prior written permission. 18e14391e94c850b8bd03680c23b38978db68687a8John Reck * 19635860845790a19bf50bbc51ba8fb66a96dde068The Android Open Source Project * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 20635860845790a19bf50bbc51ba8fb66a96dde068The Android Open Source Project * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 21635860845790a19bf50bbc51ba8fb66a96dde068The Android Open Source Project * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 22635860845790a19bf50bbc51ba8fb66a96dde068The Android Open Source Project * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 23635860845790a19bf50bbc51ba8fb66a96dde068The Android Open Source Project * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 24635860845790a19bf50bbc51ba8fb66a96dde068The Android Open Source Project * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 25635860845790a19bf50bbc51ba8fb66a96dde068The Android Open Source Project * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 26635860845790a19bf50bbc51ba8fb66a96dde068The Android Open Source Project * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 27635860845790a19bf50bbc51ba8fb66a96dde068The Android Open Source Project * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 28635860845790a19bf50bbc51ba8fb66a96dde068The Android Open Source Project * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 29635860845790a19bf50bbc51ba8fb66a96dde068The Android Open Source Project * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 30635860845790a19bf50bbc51ba8fb66a96dde068The Android Open Source Project */ 31635860845790a19bf50bbc51ba8fb66a96dde068The Android Open Source Project 32635860845790a19bf50bbc51ba8fb66a96dde068The Android Open Source Project#include "config.h" 33e14391e94c850b8bd03680c23b38978db68687a8John Reck#include "SocketStreamHandle.h" 34635860845790a19bf50bbc51ba8fb66a96dde068The Android Open Source Project 35e14391e94c850b8bd03680c23b38978db68687a8John Reck#include "KURL.h" 36e14391e94c850b8bd03680c23b38978db68687a8John Reck#include "Logging.h" 37e14391e94c850b8bd03680c23b38978db68687a8John Reck#include "NotImplemented.h" 38e14391e94c850b8bd03680c23b38978db68687a8John Reck#include "SocketStreamHandleClient.h" 39635860845790a19bf50bbc51ba8fb66a96dde068The Android Open Source Project 40635860845790a19bf50bbc51ba8fb66a96dde068The Android Open Source Projectnamespace WebCore { 41635860845790a19bf50bbc51ba8fb66a96dde068The Android Open Source Project 42e14391e94c850b8bd03680c23b38978db68687a8John ReckSocketStreamHandle::SocketStreamHandle(const KURL& url, SocketStreamHandleClient* client) 43e14391e94c850b8bd03680c23b38978db68687a8John Reck : SocketStreamHandleBase(url, client) 44e14391e94c850b8bd03680c23b38978db68687a8John Reck{ 45e14391e94c850b8bd03680c23b38978db68687a8John Reck LOG(Network, "SocketStreamHandle %p new client %p", this, m_client); 46e14391e94c850b8bd03680c23b38978db68687a8John Reck notImplemented(); 47e14391e94c850b8bd03680c23b38978db68687a8John Reck} 48e14391e94c850b8bd03680c23b38978db68687a8John Reck 49e14391e94c850b8bd03680c23b38978db68687a8John ReckSocketStreamHandle::~SocketStreamHandle() 50e14391e94c850b8bd03680c23b38978db68687a8John Reck{ 51e14391e94c850b8bd03680c23b38978db68687a8John Reck LOG(Network, "SocketStreamHandle %p delete", this); 52e14391e94c850b8bd03680c23b38978db68687a8John Reck setClient(0); 53e14391e94c850b8bd03680c23b38978db68687a8John Reck notImplemented(); 54e14391e94c850b8bd03680c23b38978db68687a8John Reck} 55e14391e94c850b8bd03680c23b38978db68687a8John Reck 56e14391e94c850b8bd03680c23b38978db68687a8John Reckint SocketStreamHandle::platformSend(const char*, int) 57e14391e94c850b8bd03680c23b38978db68687a8John Reck{ 58e14391e94c850b8bd03680c23b38978db68687a8John Reck LOG(Network, "SocketStreamHandle %p platformSend", this); 59e14391e94c850b8bd03680c23b38978db68687a8John Reck notImplemented(); 60e14391e94c850b8bd03680c23b38978db68687a8John Reck return 0; 61e14391e94c850b8bd03680c23b38978db68687a8John Reck} 62e14391e94c850b8bd03680c23b38978db68687a8John Reck 63e14391e94c850b8bd03680c23b38978db68687a8John Reckvoid SocketStreamHandle::platformClose() 64635860845790a19bf50bbc51ba8fb66a96dde068The Android Open Source Project{ 65e14391e94c850b8bd03680c23b38978db68687a8John Reck LOG(Network, "SocketStreamHandle %p platformClose", this); 66e14391e94c850b8bd03680c23b38978db68687a8John Reck notImplemented(); 67e14391e94c850b8bd03680c23b38978db68687a8John Reck} 68e14391e94c850b8bd03680c23b38978db68687a8John Reck 69e14391e94c850b8bd03680c23b38978db68687a8John Reckvoid SocketStreamHandle::didReceiveAuthenticationChallenge(const AuthenticationChallenge&) 70e14391e94c850b8bd03680c23b38978db68687a8John Reck{ 71e14391e94c850b8bd03680c23b38978db68687a8John Reck notImplemented(); 72e14391e94c850b8bd03680c23b38978db68687a8John Reck} 73e14391e94c850b8bd03680c23b38978db68687a8John Reck 74e14391e94c850b8bd03680c23b38978db68687a8John Reckvoid SocketStreamHandle::receivedCredential(const AuthenticationChallenge&, const Credential&) 75e14391e94c850b8bd03680c23b38978db68687a8John Reck{ 76e14391e94c850b8bd03680c23b38978db68687a8John Reck notImplemented(); 77e14391e94c850b8bd03680c23b38978db68687a8John Reck} 78635860845790a19bf50bbc51ba8fb66a96dde068The Android Open Source Project 79e14391e94c850b8bd03680c23b38978db68687a8John Reckvoid SocketStreamHandle::receivedRequestToContinueWithoutCredential(const AuthenticationChallenge&) 80e14391e94c850b8bd03680c23b38978db68687a8John Reck{ 81e14391e94c850b8bd03680c23b38978db68687a8John Reck notImplemented(); 82e14391e94c850b8bd03680c23b38978db68687a8John Reck} 83635860845790a19bf50bbc51ba8fb66a96dde068The Android Open Source Project 84e14391e94c850b8bd03680c23b38978db68687a8John Reckvoid SocketStreamHandle::receivedCancellation(const AuthenticationChallenge&) 85e14391e94c850b8bd03680c23b38978db68687a8John Reck{ 86e14391e94c850b8bd03680c23b38978db68687a8John Reck notImplemented(); 87635860845790a19bf50bbc51ba8fb66a96dde068The Android Open Source Project} 88635860845790a19bf50bbc51ba8fb66a96dde068The Android Open Source Project 89e14391e94c850b8bd03680c23b38978db68687a8John Reck} // namespace WebCore 90