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

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

Issue 10581020: Prevent requests for http://host:port/ from being sent over an existing spdy session to https://hos… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Actually rebase correctly Created 8 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_IMPL_JOB_H_ 5 #ifndef NET_HTTP_HTTP_STREAM_FACTORY_IMPL_JOB_H_
6 #define NET_HTTP_HTTP_STREAM_FACTORY_IMPL_JOB_H_ 6 #define NET_HTTP_HTTP_STREAM_FACTORY_IMPL_JOB_H_
7 7
8 #include "base/memory/ref_counted.h" 8 #include "base/memory/ref_counted.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/memory/weak_ptr.h" 10 #include "base/memory/weak_ptr.h"
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 // AlternateProtocol API 168 // AlternateProtocol API
169 void MarkBrokenAlternateProtocolAndFallback(); 169 void MarkBrokenAlternateProtocolAndFallback();
170 170
171 // Retrieve SSLInfo from our SSL Socket. 171 // Retrieve SSLInfo from our SSL Socket.
172 // This must only be called when we are using an SSLSocket. 172 // This must only be called when we are using an SSLSocket.
173 // After calling, the caller can use ssl_info_. 173 // After calling, the caller can use ssl_info_.
174 void GetSSLInfo(); 174 void GetSSLInfo();
175 175
176 HostPortProxyPair GetSpdySessionKey() const; 176 HostPortProxyPair GetSpdySessionKey() const;
177 177
178 // Returns true if the current request can use an existing spdy session.
179 bool CanUseExistingSpdySession() const;
180
178 // Called when we encounter a network error that could be resolved by trying 181 // Called when we encounter a network error that could be resolved by trying
179 // a new proxy configuration. If there is another proxy configuration to try 182 // a new proxy configuration. If there is another proxy configuration to try
180 // then this method sets next_state_ appropriately and returns either OK or 183 // then this method sets next_state_ appropriately and returns either OK or
181 // ERR_IO_PENDING depending on whether or not the new proxy configuration is 184 // ERR_IO_PENDING depending on whether or not the new proxy configuration is
182 // available synchronously or asynchronously. Otherwise, the given error 185 // available synchronously or asynchronously. Otherwise, the given error
183 // code is simply returned. 186 // code is simply returned.
184 int ReconsiderProxyAfterError(int error); 187 int ReconsiderProxyAfterError(int error);
185 188
186 // Called to handle a certificate error. Stores the certificate in the 189 // Called to handle a certificate error. Stores the certificate in the
187 // allowed_bad_certs list, and checks if the error can be ignored. Returns 190 // allowed_bad_certs list, and checks if the error can be ignored. Returns
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
300 bool existing_available_pipeline_; 303 bool existing_available_pipeline_;
301 304
302 base::WeakPtrFactory<Job> ptr_factory_; 305 base::WeakPtrFactory<Job> ptr_factory_;
303 306
304 DISALLOW_COPY_AND_ASSIGN(Job); 307 DISALLOW_COPY_AND_ASSIGN(Job);
305 }; 308 };
306 309
307 } // namespace net 310 } // namespace net
308 311
309 #endif // NET_HTTP_HTTP_STREAM_FACTORY_IMPL_JOB_H_ 312 #endif // NET_HTTP_HTTP_STREAM_FACTORY_IMPL_JOB_H_
OLDNEW
« no previous file with comments | « net/http/http_network_transaction_spdy3_unittest.cc ('k') | net/http/http_stream_factory_impl_job.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698