| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 #include "net/http/http_stream_factory_impl_request.h" | 5 #include "net/http/http_stream_factory_impl_request.h" |
| 6 | 6 |
| 7 #include "base/memory/scoped_ptr.h" | 7 #include "base/memory/scoped_ptr.h" |
| 8 #include "net/http/http_stream_factory_impl_job.h" | 8 #include "net/http/http_stream_factory_impl_job.h" |
| 9 #include "net/proxy/proxy_info.h" | 9 #include "net/proxy/proxy_info.h" |
| 10 #include "net/proxy/proxy_service.h" | 10 #include "net/proxy/proxy_service.h" |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 class DoNothingRequestDelegate : public HttpStreamRequest::Delegate { | 28 class DoNothingRequestDelegate : public HttpStreamRequest::Delegate { |
| 29 public: | 29 public: |
| 30 DoNothingRequestDelegate() {} | 30 DoNothingRequestDelegate() {} |
| 31 | 31 |
| 32 ~DoNothingRequestDelegate() override {} | 32 ~DoNothingRequestDelegate() override {} |
| 33 | 33 |
| 34 // HttpStreamRequest::Delegate | 34 // HttpStreamRequest::Delegate |
| 35 void OnStreamReady(const SSLConfig& used_ssl_config, | 35 void OnStreamReady(const SSLConfig& used_ssl_config, |
| 36 const ProxyInfo& used_proxy_info, | 36 const ProxyInfo& used_proxy_info, |
| 37 HttpStream* stream) override {} | 37 HttpStream* stream) override {} |
| 38 void OnBidirectionalStreamReady(const SSLConfig& used_ssl_config, |
| 39 const ProxyInfo& used_proxy_info, |
| 40 BidirectionalStream* stream) override {} |
| 41 |
| 38 void OnWebSocketHandshakeStreamReady( | 42 void OnWebSocketHandshakeStreamReady( |
| 39 const SSLConfig& used_ssl_config, | 43 const SSLConfig& used_ssl_config, |
| 40 const ProxyInfo& used_proxy_info, | 44 const ProxyInfo& used_proxy_info, |
| 41 WebSocketHandshakeStreamBase* stream) override {} | 45 WebSocketHandshakeStreamBase* stream) override {} |
| 42 void OnStreamFailed(int status, | 46 void OnStreamFailed(int status, |
| 43 const SSLConfig& used_ssl_config, | 47 const SSLConfig& used_ssl_config, |
| 44 SSLFailureState ssl_failure_state) override {} | 48 SSLFailureState ssl_failure_state) override {} |
| 45 void OnCertificateError(int status, | 49 void OnCertificateError(int status, |
| 46 const SSLConfig& used_ssl_config, | 50 const SSLConfig& used_ssl_config, |
| 47 const SSLInfo& ssl_info) override {} | 51 const SSLInfo& ssl_info) override {} |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 88 EXPECT_EQ(MEDIUM, job->priority()); | 92 EXPECT_EQ(MEDIUM, job->priority()); |
| 89 | 93 |
| 90 // Make |job| the bound job. | 94 // Make |job| the bound job. |
| 91 request.OnStreamFailed(job, ERR_FAILED, SSLConfig(), SSL_FAILURE_NONE); | 95 request.OnStreamFailed(job, ERR_FAILED, SSLConfig(), SSL_FAILURE_NONE); |
| 92 | 96 |
| 93 request.SetPriority(IDLE); | 97 request.SetPriority(IDLE); |
| 94 EXPECT_EQ(IDLE, job->priority()); | 98 EXPECT_EQ(IDLE, job->priority()); |
| 95 } | 99 } |
| 96 | 100 |
| 97 } // namespace net | 101 } // namespace net |
| OLD | NEW |