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

Unified Diff: net/websockets/websocket_handshake_stream_base.h

Issue 992733002: Remove //net (except for Android test stuff) and sdch (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 9 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
Index: net/websockets/websocket_handshake_stream_base.h
diff --git a/net/websockets/websocket_handshake_stream_base.h b/net/websockets/websocket_handshake_stream_base.h
deleted file mode 100644
index a858febe0bcfb9740a2ab53a3e8654febe0f5fda..0000000000000000000000000000000000000000
--- a/net/websockets/websocket_handshake_stream_base.h
+++ /dev/null
@@ -1,79 +0,0 @@
-// 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.
-
-#ifndef NET_WEBSOCKETS_WEBSOCKET_HANDSHAKE_STREAM_BASE_H_
-#define NET_WEBSOCKETS_WEBSOCKET_HANDSHAKE_STREAM_BASE_H_
-
-// This file is included from net/http files.
-// Since net/http can be built without linking net/websockets code,
-// this file must not introduce any link-time dependencies on websockets.
-
-#include <string>
-
-#include "base/basictypes.h"
-#include "base/memory/scoped_ptr.h"
-#include "base/memory/weak_ptr.h"
-#include "base/supports_user_data.h"
-#include "net/http/http_stream.h"
-#include "net/url_request/websocket_handshake_userdata_key.h"
-#include "net/websockets/websocket_stream.h"
-
-namespace net {
-
-class ClientSocketHandle;
-class SpdySession;
-
-// WebSocketHandshakeStreamBase is the base class of
-// WebSocketBasicHandshakeStream. net/http code uses this interface to handle
-// WebSocketBasicHandshakeStream when it needs to be treated differently from
-// HttpStreamBase.
-class NET_EXPORT WebSocketHandshakeStreamBase : public HttpStream {
- public:
- // An object that stores data needed for the creation of a
- // WebSocketBasicHandshakeStream object. A new CreateHelper is used for each
- // WebSocket connection.
- class NET_EXPORT_PRIVATE CreateHelper : public base::SupportsUserData::Data {
- public:
- // Returns a key to use to lookup this object in a URLRequest object. It is
- // different from any other key that is supplied to
- // URLRequest::SetUserData().
- static const void* DataKey() { return kWebSocketHandshakeUserDataKey; }
-
- ~CreateHelper() override {}
-
- // Create a WebSocketBasicHandshakeStream. This is called after the
- // underlying connection has been established but before any handshake data
- // has been transferred. This can be called more than once in the case that
- // HTTP authentication is needed.
- virtual WebSocketHandshakeStreamBase* CreateBasicStream(
- scoped_ptr<ClientSocketHandle> connection,
- bool using_proxy) = 0;
-
- // Create a WebSocketSpdyHandshakeStream (unimplemented as of October 2013)
- virtual WebSocketHandshakeStreamBase* CreateSpdyStream(
- const base::WeakPtr<SpdySession>& session,
- bool use_relative_url) = 0;
- };
-
- // This has to have an inline implementation so that the net/url_request/
- // tests do not fail on iOS.
- ~WebSocketHandshakeStreamBase() override {}
-
- // After the handshake has completed, this method creates a WebSocketStream
- // (of the appropriate type) from the WebSocketHandshakeStreamBase object.
- // The WebSocketHandshakeStreamBase object is unusable after Upgrade() has
- // been called.
- virtual scoped_ptr<WebSocketStream> Upgrade() = 0;
-
- protected:
- // As with the destructor, this must be inline.
- WebSocketHandshakeStreamBase() {}
-
- private:
- DISALLOW_COPY_AND_ASSIGN(WebSocketHandshakeStreamBase);
-};
-
-} // namespace net
-
-#endif // NET_WEBSOCKETS_WEBSOCKET_HANDSHAKE_STREAM_BASE_H_
« no previous file with comments | « net/websockets/websocket_handshake_response_info.cc ('k') | net/websockets/websocket_handshake_stream_create_helper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698