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

Side by Side Diff: trunk/src/net/websockets/websocket_stream.h

Issue 388493002: Revert 282307 "Map WebSocket URL schemes to HTTP URL schemes for..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 6 years, 5 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef NET_WEBSOCKETS_WEBSOCKET_STREAM_H_ 5 #ifndef NET_WEBSOCKETS_WEBSOCKET_STREAM_H_
6 #define NET_WEBSOCKETS_WEBSOCKET_STREAM_H_ 6 #define NET_WEBSOCKETS_WEBSOCKET_STREAM_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/basictypes.h" 11 #include "base/basictypes.h"
12 #include "base/callback_forward.h" 12 #include "base/callback_forward.h"
13 #include "base/memory/ref_counted.h"
14 #include "base/memory/scoped_ptr.h" 13 #include "base/memory/scoped_ptr.h"
15 #include "base/memory/scoped_vector.h" 14 #include "base/memory/scoped_vector.h"
16 #include "base/time/time.h"
17 #include "net/base/completion_callback.h" 15 #include "net/base/completion_callback.h"
18 #include "net/base/net_export.h" 16 #include "net/base/net_export.h"
19 #include "net/websockets/websocket_event_interface.h" 17 #include "net/websockets/websocket_event_interface.h"
20 #include "net/websockets/websocket_handshake_request_info.h" 18 #include "net/websockets/websocket_handshake_request_info.h"
21 #include "net/websockets/websocket_handshake_response_info.h" 19 #include "net/websockets/websocket_handshake_response_info.h"
22 20
23 class GURL; 21 class GURL;
24 22
25 namespace url { 23 namespace url {
26 class Origin; 24 class Origin;
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
193 // extensions were negotiated, the empty string is returned. 191 // extensions were negotiated, the empty string is returned.
194 virtual std::string GetExtensions() const = 0; 192 virtual std::string GetExtensions() const = 0;
195 193
196 protected: 194 protected:
197 WebSocketStream(); 195 WebSocketStream();
198 196
199 private: 197 private:
200 DISALLOW_COPY_AND_ASSIGN(WebSocketStream); 198 DISALLOW_COPY_AND_ASSIGN(WebSocketStream);
201 }; 199 };
202 200
203 // A helper function used in the implementation of CreateAndConnectStream() and
204 // WebSocketBasicHandshakeStream. It creates a WebSocketHandshakeResponseInfo
205 // object and dispatches it to the OnFinishOpeningHandshake() method of the
206 // supplied |connect_delegate|.
207 void WebSocketDispatchOnFinishOpeningHandshake(
208 WebSocketStream::ConnectDelegate* connect_delegate,
209 const GURL& gurl,
210 const scoped_refptr<HttpResponseHeaders>& headers,
211 base::Time response_time);
212
213 } // namespace net 201 } // namespace net
214 202
215 #endif // NET_WEBSOCKETS_WEBSOCKET_STREAM_H_ 203 #endif // NET_WEBSOCKETS_WEBSOCKET_STREAM_H_
OLDNEW
« no previous file with comments | « trunk/src/net/websockets/websocket_basic_handshake_stream.cc ('k') | trunk/src/net/websockets/websocket_stream.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698