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> | 7 #include <stdint.h> |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
79 int ReadResponseBody(IOBuffer* buf, | 79 int ReadResponseBody(IOBuffer* buf, |
80 int buf_len, | 80 int buf_len, |
81 const CompletionCallback& callback) override { | 81 const CompletionCallback& callback) override { |
82 return ERR_IO_PENDING; | 82 return ERR_IO_PENDING; |
83 } | 83 } |
84 void Close(bool not_reusable) override {} | 84 void Close(bool not_reusable) override {} |
85 bool IsResponseBodyComplete() const override { return false; } | 85 bool IsResponseBodyComplete() const override { return false; } |
86 bool IsConnectionReused() const override { return false; } | 86 bool IsConnectionReused() const override { return false; } |
87 void SetConnectionReused() override {} | 87 void SetConnectionReused() override {} |
88 bool CanReuseConnection() const override { return false; } | 88 bool CanReuseConnection() const override { return false; } |
89 int64 GetTotalReceivedBytes() const override { return 0; } | 89 int64_t GetTotalReceivedBytes() const override { return 0; } |
90 int64_t GetTotalSentBytes() const override { return 0; } | 90 int64_t GetTotalSentBytes() const override { return 0; } |
91 bool GetLoadTimingInfo(LoadTimingInfo* load_timing_info) const override { | 91 bool GetLoadTimingInfo(LoadTimingInfo* load_timing_info) const override { |
92 return false; | 92 return false; |
93 } | 93 } |
94 void GetSSLInfo(SSLInfo* ssl_info) override {} | 94 void GetSSLInfo(SSLInfo* ssl_info) override {} |
95 void GetSSLCertRequestInfo(SSLCertRequestInfo* cert_request_info) override {} | 95 void GetSSLCertRequestInfo(SSLCertRequestInfo* cert_request_info) override {} |
96 void Drain(HttpNetworkSession* session) override {} | 96 void Drain(HttpNetworkSession* session) override {} |
97 void SetPriority(RequestPriority priority) override {} | 97 void SetPriority(RequestPriority priority) override {} |
98 UploadProgress GetUploadProgress() const override { return UploadProgress(); } | 98 UploadProgress GetUploadProgress() const override { return UploadProgress(); } |
99 HttpStream* RenewStreamForAuth() override { return nullptr; } | 99 HttpStream* RenewStreamForAuth() override { return nullptr; } |
(...skipping 1326 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1426 EXPECT_TRUE(waiter.used_proxy_info().is_direct()); | 1426 EXPECT_TRUE(waiter.used_proxy_info().is_direct()); |
1427 | 1427 |
1428 // Make sure there is no orphaned job. it is already canceled. | 1428 // Make sure there is no orphaned job. it is already canceled. |
1429 ASSERT_EQ(0u, static_cast<HttpStreamFactoryImpl*>( | 1429 ASSERT_EQ(0u, static_cast<HttpStreamFactoryImpl*>( |
1430 session->http_stream_factory_for_websocket())->num_orphaned_jobs()); | 1430 session->http_stream_factory_for_websocket())->num_orphaned_jobs()); |
1431 } | 1431 } |
1432 | 1432 |
1433 } // namespace | 1433 } // namespace |
1434 | 1434 |
1435 } // namespace net | 1435 } // namespace net |
OLD | NEW |