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

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

Issue 336263005: Map WebSocket URL schemes to HTTP URL schemes for auth purposes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Replace accidentally removed #include <string> Created 6 years, 4 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
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"
13 #include "base/memory/scoped_ptr.h" 14 #include "base/memory/scoped_ptr.h"
14 #include "base/memory/scoped_vector.h" 15 #include "base/memory/scoped_vector.h"
16 #include "base/time/time.h"
15 #include "net/base/completion_callback.h" 17 #include "net/base/completion_callback.h"
16 #include "net/base/net_export.h" 18 #include "net/base/net_export.h"
17 #include "net/websockets/websocket_event_interface.h" 19 #include "net/websockets/websocket_event_interface.h"
18 #include "net/websockets/websocket_handshake_request_info.h" 20 #include "net/websockets/websocket_handshake_request_info.h"
19 #include "net/websockets/websocket_handshake_response_info.h" 21 #include "net/websockets/websocket_handshake_response_info.h"
20 22
21 class GURL; 23 class GURL;
22 24
23 namespace url { 25 namespace url {
24 class Origin; 26 class Origin;
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
191 // extensions were negotiated, the empty string is returned. 193 // extensions were negotiated, the empty string is returned.
192 virtual std::string GetExtensions() const = 0; 194 virtual std::string GetExtensions() const = 0;
193 195
194 protected: 196 protected:
195 WebSocketStream(); 197 WebSocketStream();
196 198
197 private: 199 private:
198 DISALLOW_COPY_AND_ASSIGN(WebSocketStream); 200 DISALLOW_COPY_AND_ASSIGN(WebSocketStream);
199 }; 201 };
200 202
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
201 } // namespace net 213 } // namespace net
202 214
203 #endif // NET_WEBSOCKETS_WEBSOCKET_STREAM_H_ 215 #endif // NET_WEBSOCKETS_WEBSOCKET_STREAM_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698