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/url_request/url_request_http_job.h" | 5 #include "net/url_request/url_request_http_job.h" |
6 | 6 |
7 #include <cstddef> | 7 #include <cstddef> |
8 | 8 |
9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
(...skipping 585 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
596 int ReadResponseBody(IOBuffer* buf, | 596 int ReadResponseBody(IOBuffer* buf, |
597 int buf_len, | 597 int buf_len, |
598 const CompletionCallback& callback) override { | 598 const CompletionCallback& callback) override { |
599 return ERR_IO_PENDING; | 599 return ERR_IO_PENDING; |
600 } | 600 } |
601 | 601 |
602 void Close(bool not_reusable) override {} | 602 void Close(bool not_reusable) override {} |
603 | 603 |
604 bool IsResponseBodyComplete() const override { return false; } | 604 bool IsResponseBodyComplete() const override { return false; } |
605 | 605 |
606 bool CanFindEndOfResponse() const override { return false; } | |
607 | |
608 bool IsConnectionReused() const override { return false; } | 606 bool IsConnectionReused() const override { return false; } |
609 void SetConnectionReused() override {} | 607 void SetConnectionReused() override {} |
610 | 608 |
611 bool IsConnectionReusable() const override { return false; } | 609 bool CanReuseConnection() const override { return false; } |
612 | 610 |
613 int64 GetTotalReceivedBytes() const override { return 0; } | 611 int64 GetTotalReceivedBytes() const override { return 0; } |
614 | 612 |
615 bool GetLoadTimingInfo(LoadTimingInfo* load_timing_info) const override { | 613 bool GetLoadTimingInfo(LoadTimingInfo* load_timing_info) const override { |
616 return false; | 614 return false; |
617 } | 615 } |
618 | 616 |
619 void GetSSLInfo(SSLInfo* ssl_info) override {} | 617 void GetSSLInfo(SSLInfo* ssl_info) override {} |
620 | 618 |
621 void GetSSLCertRequestInfo(SSLCertRequestInfo* cert_request_info) override {} | 619 void GetSSLCertRequestInfo(SSLCertRequestInfo* cert_request_info) override {} |
622 | 620 |
623 bool IsSpdyHttpStream() const override { return false; } | |
624 | |
625 void Drain(HttpNetworkSession* session) override {} | 621 void Drain(HttpNetworkSession* session) override {} |
626 | 622 |
627 void SetPriority(RequestPriority priority) override {} | 623 void SetPriority(RequestPriority priority) override {} |
628 | 624 |
629 UploadProgress GetUploadProgress() const override { | 625 UploadProgress GetUploadProgress() const override { |
630 return UploadProgress(); | 626 return UploadProgress(); |
631 } | 627 } |
632 | 628 |
633 HttpStream* RenewStreamForAuth() override { return nullptr; } | 629 HttpStream* RenewStreamForAuth() override { return nullptr; } |
634 | 630 |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
666 req_->SetLoadFlags(LOAD_DISABLE_CACHE); | 662 req_->SetLoadFlags(LOAD_DISABLE_CACHE); |
667 job->Start(); | 663 job->Start(); |
668 base::RunLoop().RunUntilIdle(); | 664 base::RunLoop().RunUntilIdle(); |
669 EXPECT_EQ(URLRequestStatus::IO_PENDING, req_->status().status()); | 665 EXPECT_EQ(URLRequestStatus::IO_PENDING, req_->status().status()); |
670 EXPECT_TRUE(fake_handshake_stream->initialize_stream_was_called()); | 666 EXPECT_TRUE(fake_handshake_stream->initialize_stream_was_called()); |
671 } | 667 } |
672 | 668 |
673 } // namespace | 669 } // namespace |
674 | 670 |
675 } // namespace net | 671 } // namespace net |
OLD | NEW |