| 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 #include "net/http/http_stream_factory_impl.h" | 5 #include "net/http/http_stream_factory_impl.h" |
| 6 | 6 |
| 7 #include <stdint.h> |
| 8 |
| 7 #include <string> | 9 #include <string> |
| 8 #include <vector> | 10 #include <vector> |
| 9 | 11 |
| 10 #include "base/basictypes.h" | 12 #include "base/basictypes.h" |
| 11 #include "base/compiler_specific.h" | 13 #include "base/compiler_specific.h" |
| 12 #include "net/base/port_util.h" | 14 #include "net/base/port_util.h" |
| 13 #include "net/base/test_completion_callback.h" | 15 #include "net/base/test_completion_callback.h" |
| 14 #include "net/cert/mock_cert_verifier.h" | 16 #include "net/cert/mock_cert_verifier.h" |
| 15 #include "net/dns/mock_host_resolver.h" | 17 #include "net/dns/mock_host_resolver.h" |
| 16 #include "net/http/http_auth_handler_factory.h" | 18 #include "net/http/http_auth_handler_factory.h" |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 79 const CompletionCallback& callback) override { | 81 const CompletionCallback& callback) override { |
| 80 return ERR_IO_PENDING; | 82 return ERR_IO_PENDING; |
| 81 } | 83 } |
| 82 void Close(bool not_reusable) override {} | 84 void Close(bool not_reusable) override {} |
| 83 bool IsResponseBodyComplete() const override { return false; } | 85 bool IsResponseBodyComplete() const override { return false; } |
| 84 bool CanFindEndOfResponse() const override { return false; } | 86 bool CanFindEndOfResponse() const override { return false; } |
| 85 bool IsConnectionReused() const override { return false; } | 87 bool IsConnectionReused() const override { return false; } |
| 86 void SetConnectionReused() override {} | 88 void SetConnectionReused() override {} |
| 87 bool IsConnectionReusable() const override { return false; } | 89 bool IsConnectionReusable() const override { return false; } |
| 88 int64 GetTotalReceivedBytes() const override { return 0; } | 90 int64 GetTotalReceivedBytes() const override { return 0; } |
| 91 int64_t GetTotalSentBytes() const override { return 0; } |
| 89 bool GetLoadTimingInfo(LoadTimingInfo* load_timing_info) const override { | 92 bool GetLoadTimingInfo(LoadTimingInfo* load_timing_info) const override { |
| 90 return false; | 93 return false; |
| 91 } | 94 } |
| 92 void GetSSLInfo(SSLInfo* ssl_info) override {} | 95 void GetSSLInfo(SSLInfo* ssl_info) override {} |
| 93 void GetSSLCertRequestInfo(SSLCertRequestInfo* cert_request_info) override {} | 96 void GetSSLCertRequestInfo(SSLCertRequestInfo* cert_request_info) override {} |
| 94 bool IsSpdyHttpStream() const override { return false; } | 97 bool IsSpdyHttpStream() const override { return false; } |
| 95 void Drain(HttpNetworkSession* session) override {} | 98 void Drain(HttpNetworkSession* session) override {} |
| 96 void SetPriority(RequestPriority priority) override {} | 99 void SetPriority(RequestPriority priority) override {} |
| 97 UploadProgress GetUploadProgress() const override { return UploadProgress(); } | 100 UploadProgress GetUploadProgress() const override { return UploadProgress(); } |
| 98 HttpStream* RenewStreamForAuth() override { return nullptr; } | 101 HttpStream* RenewStreamForAuth() override { return nullptr; } |
| (...skipping 1313 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1412 EXPECT_TRUE(waiter.used_proxy_info().is_direct()); | 1415 EXPECT_TRUE(waiter.used_proxy_info().is_direct()); |
| 1413 | 1416 |
| 1414 // Make sure there is no orphaned job. it is already canceled. | 1417 // Make sure there is no orphaned job. it is already canceled. |
| 1415 ASSERT_EQ(0u, static_cast<HttpStreamFactoryImpl*>( | 1418 ASSERT_EQ(0u, static_cast<HttpStreamFactoryImpl*>( |
| 1416 session->http_stream_factory_for_websocket())->num_orphaned_jobs()); | 1419 session->http_stream_factory_for_websocket())->num_orphaned_jobs()); |
| 1417 } | 1420 } |
| 1418 | 1421 |
| 1419 } // namespace | 1422 } // namespace |
| 1420 | 1423 |
| 1421 } // namespace net | 1424 } // namespace net |
| OLD | NEW |