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

Side by Side Diff: net/http/http_stream_factory_impl_request.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/http/http_stream_factory_impl_job.cc ('k') | net/http/http_stream_factory_impl_request.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_HTTP_HTTP_STREAM_FACTORY_IMPL_REQUEST_H_ 5 #ifndef NET_HTTP_HTTP_STREAM_FACTORY_IMPL_REQUEST_H_
6 #define NET_HTTP_HTTP_STREAM_FACTORY_IMPL_REQUEST_H_ 6 #define NET_HTTP_HTTP_STREAM_FACTORY_IMPL_REQUEST_H_
7 7
8 #include <set> 8 #include <set>
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "net/base/net_log.h" 10 #include "net/base/net_log.h"
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 // If this Request has a |spdy_session_key_|, remove this session from the 56 // If this Request has a |spdy_session_key_|, remove this session from the
57 // SpdySessionRequestMap. 57 // SpdySessionRequestMap.
58 void RemoveRequestFromSpdySessionRequestMap(); 58 void RemoveRequestFromSpdySessionRequestMap();
59 59
60 // If this Request has a |http_pipelining_key_|, remove this session from the 60 // If this Request has a |http_pipelining_key_|, remove this session from the
61 // HttpPipeliningRequestMap. 61 // HttpPipeliningRequestMap.
62 void RemoveRequestFromHttpPipeliningRequestMap(); 62 void RemoveRequestFromHttpPipeliningRequestMap();
63 63
64 // Called by an attached Job if it sets up a SpdySession. 64 // Called by an attached Job if it sets up a SpdySession.
65 void OnNewSpdySessionReady(Job* job, 65 void OnNewSpdySessionReady(Job* job,
66 scoped_refptr<SpdySession> spdy_session, 66 const base::WeakPtr<SpdySession>& spdy_session,
67 bool direct); 67 bool direct);
68 68
69 WebSocketStreamBase::Factory* websocket_stream_factory() { 69 WebSocketStreamBase::Factory* websocket_stream_factory() {
70 return websocket_stream_factory_; 70 return websocket_stream_factory_;
71 } 71 }
72 72
73 // HttpStreamRequest::Delegate methods which we implement. Note we don't 73 // HttpStreamRequest::Delegate methods which we implement. Note we don't
74 // actually subclass HttpStreamRequest::Delegate. 74 // actually subclass HttpStreamRequest::Delegate.
75 75
76 void OnStreamReady(Job* job, 76 void OnStreamReady(Job* job,
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 // Protocol negotiated with the server. 138 // Protocol negotiated with the server.
139 NextProto protocol_negotiated_; 139 NextProto protocol_negotiated_;
140 bool using_spdy_; 140 bool using_spdy_;
141 141
142 DISALLOW_COPY_AND_ASSIGN(Request); 142 DISALLOW_COPY_AND_ASSIGN(Request);
143 }; 143 };
144 144
145 } // namespace net 145 } // namespace net
146 146
147 #endif // NET_HTTP_HTTP_STREAM_FACTORY_IMPL_REQUEST_H_ 147 #endif // NET_HTTP_HTTP_STREAM_FACTORY_IMPL_REQUEST_H_
OLDNEW
« no previous file with comments | « net/http/http_stream_factory_impl_job.cc ('k') | net/http/http_stream_factory_impl_request.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698