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

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

Issue 18546008: [SPDY] Use WeakPtr<SpdySession> everywhere but SpdySessionPool (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix test, other minor formatting/comment changes Created 7 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
« no previous file with comments | « net/websockets/websocket_job_unittest.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 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 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_BASE_H_ 5 #ifndef NET_WEBSOCKETS_WEBSOCKET_STREAM_BASE_H_
6 #define NET_WEBSOCKETS_WEBSOCKET_STREAM_BASE_H_ 6 #define NET_WEBSOCKETS_WEBSOCKET_STREAM_BASE_H_
7 7
8 // This file is included from net/http files. 8 // This file is included from net/http files.
9 // Since net/http can be built without linking net/websockets code, 9 // Since net/http can be built without linking net/websockets code,
10 // this file should not depend on net/websockets. 10 // this file should not depend on net/websockets.
(...skipping 16 matching lines...) Expand all
27 27
28 // Create a WebSocketBasicStream. 28 // Create a WebSocketBasicStream.
29 // This function (or the returned object) takes the ownership 29 // This function (or the returned object) takes the ownership
30 // of |connection|. 30 // of |connection|.
31 virtual WebSocketStreamBase* CreateBasicStream( 31 virtual WebSocketStreamBase* CreateBasicStream(
32 ClientSocketHandle* connection, 32 ClientSocketHandle* connection,
33 bool using_proxy) = 0; 33 bool using_proxy) = 0;
34 34
35 // Create a WebSocketSpdyStream. 35 // Create a WebSocketSpdyStream.
36 virtual WebSocketStreamBase* CreateSpdyStream( 36 virtual WebSocketStreamBase* CreateSpdyStream(
37 SpdySession* session, 37 const base::WeakPtr<SpdySession>& session,
38 bool use_relative_url) = 0; 38 bool use_relative_url) = 0;
39 }; 39 };
40 40
41 virtual ~WebSocketStreamBase() {} 41 virtual ~WebSocketStreamBase() {}
42 42
43 // Return this object as a WebSocketStream. 43 // Return this object as a WebSocketStream.
44 virtual WebSocketStream* AsWebSocketStream() = 0; 44 virtual WebSocketStream* AsWebSocketStream() = 0;
45 45
46 protected: 46 protected:
47 WebSocketStreamBase() {} 47 WebSocketStreamBase() {}
48 48
49 private: 49 private:
50 DISALLOW_COPY_AND_ASSIGN(WebSocketStreamBase); 50 DISALLOW_COPY_AND_ASSIGN(WebSocketStreamBase);
51 }; 51 };
52 52
53 } // namespace net 53 } // namespace net
54 54
55 #endif // NET_WEBSOCKETS_WEBSOCKET_STREAM_BASE_H_ 55 #endif // NET_WEBSOCKETS_WEBSOCKET_STREAM_BASE_H_
OLDNEW
« no previous file with comments | « net/websockets/websocket_job_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698