1 // Copyright 2013 The Chromium Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 #include "net/websockets/websocket_stream.h" 6 7 #include "base/logging.h" 8 9 namespace net { 10 11 WebSocketStreamRequest::~WebSocketStreamRequest() {} 12 13 WebSocketStream::WebSocketStream() {} 14 WebSocketStream::~WebSocketStream() {} 15 16 WebSocketStream::ConnectDelegate::~ConnectDelegate() {} 17 18 // Placeholder until the real implementation is ready. 19 scoped_ptr<WebSocketStreamRequest> WebSocketStream::CreateAndConnectStream( 20 const GURL& socket_url, 21 const std::vector<std::string>& requested_subprotocols, 22 const GURL& origin, 23 URLRequestContext* url_request_context, 24 const BoundNetLog& net_log, 25 scoped_ptr<ConnectDelegate> connect_delegate) { 26 NOTIMPLEMENTED(); 27 return make_scoped_ptr(new WebSocketStreamRequest()); 28 } 29 30 WebSocketStream* WebSocketStream::AsWebSocketStream() { return this; } 31 32 } // namespace net 33