| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |