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

Side by Side Diff: net/http/http_stream_factory.h

Issue 19866006: [Net] Propagate priority changes from HttpNetworkTransaction to its request (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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
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_H_ 5 #ifndef NET_HTTP_HTTP_STREAM_FACTORY_H_
6 #define NET_HTTP_HTTP_STREAM_FACTORY_H_ 6 #define NET_HTTP_HTTP_STREAM_FACTORY_H_
7 7
8 #include <list> 8 #include <list>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 virtual ~HttpStreamRequest() {} 150 virtual ~HttpStreamRequest() {}
151 151
152 // When a HttpStream creation process is stalled due to necessity 152 // When a HttpStream creation process is stalled due to necessity
153 // of Proxy authentication credentials, the delegate OnNeedsProxyAuth 153 // of Proxy authentication credentials, the delegate OnNeedsProxyAuth
154 // will have been called. It now becomes the delegate's responsibility 154 // will have been called. It now becomes the delegate's responsibility
155 // to collect the necessary credentials, and then call this method to 155 // to collect the necessary credentials, and then call this method to
156 // resume the HttpStream creation process. 156 // resume the HttpStream creation process.
157 virtual int RestartTunnelWithProxyAuth( 157 virtual int RestartTunnelWithProxyAuth(
158 const AuthCredentials& credentials) = 0; 158 const AuthCredentials& credentials) = 0;
159 159
160 // Called when the priority of the parent transaction changes.
161 virtual void SetPriority(RequestPriority priority) = 0;
162
160 // Returns the LoadState for the request. 163 // Returns the LoadState for the request.
161 virtual LoadState GetLoadState() const = 0; 164 virtual LoadState GetLoadState() const = 0;
162 165
163 // Returns true if TLS/NPN was negotiated for this stream. 166 // Returns true if TLS/NPN was negotiated for this stream.
164 virtual bool was_npn_negotiated() const = 0; 167 virtual bool was_npn_negotiated() const = 0;
165 168
166 // Protocol negotiated with the server. 169 // Protocol negotiated with the server.
167 virtual NextProto protocol_negotiated() const = 0; 170 virtual NextProto protocol_negotiated() const = 0;
168 171
169 // Returns true if this stream is being fetched over SPDY. 172 // Returns true if this stream is being fetched over SPDY.
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
297 static bool force_spdy_over_ssl_; 300 static bool force_spdy_over_ssl_;
298 static bool force_spdy_always_; 301 static bool force_spdy_always_;
299 static std::list<HostPortPair>* forced_spdy_exclusions_; 302 static std::list<HostPortPair>* forced_spdy_exclusions_;
300 303
301 DISALLOW_COPY_AND_ASSIGN(HttpStreamFactory); 304 DISALLOW_COPY_AND_ASSIGN(HttpStreamFactory);
302 }; 305 };
303 306
304 } // namespace net 307 } // namespace net
305 308
306 #endif // NET_HTTP_HTTP_STREAM_FACTORY_H_ 309 #endif // NET_HTTP_HTTP_STREAM_FACTORY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698