Update DevToolsNetworkTransaction
This commit is contained in:
parent
e7ee9f1be9
commit
0236f87507
2 changed files with 6 additions and 10 deletions
|
@ -106,7 +106,7 @@ bool DevToolsNetworkTransaction::CheckFailed() {
|
|||
int DevToolsNetworkTransaction::Start(
|
||||
const net::HttpRequestInfo* request,
|
||||
const net::CompletionCallback& callback,
|
||||
const net::BoundNetLog& net_log) {
|
||||
const net::BoundNe& net_log) {
|
||||
DCHECK(request);
|
||||
request_ = request;
|
||||
|
||||
|
@ -129,7 +129,8 @@ int DevToolsNetworkTransaction::Start(
|
|||
request_ = custom_request_.get();
|
||||
}
|
||||
|
||||
DevToolsNetworkInterceptor* interceptor = controller_->GetInterceptor(client_id);
|
||||
DevToolsNetworkInterceptor* interceptor =
|
||||
controller_->GetInterceptor(client_id);
|
||||
if (interceptor) {
|
||||
interceptor_ = interceptor->GetWeakPtr();
|
||||
if (custom_upload_data_stream_)
|
||||
|
@ -140,9 +141,9 @@ int DevToolsNetworkTransaction::Start(
|
|||
return net::ERR_INTERNET_DISCONNECTED;
|
||||
|
||||
if (!interceptor_)
|
||||
return transaction_->Start(request_, callback, net_log);
|
||||
return network_transaction_->Start(request_, callback, net_log);
|
||||
|
||||
int result = transaction_->Start(request_,
|
||||
int result = network_transaction_->Start(request_,
|
||||
base::Bind(&DevToolsNetworkTransaction::IOCallback,
|
||||
base::Unretained(this), callback, true),
|
||||
net_log);
|
||||
|
@ -246,10 +247,6 @@ net::LoadState DevToolsNetworkTransaction::GetLoadState() const {
|
|||
return transaction_->GetLoadState();
|
||||
}
|
||||
|
||||
net::UploadProgress DevToolsNetworkTransaction::GetUploadProgress() const {
|
||||
return transaction_->GetUploadProgress();
|
||||
}
|
||||
|
||||
void DevToolsNetworkTransaction::SetQuicServerInfo(
|
||||
net::QuicServerInfo* info) {
|
||||
transaction_->SetQuicServerInfo(info);
|
||||
|
|
|
@ -32,7 +32,7 @@ class DevToolsNetworkTransaction : public net::HttpTransaction {
|
|||
// HttpTransaction methods:
|
||||
int Start(const net::HttpRequestInfo* request,
|
||||
const net::CompletionCallback& callback,
|
||||
const net::BoundNetLog& net_log) override;
|
||||
const net::NetLogWithSource& net_log) override;
|
||||
int RestartIgnoringLastError(
|
||||
const net::CompletionCallback& callback) override;
|
||||
int RestartWithCertificate(net::X509Certificate* client_cert,
|
||||
|
@ -52,7 +52,6 @@ class DevToolsNetworkTransaction : public net::HttpTransaction {
|
|||
void DoneReading() override;
|
||||
const net::HttpResponseInfo* GetResponseInfo() const override;
|
||||
net::LoadState GetLoadState() const override;
|
||||
net::UploadProgress GetUploadProgress() const override;
|
||||
void SetQuicServerInfo(net::QuicServerInfo* quic_server_info) override;
|
||||
bool GetLoadTimingInfo(net::LoadTimingInfo* load_timing_info) const override;
|
||||
bool GetRemoteEndpoint(net::IPEndPoint* endpoint) const override;
|
||||
|
|
Loading…
Reference in a new issue