Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(331)

Unified Diff: net/websockets/websocket_stream.cc

Issue 17610006: Add WebSocketStream factory function (Closed) Base URL: http://git.chromium.org/chromium/src.git@web_socket_net
Patch Set: Fix bad net.gyp diff. Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/websockets/websocket_stream.h ('k') | net/websockets/websocket_stream_base.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/websockets/websocket_stream.cc
diff --git a/net/websockets/websocket_stream.cc b/net/websockets/websocket_stream.cc
new file mode 100644
index 0000000000000000000000000000000000000000..b2d316bb2aecacf8b38d272ce0de119aaed73bae
--- /dev/null
+++ b/net/websockets/websocket_stream.cc
@@ -0,0 +1,32 @@
+// Copyright 2013 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "net/websockets/websocket_stream.h"
+
+#include "base/logging.h"
+
+namespace net {
+
+WebSocketStreamRequest::~WebSocketStreamRequest() {}
+
+WebSocketStream::WebSocketStream() {}
+WebSocketStream::~WebSocketStream() {}
+
+WebSocketStream::ConnectDelegate::~ConnectDelegate() {}
+
+// Placeholder until the real implementation is ready.
+scoped_ptr<WebSocketStreamRequest> WebSocketStream::CreateAndConnectStream(
+ const GURL& socket_url,
+ const std::vector<std::string>& requested_subprotocols,
+ const GURL& origin,
+ URLRequestContext* url_request_context,
+ const BoundNetLog& net_log,
+ scoped_ptr<ConnectDelegate> connect_delegate) {
+ NOTIMPLEMENTED();
+ return make_scoped_ptr(new WebSocketStreamRequest());
+}
+
+WebSocketStream* WebSocketStream::AsWebSocketStream() { return this; }
+
+} // namespace net
« no previous file with comments | « net/websockets/websocket_stream.h ('k') | net/websockets/websocket_stream_base.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698